Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Borda/AI-Rig/plugin install foundryWrote 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/borda/ai-rig/audit)<a href="https://agentmods.dev/skills/borda/ai-rig/audit"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/audit/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/borda/ai-rig/audit"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/audit.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.00137 | $0.16414 |
| Opus 5.5 | $0.00055 | $0.06566 |
| Sonnet 5.5 | $0.00027 | $0.03283 |
| Haiku 4.5 | $0.00014 | $0.01641 |
Grade A, and why
audit 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 14d 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 — 686 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Full-sweep audit of .claude/ config + all plugins/*/ files: agents, skills, rules, settings.json, hooks. Spawns foundry:curator per-file, aggregates system-wide for cross-file issues — infinite loops, missing permissions, interop breaks. Reports findings; fix level from follow-up gate.
-
$ARGUMENTS: optional — parse
--flagsfirst, then resolve remaining tokens as scopeFlags (order independent, any combination with scope):
--local— audit source tree (plugins/*/) not project setup (.claude/); plugin-dev workflows where local edits not yet installed; setsLOCAL_MODE=true--upgrade— fetch latest Claude Code docs, filter new features by genuine value, apply: config changes (apply + correctness check), capability changes (--localonly: calibrate before → apply → calibrate after → accept if Δrecall ≥ 0 and ΔF1 ≥ 0 and at least one delta ≥ 0.05, the noise floor; without--localeach is reported as skipped). Skip to Mode: upgrade. Among--upgrade,--adversarial,--efficiency,--consolidate:--upgradeand--consolidateeach exclude all others;--adversarialand--efficiencymay combine; error on all other mode combinations.--adversarial(alias:--challenge) — adversarial review of all agents + skills in scope usingfoundry:challenger(Phase A) + Codex adversarial pass (Phase B); surfaces issues beyond standard per-file audit; see Mode: adversarial. Among--upgrade,--adversarial,--efficiency,--consolidate:--upgradeand--consolidateeach exclude all others;--adversarialand--efficiencymay combine; error on all other mode combinations.--efficiency— cost and efficiency sweep: model tier validation, token bloat detection, unbounded spawn patterns, cross-file boilerplate duplication, missing model declarations, bin/ extraction candidates (Check 33), size against importance (E11). Generates prioritized cost-reduction plan with estimated savings. Detection only — run/foundry:distill executablesto act on extraction candidates. Skip to Mode: efficiency. Mutually exclusive with--upgradeand--consolidate; combinable with--adversarial.--consolidate— advisory consolidation sweep (Check 47): clusters rule, skill and agent sections that express one intent in different words, proposes fewer broader ones with an obligation map and an independentfoundry:challengerreview, and reports tokens saved per load class. Edits nothing; no fix gate. Skip to Mode: consolidate. Standalone — error if combined with--upgrade,--adversarialor--efficiency.--measured— with--efficiencyonly: a question picks which of the projects whose sessions ran a flagged skill to measure, and the audit adds measured dollars from their transcripts (read-only, ids, counts and dollars only) and append the run to.notes/efficiency/baselines.jsonl, so a re-run prints the change against the first recorded baseline (Phase B3). Off by default: it reads transcripts and writes a ledger. Error without--efficiency--skip-gate— suppress follow-up gate and record BREAKING acknowledgments without a question (for automation pipelines); does not authorize fixes or bypass fatal pre-flight errors--fast— widen fan-out fromMAX_BATCHEStoward that phase's model-tier ceiling (CAP_OPUS/CAP_SONNET, see<constants>and claude-config.md §Parallel Spawn Ceilings), trading tokens for wall-clock. Not free: each extra agent costs ~120,851 tok of fixed overhead regardless of how little work it does. Curator-spawning phases (opus tier) have little headroom aboveMAX_BATCHES=4towardCAP_OPUS=5; Phase D's qa-specialist (sonnet tier) has more, towardCAP_SONNET=8. Use when latency matters more than cost; omit by default. Combinable with every other flag.
Legacy positional tokens (
fix,upgrade,adversarial,challenge,ab,apply,fast,full) — hard error: print migration hint and stop. Example: "fix mediumremoved — run/foundry:auditand pick fix level from gate, or pass--upgrade/--adversarialas flags."
What ships with it
29 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- modes/adversarial.md 16 KB
- modes/consolidate-guards.md 10 KB
- modes/consolidate.md 21 KB
- modes/efficiency-measured.md 4.6 KB
- modes/efficiency.md 34 KB
- modes/fix.md 23 KB
- modes/steps-4-5-7.md 29 KB
- modes/upgrade.md 16 KB
- severity-table.md 5.2 KB
- templates/audit-fix-prompt.md 16 KB
- templates/checks-agents.md 6.7 KB
- templates/checks-index.md 11 KB
- templates/checks-install.md 11 KB
- templates/checks-security.md 8.2 KB
- templates/checks-setup.md 13 KB
- templates/checks-shared.md 42 KB
- templates/checks-skills-bash.md 27 KB
- templates/checks-skills-contract.md 14 KB
- templates/checks-skills-crossplugin.md 17 KB
- templates/checks-skills-deadfiles.md 13 KB
- templates/checks-skills-duplication.md 12 KB
- templates/checks-skills-gaps.md 6.9 KB
- templates/checks-skills-sweep.md 9.6 KB
- templates/checks-skills.md 2.3 KB
- templates/consolidate-cluster-prompt.md 1.9 KB
- templates/consolidate-judge-prompt.md 4.0 KB
- templates/curator-prompt.md 3.3 KB
- templates/fix-prompt.md 1.4 KB
- templates/report-template.md 4.2 KB
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.
- 14d ago Changed · +116 lines 64dff85e4824
- 18d ago Changed · +28 lines · -1 tokens per session c64a7c736f9e
- 21d ago Changed · +2 lines a62d3ceabb69
- 28d ago Changed eecef12ee7e3
- 1mo ago Changed · +19 lines · +29 tokens per session 59df4da0f79f
- 1mo ago Changed · -8 lines fc842919027e
- 1mo ago Changed 1486818911ab
- 1mo ago Changed · +3 lines 2bf1f6af7514
- 1mo ago Changed 782c66163fe7
- 1mo ago First seen · 526 lines · 109 tokens per session scan A ed577996ab79
audit is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 137 tokens to every session and 16,414 once invoked, about $0.0005 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-08-30.
audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| auditBorda/AI-Rig | Skill | 31 | yesterday | Apache-2.0 | A | 137 | Claude Code |
| anomaly-alerthoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 86 | Claude Code, Codex |
| transcript-grephoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 73 | Claude Code, Codex |
| regression-watchhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 82 | Claude Code, Codex |
| hook-inventoryhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 71 | Claude Code, Codex |
| event-tracehoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 73 | Claude Code, Codex |
| api-error-reporthoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 72 | Claude Code, Codex |