Tinybrain code review
Run a security-focused code review while recording findings in TinyBrain so they form a navigable, deduplicated, standards-mapped knowledge base instead of a one-off report. Use this skill when the TinyBrain MCP tools are available AND you are reviewing code for security issues, doing a secure code audit, triaging a vulnerability in a codebase, or the user asks you to "review this for security", "audit this code", "find vulnerabilities in", or map findings to CWE/CVE/OWASP. Builds on the using-tinybrain skill.From its SKILL.md
npx -y skills add rainmana/tinybrain --skill tinybrain-code-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, as published. Nobody here has run it
Security code review with TinyBrain
This is defensive, authorized review work: finding weaknesses in code so they can be fixed. TinyBrain turns a review from a throwaway pass into durable, structured knowledge — every finding categorized, linked to its evidence and its fix, mapped to CWE/CVE, and reusable in the next review of the same codebase.
Read the using-tinybrain skill first for the core capture/connect/retrieve loop. This skill
layers a review-specific workflow on top.
Workflow
-
Orient and open a session. Check
list_sessionsfor prior reviews of this codebase; if one exists,get_context_summaryto recall known issues before re-reading anything. Otherwisecreate_sessionwithtask_type: "security_review", naming it for the codebase or PR under review. -
Record findings as you read. Each issue is a
create_memorywith:category: "vulnerability"for a confirmed weakness,hypothesisfor something that looks suspicious but you haven't confirmed,findingfor a noteworthy observation.titlenaming the issue and location: "SQLi inUserRepo.findByName— string-concat query".contentwith the vulnerable code, the data flow (source → sink), and why it's exploitable.priorityfrom impact × exploitability;confidencefrom how sure you are it's real.tags: the file, the component, and the CWE id (e.g.CWE-89) — this is what lets you map to CVEs later and correlate across the review.source: the file path and line range.
-
Capture evidence separately and link it. Store the proof — the exact sink, a PoC request, a failing test — as a
category: "evidence"memory, thencreate_relationshipwithsupportsfrom the evidence to the vulnerability. Evidence that travels with the finding is what makes a report credible and a fix verifiable. -
Record the fix as a recommendation and link it. When you propose remediation, store it as
category: "recommendation"and link itmitigates→ the vulnerability. Now the finding, its proof, and its fix are one traversable cluster. -
Map to standards. For confirmed weaknesses, use
map_to_cvewith the CWE id to pull related CVEs, andmap_to_compliancewith the relevant standard (e.g. OWASP, PCI-DSS) to show coverage and gaps. Store notable results asreferencememories linked to the finding. -
Correlate before reporting. Run
analyze_risk_correlationon the session to surface chains where individually-medium issues combine into something worse (e.g. an IDOR plus a verbose error becomes account enumeration).check_high_priority_memoriesgives you the lede for the writeup.
Before you re-read code, search
If you're about to re-examine a function or revisit a pattern, search_memories (by file,
CWE, or component tag) first — you may have already reviewed it. check_duplicates before
storing a finding in a large review so the same issue across call sites doesn't get logged
five times; if it's genuinely the same root cause at multiple sites, store once and note the
sites in content, or link the instances with related_to.
Producing the report
When asked for the writeup, retrieve rather than recall: get_context_summary for the
overview, check_high_priority_memories for the criticals, and walk each finding's
relationships (get_related_entries) to assemble finding → evidence → recommendation as a
unit. The memory graph is the report's structure.
Calibration reminders specific to review
- A reachable, exploitable sink with attacker-controlled input is high priority (8–10). An
issue gated behind auth or requiring an unlikely precondition is lower — say so in
content. - Don't inflate confidence on findings you haven't traced end-to-end. A
hypothesisat 0.4 ("this looks like it might be injectable, haven't confirmed the source is tainted") is an honest, useful record — and a reminder to go confirm it.