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.04418 |
| Opus 5.5 | $0.00009 | $0.01767 |
| Sonnet 5.5 | $0.00004 | $0.00884 |
| Haiku 4.5 | $0.00002 | $0.00442 |
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 22d 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 — 325 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 via the Agent tool to the agent the scope
resolves to, with the contract lines below and nothing else in the prompt.
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 and claudish is installed — 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. Is claudish present?
```bash
which claudish >/dev/null 2>&1
```
Presence is the claudish runtime — the binary above, or the
`mcp__plugin_claudish_claudish__team` tool being registered in this
session. 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. Both true → 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>`.
4. Otherwise `MODELS: none`. If models were named but claudish is absent,
tell the user once — "claudish is not installed; running the internal
reviewer only" — and continue. 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` (or
`— claudish absent`) to `${AUDIT_PATH}/gates.log`, and repeat that line
when relaying the result. Silence about a skipped panel is a defect
(`${CLAUDE_PLUGIN_ROOT}/skills/core/team-gate/SKILL.md`, steps 6-7).
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.
- 22d ago Changed · +1 lines 4d61142159a8
- 1mo ago Changed · +31 lines 32143ce228b0
- 1mo ago First seen · 293 lines · 22 tokens per session scan A d5cd41308528
audit is a command published in the GitHub repository MadAppGang/magus (13 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 4,418 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.
Other commands, from other repositories
refactor
Systematic code refactoring with smart scope detection.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
boot
Start a new PromptKit prompt assembly session (alias for /bootstrap).
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.