audit

audit is a command for Claude Code from MadAppGang/magus. It costs 22 tokens per session (4,418 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; names the AskUserQuestion tool; mentions Claude Code.

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 4,418 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.04418
Opus 5.5 $0.00009 $0.01767
Sonnet 5.5 $0.00004 $0.00884
Haiku 4.5 $0.00002 $0.00442

Measured 22d ago against content hash 4d61142159a8, 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 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.

plugins/dev/commands/audit.md · 325 lines

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

Read the full file on GitHub · 325 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. 22d ago Changed · +1 lines 4d61142159a8
  2. 1mo ago Changed · +31 lines 32143ce228b0
  3. 1mo 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 (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.