audit-prep-assistant — Claude Code skill: what it does, how to install
Prepares codebases for external security reviews using Trail of Bits' checklist. It helps run static analysis, boost test coverage, and generate system documentation.
npx skills add trailofbits/skills --skill audit-prep-assistant -a claude-codeWhat audit-prep-assistant does
The skill organizes codebase preparation for an external security audit into four structured steps based on Trail of Bits practices. It starts by defining review goals, high-risk components, and worst-case failure scenarios. Next, it guides static analysis using platform-specific linters: Slither for Solidity, Dylint for Rust, or golangci-lint, CodeQL, and Semgrep for Go and C++. Findings are triaged directly. The assistant then flags dead code and untested logic before assessors receive the repository.
Beyond code hygiene, the assistant demands reproducible builds and clear project boundaries. You must document dependencies with pinned versions, separate boilerplate from proprietary code, and freeze a specific commit hash on a dedicated branch. It also prompts for user stories, sequence diagrams, and domain glossaries. Skipping preparation steps creates gaps. Starting this process one to two weeks before the audit date prevents rushed handoffs.
This skill targets internal preparation. If you need to evaluate an unfamiliar codebase as an auditor, use audit-context-building instead.
What it helps with
- prepare a repository for an upcoming external security review
- run static analysis tools like Slither or Dylint and triage warnings
- remove dead code and locate untested code paths
- generate architecture diagrams, user stories, and role mappings
- lock dependencies and verify clean build instructions
Example prompts for the agent
- Help prepare our Solidity smart contracts for an audit using the Trail of Bits checklist
- Run static analysis with dylint and find dead code in our Rust repository before review
- Generate review goals, architecture diagrams, and build instructions for external assessors
How to install audit-prep-assistant
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill audit-prep-assistant -a claude-code2Manually: put the files in place
~/.claude/skills/audit-prep-assistant/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/audit-prep-assistant/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill audit-prep-assistant -a codex2Manually: put the files in place
.agents/skills/audit-prep-assistant/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill audit-prep-assistant -a cursor2Manually: put the files in place
.cursor/skills/audit-prep-assistant/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install trailofbits/skills audit-prep-assistant2Manually: put the files in place
.github/skills/audit-prep-assistant/SKILL.md1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill audit-prep-assistant -a gemini-cli2Platform CLI
gemini skills install https://github.com/trailofbits/skills --path plugins/building-secure-contracts/skills/audit-prep-assistantManually: put the files in place
.devin/skills/audit-prep-assistant/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add trailofbits/skills --skill audit-prep-assistant -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set35
The whole set →Similar
Questions about audit-prep-assistant
How to install audit-prep-assistant in Claude Code?
Run npx skills add trailofbits/skills --skill audit-prep-assistant -a claude-code in your terminal. The skill installs to ~/.claude/skills/audit-prep-assistant/SKILL.md for Claude Code to use.
What does audit-prep-assistant do?
It guides you through preparing a repository for external security assessors. The skill coordinates static analysis runs, helps eliminate dead code, improves test coverage, and creates architectural documentation.
How does audit-prep-assistant differ from audit-context-building?
The audit-prep-assistant skill prepares your own codebase before handing it over to outside reviewers. If you are an auditor trying to understand someone else's unfamiliar repository, use audit-context-building instead.