audit-context-building
Skill0 starsChanged 27 days agoMITView on GitHub
Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere. Use when starting an audit, threat model, or architecture review on unfamiliar code, and before any vulnerability-hunting pass.
9 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- bepaldes/heimdall-agentword for word, first seen Nov 8, 2026
- jahongashtamc/hallwrightedited, first seen Nov 1, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- allanninal/claude-code-skillstheir own version, first seen Oct 17, 2026
- Samueladewole/claude-skillstheir own version, first seen Oct 13, 2026
- rehrabbi/claude-skillstheir own version, first seen Oct 11, 2026
Other versions9 projects use a version of this.
Word for word · 1
- bepaldes/heimdall-agent★ 2100% same
Edited · 1
- jahongashtamc/hallwright★ 156% same
Wrote their own version · 7
- 0x-Shashi/WEB3-AUDIT-SKILLS★ 61same name
- allanninal/claude-code-skills★ 1same name
- davidanthonyn/claude-skills★ 0same name
- kennyolofsson23-netizen/claude-code-config★ 0same name
- rehrabbi/claude-skills★ 0same name
- Samueladewole/claude-skills★ 0same name
- TheWatcher01/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository137 other files it gives its agents.
- skills/marketing-e-vendas/humanizer/AGENTS.mdAGENTS.md
- skills/publicar-e-banco/vercel-optimize/AGENTS.mdAGENTS.md
- skills/sites-e-design/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-builderSkill
- find-skillsSkill
- kit-syncSkill
- mcp-builderSkill
- publicar-skills-githubSkill
- skill-creatorSkill
- skill-hunterSkill
- skill-inspectorSkill
- writing-skillsSkill
- curriculo-jovem-aprendizSkill
- formatador-abntSkill
- matematica-passo-a-passoSkill
- organizador-de-estudosSkill
- projeto-senai-desafioSkill
- redacao-enemSkill
- revisao-flashcardsSkill
- sympySkill
- trabalho-escolarSkill
- tutor-inglesSkill
- tutor-sqlSkill
- minecraft-construcoesSkill
- abordagem-whatsapp-vendasSkill
- adsSkill
- ai-seoSkill
- cardapio-digitalSkill
- copywritingSkill
- croSkill
- humanizar-texto-ptSkill
- humanizerSkill
- legenda-instagram-negocioSkill
- marketing-psychologySkill
- offersSkill
- orcamento-servicosSkill
- prospeccao-local-brSkill
- schemaSkill
- seo-auditSkill
- socialSkill
- brainstormingSkill
- caveman-compressSkill
- cavemanSkill
- diagnosing-superpowersSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- investigate-firstSkill
- planning-with-filesSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- surgical-patchSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- verify-and-stopSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Do not name vulnerabilities, suggest fixes, write proofs-of-concept, or rate severity.
- Distinctive: line 23
Not worth the tokens on code you already understand.
- Distinctive: line 39
Treat this section as routing, and route.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit Context Building
Build understanding, not verdicts. This runs before anyone hunts for bugs, and feeds that work.
When to Use
At the start of an audit, a threat model, or an architecture review, when the code is unfamiliar. Also when an earlier pass produced findings nobody could judge, because no one had mapped out how the system fits together.
When NOT to Use
Do not name vulnerabilities, suggest fixes, write proofs-of-concept, or rate severity. Those belong to the hunting phase, which runs next and with the whole picture in hand. When the code counts on something and nothing checks it, record that plainly and move on — whether it matters is decided later.
Not worth the tokens on code you already understand.
Do not analyze in this context
The analysis is long, and this context needs to survive to use it. Dispatch it:
- A codebase, or more than one function — run
/audit-context-building:audit-context <path>. It orients, analyzes each function in its own subagent, and writesaudit-context/DOSSIER.mdplus one file per function underaudit-context/functions/. Only compact records return here. - A single function — dispatch the
audit-context-building:function-analyzeragent at it. It writes its prose to disk and returns a record.
Then work from what comes back: the index, the unenforced assumptions, the open questions. Read a function's file when you need its detail.
The workflow is what enforces this, not this text: a subagent bound to a return schema cannot return prose. Treat this section as routing, and route.
What comes back, and how to read it
Each record lists what must always be true (with the line that shows it), what the function takes on faith (with whatever establishes it), which functions it calls and what it needs from each, and anything still unclear. The dossier adds the rules that span several functions, who can reach what, and where the complicated parts cluster.
Two things matter more than the rest:
- Assumptions marked
nothing found. The code counts on something being true and nothing anywhere makes it true. This is the most useful thing to hand the hunting phase. - The open questions. An honest list of what is still unclear beats a confident answer that turns out to be wrong. Carry them forward instead of closing them out.
Where two records disagree, both are quoted rather than quietly reconciled. That is a fact about the code, not a flaw in the analysis.
The format
ANALYSIS_FORMAT.md defines it, and FUNCTION_MICRO_ANALYSIS_EXAMPLE.md works through examples in C and Solidity. Read them when extending this plugin or deciding whether a record can be trusted.
The format is the same whatever the target. What changes is what fills each slot, and what counts as a call you cannot see inside. DOMAIN_NOTES.md maps that across smart contracts, C and C++, decompiled firmware, and web services — read it when the target is not plain source code.
The rule that matters most: follow the calls. Whether a function is correct usually depends on something
another function does, and you cannot see that from the caller alone. A limit looks enforced because the
value came back from a function whose name suggests it was checked. So read the function being called, follow
every path through it rather than only the one that succeeds, and say what makes each assumption true. When
nothing does, use those words: nothing found. Every claim cites a line, or becomes an open question.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

