
Pre audit threat model
Builds a pre-audit threat model for a Solidity protocol before any scanner runs
Pre audit threat model is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 227
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Pre audit threat model
This skill performs an audit-readiness pass over a Solidity codebase before other audit tooling is used. It counts source files, nSLOC, test files and fuzz or invariant configs, attempts coverage in the background without treating tool failures as blockers, and runs a git history scan for fix-commit candidates, late changes and tech-debt markers.
The workflow reads each in-scope contract and classifies every externally callable state-changing function as permissionless, role-gated or admin-only, using a grep gate to find function signatures including multi-line ones. It also maps privileged roles, pause coverage and value flows, and pulls stated invariants and trust assumptions from spec or whitepaper docs, tagging them as spec-derived while marking unstated ones as auditor-derived.
Outputs are written to an x-ray folder: a JSON architecture file, a markdown report covering actors, trust boundaries, invariants and attack surfaces, and an entry-point list. The skill expects a Solidity project with Foundry or Hardhat layout and a git checkout; it recommends the agent use the project's existing toolchain rather than fetching remote tools.
When your agent uses it
Use as the first pass on a new Solidity engagement, before any scanner runs, building an audit-readiness x-ray that enumerates permissionless entry points, maps every actor and privileged role, and extracts the protocol's stated invariants so downstream passes have a target list. Reach for it when asked to x-ray, prep, or find where to start on a protocol.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/pre-audit-threat-model to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pre-audit-threat-model &&
cp -R "$tmp/.agents/skills/pre-audit-threat-model" ~/.claude/skills/pre-audit-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/pre-audit-threat-model inside it instead.
Copy the skill folder to ~/.agents/skills/pre-audit-threat-model to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pre-audit-threat-model &&
cp -R "$tmp/.agents/skills/pre-audit-threat-model" ~/.agents/skills/pre-audit-threat-model &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/pre-audit-threat-model inside it instead.
Copy the skill folder to ~/.cursor/skills/pre-audit-threat-model to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pre-audit-threat-model &&
cp -R "$tmp/.agents/skills/pre-audit-threat-model" ~/.cursor/skills/pre-audit-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/pre-audit-threat-model inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/pre-audit-threat-modelOr copy the folder to ~/.gemini/skills/pre-audit-threat-model yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pre-audit-threat-model:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pre-audit-threat-model &&
cp -R "$tmp/.agents/skills/pre-audit-threat-model" ~/.copilot/skills/pre-audit-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/pre-audit-threat-model inside it instead.
Get the folder:
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.gitThen copy claude-vibe-squad/.agents/skills/pre-audit-threat-model into your agent's skills folder as pre-audit-threat-model. Agents that support SKILL.md read one folder per skill.
What it does
- Permissionless entry point mapping
- Lists externally callable state-changing functions and classifies each by access level using a grep-verified scan.
- Actor and role mapping
- Identifies privileged roles and the operational actions and fund-moving powers each one holds.
- Invariant extraction
- Collects stated protocol invariants and trust assumptions from specs, marking code-verified and auditor-derived claims apart.
- Test presence measurement
- Counts test, fuzz, invariant and formal verification configs and attempts coverage without making it a gate.
- Git history scan
- Flags fix-like commits, late-stage changes, forked dependencies and test co-change rates.
- Structured x-ray outputs
- Writes an architecture JSON, a threat model report and an entry-point document for downstream audit passes.
Good for
- Prepare a new Solidity protocol for a security audit
- Find which public functions can be called by anyone
- Map the privileged roles and what each can do to user funds
- Extract the protocol's stated invariants as an audit checklist
- Summarize a DeFi codebase before deeper review
Pre audit threat model FAQ
When does Pre audit threat model trigger?
It is meant as the first pass on a new Solidity engagement and is triggered when asked to x-ray, prep, audit-readiness check, or find where to start on a protocol.
Does Pre audit threat model run security scanners?
No. It builds the threat model before any scanner runs, though it may run coverage and a git history scan.
What does Pre audit threat model need to run?
A Solidity project, read from foundry.toml or hardhat config, and a git repository. Coverage uses forge or an already-installed Hardhat.
What files does Pre audit threat model produce?
It writes architecture.json, x-ray.md and entry-points.md into an x-ray folder.
How do I install Pre audit threat model in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/pre-audit-threat-model to use it in all your projects, or to .claude/skills/pre-audit-threat-model in one project.
Does Pre audit threat model run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Pre audit threat model?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Pre audit threat model?
The closest alternatives to Pre audit threat model are Audit prep assistant, Evm audit flow, Security audit, Signature validation audit and Defi amm security.
Where this comes from
- Description: from the skill's own SKILL.md.
More from mtarcure/claude-vibe-squad

Writes alt text, timed captions and transcripts for images, footage and audio
- Open source
- 227 GitHub stars
- Design and media

Guides building product agent system prompts with eval-backed boundaries and output
- Open source
- 227 GitHub stars
- AI models and LLM tooling

Guides authorized adversarial testing of autonomous LLM agents for injection and approval
- Open source
- 227 GitHub stars
- Security

Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines
- Open source
- 227 GitHub stars
- Developer tools

Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery
- Open source
- 227 GitHub stars
- Developer tools

Builds and proves multi-step exploit chains from weak bug-bounty findings
- Open source
- 227 GitHub stars
- Security





