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 agentmods add commands/solanabr/auditor-skill/threat-modelgit clone --depth 1 https://github.com/solanabr/auditor-skillWrote 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/commands/solanabr/auditor-skill/threat-model)<a href="https://agentmods.dev/commands/solanabr/auditor-skill/threat-model"><img src="https://agentmods.dev/badge/commands/solanabr/auditor-skill/threat-model.svg" alt="Measured on agentmods" 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 | $0.00140 | $0.01045 |
| Opus 5 | $0.00070 | $0.00522 |
| Sonnet 5 | $0.00028 | $0.00209 |
| Haiku 4.5 | $0.00014 | $0.00104 |
Grade A, and why
auditor: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 5d 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 — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
auditor-skill — Pre-Review Threat Model
Arguments: $ARGUMENTS
Build the threat model before the manual review judges anything — analogous to how context reconstruction (Phase 0.5) precedes verdicts. Read templates/threat-model.md (the artifact you fill) and the report sections it feeds: templates/audit-report.md §4.4 (Trust Model & Actors), §4.6 (Assumptions & Simplifications), §4.7 (Systemic / Thematic Risks). This is target enumeration, not a findings document — no severities, no verdicts.
Inputs
- The in-scope code (instructions, accounts, PDAs, CPIs, arithmetic).
audit_<n>/intake.md§6 — the trust-model inputs (who is trusted). The actor list to expand. Read it if present; if absent, run/auditor:intakefirst or reconstruct actors from the code and note intake was unavailable.audit_<n>/worksheets/context/*—context-builder's invariants, assumptions, and external-interaction risks, if the context phase has run.audit-mem warm <program-id>prior invariants + open FP rulings, iftools/auditor-toolsis built (skip cleanly otherwise).
Mode
- Automated (
--auto, theaudit-cyclepath) — spawn thethreat-modeleragent (opus). It reconstructs the three artifacts from code + context worksheets and emitsaudit_<n>/threat-model.md, every claim cited tofile:line. - Interactive (default) — ask the human the model questions a tool cannot settle: which assets are the crown jewels, which actors are genuinely trusted vs. untrusted, what each actor must be prevented from doing. Fill the artifact from their answers plus the code.
What to build
Fill templates/threat-model.md:
- Asset inventory — crown-jewel assets by class (funds / authority / data), where each lives (account / PDA), cited to definition/holding site, and the worst case if compromised. Aligns to report §4.2.
- Actor × capability table — for each actor (permissionless user / LP / keeper / admin / upgrade authority / oracle / CPI callee): trust level, what they can do (→ the instruction @
file:line), and — the load-bearing column — what they must NOT be able to do. Column layout aligns to report §4.4 (Privileges / Trust Assumption); the "must NOT" cells are the security properties the reviewers test. - Trust-boundary map — every CPI, caller-supplied account, instruction arg,
remaining_accounts, and sysvar that crosses from lower to higher trust, cited, with whether it is validated (cite the guard or mark✗). Feeds report §4.6 (what is trusted) and §4.7 (transitive/indirect CPI risk). - Attacker goals to test — derived from the "must NOT" cells and the unvalidated crossings, each mapped to the checklists / known-vectors that hunt it. These are the goals
vuln-hunterandeconomic-analysttry to achieve; a goal that turns out reachable becomes a finding downstream through the Rule 5b gate.
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.
- 5d ago First seen · 44 lines · 140 tokens per session scan A 2635bac5fd6a
auditor:threat-model is a command published in the GitHub repository solanabr/auditor-skill (53 stars, last pushed 2d ago), licensed MIT. It adds 140 tokens to every session and 1,045 once invoked, about $0.0007 per session on Opus 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-08-30.
Other commands, from other repositories
wp-perf-review
WordPress performance code review - detects database anti-patterns, caching issues, hook problems, and scalability concerns.
wp-perf
Quick WordPress performance scan - fast triage using critical pattern detection.
valuation-methods
Valuation methods analysis — multiples, DCF inputs, PEG integration, valuation assumption extraction.
genshijin-compress
Markdown・テキストファイルを原始人形式へ安全圧縮.
save
Save this conversation as a new or existing reusable context.
enum-udp
UDP scan + service follow-up — top ports first, full sweep only when justified.