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 MadAppGang/magus/plugin install devWrote 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/madappgang/magus/audit)<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.
<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>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.00022 | $0.05525 |
| Opus 5.5 | $0.00009 | $0.02210 |
| Sonnet 5.5 | $0.00004 | $0.01105 |
| Haiku 4.5 | $0.00002 | $0.00553 |
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.
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.
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.
- yesterday Changed · +17 lines 93bba7b08c4d
- 11d ago Changed · +1 lines d936f9f340df
- 19d ago Changed 87d0b7d5cb84
- 1mo ago Changed · +7 lines 1137a5e42579
- 1mo ago Changed · +24 lines 499909c3c9d3
- 2mo ago Changed · +1 lines 4d61142159a8
- 2mo ago Changed · +31 lines 32143ce228b0
- 2mo ago First seen · 293 lines · 22 tokens per session scan A d5cd41308528
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.
audit compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| auditMadAppGang/magus | Command | 16 | today | MIT | A | 22 | Claude Code |
| review-branchdamusix/atomic-claude | Command | 117 | 2d ago | MIT | A | 35 | Claude Code |
| diff-reviewcoco-research/coco | Command | 323 | 2d ago | Apache-2.0 | A | 11 | Claude Code |
| spec-trace-requirementsrjmurillo/ai-agents | Command | 50 | today | Apache-2.0 | A | 0 | GitHub Copilot |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 50 | today | Apache-2.0 | A | 0 | GitHub Copilot |
| initazrtydxb/procoder | Command | 212 | 22d ago | Apache-2.0 | A | 16 | Claude Code |
| refactorRchGrav/claudebox | Command | 1.2k | 2mo ago | MIT | A | 9 | Claude Code |