audit

audit is a command for Claude Code from MadAppGang/magus. It costs 22 tokens per session (5,525 once invoked), scanned A, original, MIT.

A quality-audit command that sends a review request to a specialist based on its scope, such as code, user interface, documentation, security, or plugin quality.

In plain words
What is it for?
Use it to route code reviews, UI and design reviews, documentation checks, security audits, and plugin or agent-quality reviews.
Why use it?
It removes the need to choose and coordinate the right reviewer for each kind of quality check. It keeps the audit process read-only and focused on the requested area.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

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 dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Use it to route code reviews, UI and design reviews, documentation checks, security audits, and plugin or agent-quality reviews.

Compare 6 commands 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 MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 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/commands/madappgang/magus/audit/github.svg)](https://agentmods.dev/commands/madappgang/magus/audit)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/audit"><img src="https://agentmods.dev/badge/commands/madappgang/magus/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/commands/madappgang/magus/audit"><img src="https://agentmods.dev/badge/commands/madappgang/magus/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,525 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.00022 $0.05525
Opus 5.5 $0.00009 $0.02210
Sonnet 5.5 $0.00004 $0.01105
Haiku 4.5 $0.00002 $0.00553

Measured yesterday against content hash 93bba7b08c4d, 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 yesterday.

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/dev/commands/audit.md · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<user_request>$ARGUMENTS</user_request>

<critical_override> THIS COMMAND OVERRIDES THE CLAUDE.md TASK ROUTING TABLE. WHY: This is a READ-ONLY router. It must NEVER self-handle review work. RULE: ALL review work is delegated to the agent the scope resolves to, with the contract lines below and nothing else in the prompt — a dev:reviewer row in a session of its own (step 3), every other row via the Agent tool. NEVER: Review code, assess quality, provide feedback inline, or restate a reviewer's checklist in the prompt — the reviewer owns its own rules. EXCEPTION: the design-system scope hands off to the /dev:design-system command instead of an agent — that scope is script-driven measurement, not subjective review, and the command owns its own workflow. </critical_override>

<value_banner> Display this ONCE at the start of the command (not on subsequent uses in same session):

/dev:audit — Multi-Scope Quality Audit Beyond Claude's built-in /code-review (PR diff review), this command adds:

  • 6 audit scopes: code quality, UI/design, design system, documentation, security, plugin/agent
  • Routes to specialist reviewers (dev:reviewer, designer:review, dev:docs)
  • Design-system drift measured by a bundled auditor via /dev:design-system
  • Multi-model when you name models — through claudish, or the matching CLIs in terminal slots without it — the internal reviewer always runs, externals are additive
  • One output shape on every route: a consolidated report ending in a VERDICT: line
  • Structured reports with severity levels (CRITICAL/HIGH/MEDIUM/LOW)
  • Plugin-aware: detects and uses the designer plugin when installed

For PR-specific diff review, use the built-in /code-review command. </value_banner>

  question: "What kind of review do you want?"
  header: "Review Scope"
  options:
    - label: "Code quality"
      description: "Correctness, patterns, maintainability, best practices"
    - label: "UI / design"
      description: "Visual implementation against a design spec"
    - label: "Design system"
      description: "Token-only styling, one component library, variants over call-site restyling — measured, not read"
    - label: "Documentation"
      description: "Accuracy, completeness, clarity of docs"
    - label: "Security"
      description: "Vulnerability scan, auth patterns, input validation, dependencies, secrets"
    - label: "Plugin or agent"
      description: "Quality of Claude Code agent design or command"

  Inference rules (skip AskUserQuestion if match is confident):
  - "code", "pr", "pull request", "function", "class", "method", "module" → code
  - "ui", "design", "visual", "figma", "component", "layout", "pixel" → ui
  - "design system", "design-system", "guardrails", "tokens", "theme", "storybook",
    "variants", "hardcoded color", "style drift", "consistency" → design-system
  - "docs", "readme", "documentation", "comments", "docstring", "jsdoc" → docs
  - "security", "auth", "vulnerability", "injection", "csrf", "xss", "jwt" → security
  - "agent", "plugin", "command", "skill", "prompt" → plugin
</step>

<step number="2" name="Models">
  Resolve `MODELS:` — the one contract line this command owns outright.

  1. Did the user name models? Look in $ARGUMENTS for `--models a,b,c` or a
     phrase naming external models ("with grok and gemini", "get kimi's view").
  2. Pick the review route: read
     `${CLAUDE_PLUGIN_ROOT}/skills/core/team-gate/cli-sessions.md`, "the
     review-session routes", §1. claudish is present when the
     `mcp__plugin_claudish_claudish__team` tool is registered in this session —
     the tool, never the binary on PATH: inside a claudish child the binary is
     there and `team` is not. It is never "is the multimodel plugin installed":
     the review gates need only the claudish runtime. multimodel is optional. If
     it is not installed and the user asked for models, say once that
     `claude plugin install multimodel@magus` adds `/multimodel:team` and
     `/multimodel:delegate`, then continue without it.
  3. Models named, claudish route → resolve each name against the live
     catalog: `list_models` first, then `search_models` for a family it does not
     cover — the procedure in `claudish:claudish-usage`, "Model Alias
     Resolution". A version the user names is a hard constraint: if it is not in
     the catalog, say so and show the live alternatives; never substitute a
     lower version. The result is `MODELS: <bare catalog ids, comma-separated>`.
     Models named, cli-sessions route → each id the user named goes to the CLI
     of its family with that exact id (§4.1 of that file), and `MODELS:` lists
     the ids that will run; one no installed CLI carries is skipped and logged.
  4. Otherwise `MODELS: none` on every route — no models named, every named id
     skipped, or the nested route; with no models named this command never takes
     `cli-sessions.md`'s default panel, which is `/dev:fix`'s. The internal reviewer
     is never optional and never waits on an external one. Once `AUDIT_PATH` exists (step 3.1), write the skip down:
     append `gate skipped: code-review — MODELS none` to
     `${AUDIT_PATH}/gates.log`, and repeat that line when relaying the result.
     On the nested route write no skip line: the `gate route:` line from
     `team-gate/cli-sessions.md` is that gate's record, and a second line would
     give one skip two reasons.
     Silence about a skipped panel is a defect
     (`${CLAUDE_PLUGIN_ROOT}/skills/core/team-gate/SKILL.md`, steps 6-7). The
     stop route stops the `dev:reviewer` rows here, as that file says; the docs,
     ui (designer) and design-system scopes need no review session and run as
     before.

Read the full file on GitHub · 374 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. yesterday Changed · +17 lines 93bba7b08c4d
  2. 11d ago Changed · +1 lines d936f9f340df
  3. 19d ago Changed 87d0b7d5cb84
  4. 1mo ago Changed · +7 lines 1137a5e42579
  5. 1mo ago Changed · +24 lines 499909c3c9d3
  6. 2mo ago Changed · +1 lines 4d61142159a8
  7. 2mo ago Changed · +31 lines 32143ce228b0
  8. 2mo ago First seen · 293 lines · 22 tokens per session scan A d5cd41308528

Subscribe to this mod's changes

audit is a command published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 5,525 once invoked, about $0.0001 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-04.

Related

audit compared with commands from other repositories

audit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auditMadAppGang/magusCommand16todayMITA22Claude Code
review-branchdamusix/atomic-claudeCommand1172d agoMITA35Claude Code
diff-reviewcoco-research/cocoCommand3232d agoApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
initazrtydxb/procoderCommand21222d agoApache-2.0A16Claude Code
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code