/odin-security:smart-contract-audit-prepfrom ODIN Security
Prepares a smart-contract project for external or internal security audit by creating audit artifacts (goals, scope, build instructions, known issues, readiness checklist) without modifying source code.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | A smart-contract project needs to become review-ready before an external or internal security audit, typically 1-2 weeks before the audit begins |
| Authority | Reversible local: writes only the named artifacts under audit/ in the target project plus one local freeze branch and tag; rollback is deleting the audit/ directory, the branch, and the tag; the freeze branch and tag are the only VCS objects created and no history is rewritten. No remote, credential, paid, published, or deployed mutation. |
| Side effect | Audit goals, scoped commit, build and test instructions, known-issue notes, architecture material, readiness checklist, plus one local freeze branch and tag; never edits project source, never installs tools, never touches remotes or history rewrites. |
| Done | Auditors can build, scope, navigate, and begin reviewing the frozen project without avoidable setup ambiguity, confirmed by a fully passing readiness checklist |
audit/goals.md containing objectives, concern areas with file references, the worst-case scenario, and open questions for auditors.
Done when: audit/goals.md contains every required goal element, with file references where the project provides them.slither . --exclude-dependencies for Solidity, dylint --all for Rust, golangci-lint run for Go). A prior clean report is not evidence; a missing tool is a recorded gap, never an install. Triage every finding into audit/known-issues.md with a disposition of must-fix before audit, accepted risk with rationale, or informational.
Done when: the available platform analyzer has run now and every finding or missing-tool gap has an explicit disposition in audit/known-issues.md.audit/known-issues.md as recommendations. Do not delete or edit source.
Done when: measured coverage, named untested paths, and dead-code results or unavailable-tool gaps are recorded without source mutation.audit-freeze and tag audit-freeze-<short-sha> at it, and record the hash, branch, tag, and dependency lock state. Deleting the branch and tag rolls this step back.
Done when: one tested commit is identified by recorded hash, local freeze branch, local freeze tag, and dependency lock state.audit/build-and-test.md with exact prerequisites and pinned versions, then execute every step in a fresh clone and record pass or fail with output. Put the in-scope and out-of-scope paths and the boilerplate map (copied, forked, third-party code) at the top of audit/architecture.md so review focuses on first-party code.
Done when: the cold-clone transcript proves each documented build and test step, and audit/architecture.md opens with scope and boilerplate boundaries.audit/architecture.md, add actual diagrams of primary workflows and component relationships (mermaid or ASCII, not prose claims); user roles and interactions; on-chain and off-chain assumptions (oracle sources, bridge and trust boundaries, who validates what); the actor and privilege map with access controls; function-level notes for critical functions (invariants, parameter ranges, arithmetic and precision behavior); and a glossary of domain terms. Record documentation gaps as checklist items; never invent evidence.
Done when: every named architecture element is present or an evidence-backed documentation gap is queued for the readiness checklist.audit/readiness-checklist.md: one row for each item: goals documented, static analysis run and triaged, coverage measured, dead code listed, build verified from a cold clone, version frozen, diagrams present, user stories present, assumptions documented, actors and privileges listed, function notes complete, glossary complete. Give each row a pass or fail result and an evidence pointer, and include the frozen commit. Classify READY only when every row passes.
Done when: every required row has a truthful result and evidence pointer, the frozen commit is named, and the terminal classification follows the all-pass rule.audit/known-issues.md, mark its checklist row failed, continue the remaining steps; never install tools.audit/known-issues.md; readiness is NOT READY; do not patch source.audit/ directory, the audit-freeze branch, and the freeze tag; the project returns to its pre-invocation state.Output contract: Return audit/goals.md, audit/build-and-test.md, audit/known-issues.md, audit/architecture.md, and audit/readiness-checklist.md, then the local freeze branch and tag, then READY only if every checklist row passes, otherwise NOT READY with named gaps and evidence pointers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
smart-contract, audit-preparation, security-review, solidity, foundry, hardhat
31 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).npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-securityOther plugins' skills for the same job