audit

audit is a skill for Claude Code from Borda/AI-Rig. It costs 137 tokens per session (16,414 once invoked), scanned A, original, Apache-2.0.

A full quality audit for Claude Code configuration, including agents, skills, rules, settings, hooks, and installed plugins.

In plain words
What is it for?
Use it to inspect local or installed configuration, check model assignments and efficiency, apply documentation-based upgrades, or run adversarial reviews.
Why use it?
It finds inconsistencies, outdated documentation, missing permissions, broken connections, and differences between the files on disk and the recorded inventory.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to inspect local or installed configuration, check model assignments and efficiency, apply documentation-based upgrades, or run adversarial reviews.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 agents.

Wrote 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.

agentmods badge for audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/audit/github.svg)](https://agentmods.dev/skills/borda/ai-rig/audit)
Your own site
<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.

agentmods 80×15 button for audit

Your own site · 80×15
<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>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 14d ago against content hash 64dff85e4824, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/cc_foundry/skills/audit/SKILL.md · 686 lines

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 --flags first, then resolve remaining tokens as scope

    Flags (order independent, any combination with scope):

    • --local — audit source tree (plugins/*/) not project setup (.claude/); plugin-dev workflows where local edits not yet installed; sets LOCAL_MODE=true
    • --upgrade — fetch latest Claude Code docs, filter new features by genuine value, apply: config changes (apply + correctness check), capability changes (--local only: calibrate before → apply → calibrate after → accept if Δrecall ≥ 0 and ΔF1 ≥ 0 and at least one delta ≥ 0.05, the noise floor; without --local each is reported as skipped). Skip to Mode: upgrade. Among --upgrade, --adversarial, --efficiency, --consolidate: --upgrade and --consolidate each exclude all others; --adversarial and --efficiency may combine; error on all other mode combinations.
    • --adversarial (alias: --challenge) — adversarial review of all agents + skills in scope using foundry:challenger (Phase A) + Codex adversarial pass (Phase B); surfaces issues beyond standard per-file audit; see Mode: adversarial. Among --upgrade, --adversarial, --efficiency, --consolidate: --upgrade and --consolidate each exclude all others; --adversarial and --efficiency may 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 executables to act on extraction candidates. Skip to Mode: efficiency. Mutually exclusive with --upgrade and --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 independent foundry:challenger review, and reports tokens saved per load class. Edits nothing; no fix gate. Skip to Mode: consolidate. Standalone — error if combined with --upgrade, --adversarial or --efficiency.
    • --measured — with --efficiency only: 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 from MAX_BATCHES toward 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 above MAX_BATCHES=4 toward CAP_OPUS=5; Phase D's qa-specialist (sonnet tier) has more, toward CAP_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 medium removed — run /foundry:audit and pick fix level from gate, or pass --upgrade / --adversarial as flags."

Read the full file on GitHub · 686 lines

Changes

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.

  1. 14d ago Changed · +116 lines 64dff85e4824
  2. 18d ago Changed · +28 lines · -1 tokens per session c64a7c736f9e
  3. 21d ago Changed · +2 lines a62d3ceabb69
  4. 28d ago Changed eecef12ee7e3
  5. 1mo ago Changed · +19 lines · +29 tokens per session 59df4da0f79f
  6. 1mo ago Changed · -8 lines fc842919027e
  7. 1mo ago Changed 1486818911ab
  8. 1mo ago Changed · +3 lines 2bf1f6af7514
  9. 1mo ago Changed 782c66163fe7
  10. 1mo ago First seen · 526 lines · 109 tokens per session scan A ed577996ab79

Subscribe to this mod's changes

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.

Related

audit compared with skills from other repositories

audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auditBorda/AI-RigSkill31yesterdayApache-2.0A137Claude Code
anomaly-alerthoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA86Claude Code, Codex
transcript-grephoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA73Claude Code, Codex
regression-watchhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA82Claude Code, Codex
hook-inventoryhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA71Claude Code, Codex
event-tracehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA73Claude Code, Codex
api-error-reporthoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA72Claude Code, Codex