/odin-security:function-audit-context-analyzerfrom ODIN Security
Analyzes a single function or builds audit-context across a codebase before vulnerability hunting. Writes structured dossiers with source-line citations, invariants, and assumptions.
Ships in ODIN Security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | An orchestrator or user requests deep audit-context analysis of exactly one function, or begins an audit, threat model, or architecture review of unfamiliar code spanning multiple functions before vulnerability hunting. |
| Authority | Reversible local: writes only the caller-specified analysis path (single function) or beneath audit-context/ (multi-function); rollback is deleting those files. No remote mutation. |
| Side effect | One local file at the caller-specified path (single function), or audit-context/DOSSIER.md plus per-function files under audit-context/functions/ (multi-function). |
| Done | The prose follows the fixed format, every structural claim cites source lines or is an open question, every assumption names what establishes it or says nothing found, and the compact record or dossier indexes the result. |
Single-function mode. Required: the target function (name and file path with line range) and the per-function analysis path to write. Optional: the source tree root for reading callees. When a callee's source is not available, treat it as a black box per the procedure.
Multi-function mode. Required: a target path (codebase root, or a set of functions or files to analyze). The target must span more than one function; a single function uses single-function mode. Optional: domain or language hints (smart contract, C/C++, decompiled firmware, web service) to decide what counts as a call whose interior cannot be seen. Optional: prior findings or orienting notes, carried forward as context only; this skill produces no verdicts.
No vulnerability names, fixes, proofs-of-concept, or severity ratings are inputs or outputs. Those belong to the hunting phase that runs after this one.
Both modes follow the same core method: read the code, walk every callee path, cite lines for every claim, state invariants and assumptions, and record what is unclear. The difference is scope and output shape.
Read the target function in full. Scope is structure, invariants, and assumptions; vulnerabilities, fixes, exploits, and severity ratings are not. If the draft would use "vulnerability", "exploit", or "severity", restate the observation as the structural fact it rests on. Done when: the function is read and the scope boundary is stated.
Read every callee the function depends on. Walk every path through each callee, not only the one that returns successfully. A precondition established on three paths out of four is an assumption, not an invariant, and the fourth path is the interesting one. Look for an output parameter left unwritten on an early return, a check that sits behind a conditional, and a loop that can exit before it validates. Done when: every callee is read and every path is walked.
When a callee's source is not available, treat it as adversarial. Record what is sent to it, what is assumed about it, and the outcomes not excluded: failure, a hostile return value, an unexpected state change, re-entry into the caller before its own writes land. Done when: the black-box callee is recorded with sent data, assumptions, and unexcluded outcomes.
For every assumption, name the line that establishes it. When nothing establishes it, write "nothing found". That is a finding, not a failure. Done when: every assumption has its establishing line or "nothing found".
Cite a line for every structural claim. If no line can be cited, do not assert the claim. Record it in open questions as "unclear; need to inspect X". Never infer behavior from a name. When new evidence contradicts something written earlier, correct it in place and say what changed. Cut hedge words: "probably", "seems to", and "should be" each resolve to either a cited claim or an open question. Done when: every structural claim cites a line or is in open questions; no hedge words remain.
When two records disagree, quote both instead of reconciling them. Record the disagreement as a fact about the code, not a flaw in the analysis. Done when: disagreements are quoted from both sides.
Adapt the orientation to the target domain. See references/domain-adaptations.md for smart-contract, C/C++, decompiled-binary, and web-service domain mappings. Done when: the domain adaptation is applied and recorded.
Write the prose analysis to the given path using this fixed format, one document per function, sections in this order separated by ---:
## functionName in path/to/file.ext (L40-L88)Cite lines as L45 or L98-L102. Spend words where the code earns them: branches, external calls, and state mutations earn analysis; a three-line block that copies a value earns three lines. Leave a section out only when it is genuinely empty, and say so ("No external calls.") so "none" is distinguishable from "never checked". There is no minimum count of invariants or assumptions; a short record whose claims each cite a line is worth more than a long one padded to fill a template. Done when: the prose file is written at the given path with all sections in order.
Return the compact record: a short index into the prose, not a summary of it. It holds the invariants, the assumptions and what establishes each, the callees and what the caller depends on them for, and the open questions. It exists so the orchestrator never has to load the prose. Done when: the compact record is returned.
Bound scope. Confirm the target path is readable. Create audit-context/ and audit-context/functions/. Write nowhere else; edit, delete, or move no source. Done when: audit-context/ and audit-context/functions/ are created and no source is edited.
Orient. Read entry points, module boundaries, and the call graph. Identify the actors (callers and privilege boundaries), the persistent state (storage, globals, caches, files), and the full list of functions in scope. Record the function list and entry points in the dossier skeleton. Done when: actors, persistent state, and the full function list are recorded.
Analyze each function in an isolated pass and write its record to audit-context/functions/<name>.md before starting the next. Dispatch each function's pass to a subagent to isolate its context. Do not hold every function's details in a single context; only compact records return to the orchestrator. In each function record, state: what must always be true (with the source 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. Done when: each function's record is written before the next starts.
Assemble audit-context/DOSSIER.md from the per-function records: entry points; actors and who can reach what; persistent state; cross-function invariants (rules spanning several functions); unenforced assumptions marked nothing found; disagreements with both sides quoted; coverage (which functions were analyzed and which paths were followed); and open questions carried forward. Done when: the dossier contains entry points, actors, state, invariants, assumptions, disagreements, coverage, and open questions.
Do not name vulnerabilities, suggest fixes, write proofs-of-concept, or rate severity. When the code counts on something that nothing checks, record that fact and move on. Done when: no vulnerabilities, fixes, POCs, or severity ratings are produced.
audit-context/ directory. No other artifact exists.Finishing with open questions is a complete analysis. Finishing with open questions that were never written down is not.
Single-function mode: the prose analysis at the given path (the deliverable) and the compact record returned to the caller (an index into it). Multi-function mode: audit-context/DOSSIER.md plus one file per analyzed function under audit-context/functions/. Both cover how the code is put together, what must always be true for it to work, and what it takes on faith. Neither names vulnerabilities, suggests fixes, writes exploits, or rates severity.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-security31 skills in this plugin
/burpsuite-project-parserUse when asked to analyze a Burp Suite .burp project for audit items, request/response metadata, or captured traffic. Modes: parsed (default) and stream. Not for source or remote-system changes./chain-vulnerability-scannerUse when an Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs vulnerability scanning with reachability-backed findings. Not for non-chain review: use security-review./codeql-security-analysisUse when building or reusing a CodeQL database, running CodeQL security analysis, or modeling project-specific sources and sinks. Not for manual vulnerability review: use security-review (mode: confirmed)./constant-time-analysisUse when reviewing cryptographic code for timing side-channels, statically in compiled output or at runtime with statistical timing tests. Not for known-answer vectors: use wycheproof./crypto-protocol-diagramUse when asked for a sequence diagram of cryptographic protocol semantics from code, prose, RFCs, papers, ProVerif, or Tamarin, or for code/spec divergence. Not for architecture: use diagramming-code./c-security-reviewUse when the user requests a userspace C or C++ security review with a threat model and severity filter and wants validated findings. Not for kernel or bare-metal code: use kernel-security.Other plugins' skills for the same job