Install any skill in seconds. Free to start, no credit card required.
Get Started Free →trailofbits/audit-context-building
Enables ultra-granular, line-by-line code analysis to build deep architectural context before vulnerability or bug finding.
Passed 11 of 22 test cases with the skill, and 5 of 22 without it.
and 7 more in the full report
7 fixed4 passed either way10 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
When executing a full repository orientation pass over ./src/core, where should cross-function rules and top-level reachability maps be stored on disk?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies writing dossier records to audit-context/DOSSIER.md | Missed | Passed |
| Specifies writing function outputs under audit-context/functions/ | Missed | Passed |
The instructions your model reads when the skill loads.
Build understanding, not verdicts. This runs before anyone hunts for bugs, and feeds that work.
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.
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.
The analysis is long, and this context needs to survive to use it. Dispatch it:
/audit-context-building:audit-context <path>. It orients,
analyzes each function in its own subagent, and writes audit-context/DOSSIER.md plus one file per
function under audit-context/functions/. Only compact records return here.audit-context-building:function-analyzer agent 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.
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.
test cases passed, vs 5 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.