agentic-actions-audito…
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI,…
Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments). Use when
Claude Code
$ npx -y skills add trailofbits/skills --skill audit-prep-assistant --agent claude-code
Codex
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a codex -y
Cursor
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a cursor -y
Gemini CLI
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a gemini-cli -y
GitHub Copilot
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a github-copilot -y
OpenCode
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a opencode -y
Windsurf
$ npx skills add trailofbits/skills --skill audit-prep-assistant -a windsurf -y
name: audit-prep-assistant description: Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments). Use when preparing your own codebase to be audited by someone else, getting a repository review-ready before an external security review, deciding what to fix before auditors start, or asking what assessors need from a project. For understanding unfamiliar code you are about to audit, use audit-context-building instead.
Helps prepare for a security review using Trail of Bits' checklist. A well-prepared codebase makes the review process smoother and more effective.
**Use this**: 1-2 weeks before your security audit
---
Helps define what you want from the review:
**Key Questions**:
Documents goals to share with the assessment team.
---
Runs static analysis and helps fix low-hanging fruit:
**Run Static Analysis**:
For Solidity:
slither . --exclude-dependencies
For Rust:
dylint --all
For Go:
golangci-lint run
For Go/Rust/C++:
# CodeQL and Semgrep checks
Then I'll:
**Increase Test Coverage**:
**Remove Dead Code**:
**Goal**: Clean static analysis report, high test coverage, minimal dead code
---
Helps make code clear and accessible:
**Provide Detailed File List**:
**Create Build Instructions**:
**Freeze Stable Version**:
**Identify Boilerplate**:
---
Helps create documentation:
**Flowcharts and Sequence Diagrams**:
**User Stories**:
**On-chain/Off-chain Assumptions**:
**Actors and Privileges**:
**External Developer Docs**:
**Function Documentation**:
**Glossary**:
**Video Walkthroughs** (optional):
---
When invoked, I will:
1. **Help set review goals** - Ask about concerns and document them 2. **Run static analysis** - Execute appropriate tools for your platform 3. **Analyze test coverage** - Identify gaps and suggest improvements 4. **Find dead code** - Search for unused code and libraries 5. **Review accessibility** - Check build instructions and scope clarity 6. **Generate documentation** - Create flowcharts, user stories, glossaries 7. **Create prep checklist** - Track what's done and what's remaining
Adapts based on:
---
| Rationalization | Why It's Wrong | Required Action | |-----------------|----------------|-----------------| | "README covers setup, no need for detailed build instructions" | READMEs assume context auditors don't have | Test build on fresh environment, document every dependency version | | "Static analysis already ran, no need to run again" | Codebase changed since last run | Execute static analysis tools, generate fresh report | | "Test coverage looks decent" | "Looks decent" isn't measured coverage | Run coverage tools, identify specific untested code paths | | "Not much dead code to worry about" | Dead code hides during manual review | Use automated detection tools to find unused functions/variables | | "Architecture is straightforward, no diagrams needed" | Text descriptions miss visual patterns | Generate actual flowcharts and sequence diagrams | | "Can freeze version right before audit" | Last-minute freezing creates rushed handoff | Identify and document commit hash now, create dedicated branch | | "Terms are self-explanatory" | Domain knowledge isn't universal | Create comprehensive glossary with all domain-specific terms | | "I'll do this step later" | Steps build on each other - skipping creates gaps | Complete all 4 steps sequentially, track progress with checklist |
---
When I finish helping you prepare, you'll have concrete deliverables like:
=== AUDIT PREP PACKAGE === Project: DeFi DEX Protocol Audit Date: March 15, 2024 Preparation Status: Complete --- ## REVIEW GOALS DOCUMENT Security Objectives: - Verify economic security of liquidity pool swaps -
Trail of Bits skills and plugins for AI-assisted security analysis, testing, and development. Install this marketplace in Claude Code or Codex, or import it into your ChatGPT workspace marketplace.
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI,…
Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on…
Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing…
Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging…
Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing…
Scans Cosmos SDK blockchain modules and CosmWasm contracts for consensus-critical vulnerabilities — chain halts, fund loss, state…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…