Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mtarcure/claude-vibe-squad --skill pre-audit-threat-modelgit clone --depth 1 https://github.com/mtarcure/claude-vibe-squadWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/pre-audit-threat-model)<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/pre-audit-threat-model"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/pre-audit-threat-model/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/pre-audit-threat-model"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/pre-audit-threat-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.01516 |
| Opus 5.5 | $0.00032 | $0.00606 |
| Sonnet 5.5 | $0.00016 | $0.00303 |
| Haiku 4.5 | $0.00008 | $0.00152 |
Grade A, and why
pre-audit-threat-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pre-audit-threat-model
Audit-readiness x-ray. Build the threat model BEFORE running any tooling so every later pass has an entry-point list, an actor map, and a stated invariant set to evaluate against.
When to use
- First skill on any new Solidity engagement. Always.
- Operator says "x-ray", "audit readiness", "prep this protocol", "summarize this protocol", or "where do I start".
- Re-run when the codebase changes meaningfully (new contract, new role, new external
integration); the cached
x-ray.mdis otherwise the source of truth.
Pipeline (3 steps, sequential)
Step 1 — Enumerate and measure
- Detect source dir: read
foundry.tomlsrc=first, elsehardhat.config.*, else trysrc/thencontracts/. - Count: source files, nSLOC (no
~prefix in the report), test files, test functions, stateful-fuzz files, foundry-invariant files, echidna/medusa/halmos/certora configs, fork tests. These signal test presence — never infer "no tests" from coverage tool failure. - Run coverage in background (
forge coverage, or a project-localhardhat coverageonly if the project already has Hardhat installed — nevernpx-fetch a remote tool). If the toolchain is missing, surface the failure reason and continue — coverage is not a gate. - Run a git-security scan: branch shape (linear / merged / squashed-import), fix-commit
candidates (commits whose message matches
fix|patch|vuln|exploit|audit), late changes (commits in the final 10% of history), forked deps, tech-debt markers (TODO/FIXMEdensity), test co-change rate per source file. - Glob for spec/whitepaper docs and extract only stated invariants, actor definitions,
trust assumptions, economic properties. Tag spec-derived claims
(per spec)so auditors can tell code-verified from spec-stated.
Step 2 — Read source and classify entry points
- Read every in-scope
.sol. Skipinterfaces/, vendored copies of OZ/Uniswap libs, tests/mocks. For each contract record: type & inheritance, roles & access control, value-holding state vars, external calls, fund flows, invariant comments,require/assertstatements. - Entry-point grep gate (PCRE — Bash, not the Grep tool):
# single-line signatures grep -rnP 'function\s+\w+\s*\([^)]*\)\s+(external|public)(?!.*\b(view|pure)\b)' src/ --include='*.sol' # multi-line signatures (visibility on closing-paren line) grep -rnP '^\s*\)\s+(external|public)(?!.*\b(view|pure)\b)' src/ --include='*.sol' -B5 - Classify EACH grep hit by reading its body: permissionless (no modifier AND no
internal
msg.sendercheck), role-gated (modifier or internal restriction —acceptOwnershipstyle counts), or admin-only.nonReentrantalone is NOT access control. The grep list is the source of truth — subagent summaries lose. - Centralization analysis per privileged role: enumerate operational actions, distinguish role-transfer delays from action delays, mark which actions can extract user funds.
- Pause-coverage analysis: which critical functions are
whenNotPaused, which aren't. Integrate gaps into the relevant role's attack surface — do NOT make a standalone "Centralization Risks" section (that duplicates Actors / Trust Boundaries / Attack Surfaces).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 107 lines · 80 tokens per session scan A d65e517859f2
pre-audit-threat-model is a skill published in the GitHub repository mtarcure/claude-vibe-squad (227 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 1,516 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.
pre-audit-threat-model compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pre-audit-threat-modelmtarcure/claude-vibe-squad | Skill | 227 | 1mo ago | MIT | A | 80 | Claude Code, Codex |
| payrunxhq/runx | Skill | 106 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| conviction-fmabcxz/conviction-fm | Skill | 1 | 8mo ago | MIT | A | 53 | Claude Code, Codex |
| aomi-transactGhosteken/agent-harness | Skill | 1 | 26d ago | MIT | A | 95 | Claude Code |
| interviewHmbown/CodeWhale | Skill | 41k | today | MIT | A | 40 | Claude Code, Codex |
| documentHmbown/CodeWhale | Skill | 41k | today | MIT | A | 0 | Claude Code, Codex |
| pptxHmbown/CodeWhale | Skill | 41k | today | MIT | A | 16 | Claude Code, Codex |