claude-code-workflow: Command for Claude Code

.claude/commands/meta-audit.md

meta-audit is a command for Claude Code from Caspian-Sun/claude-code-workflow. It costs 0 tokens per session (810 once invoked), scanned A, original, MIT.

A command that starts a meta-audit: a broad review of a codebase's rules, documentation, links, consistency, traceability, and unused files.

In plain words
What is it for?
Use it for a full audit or to focus on rule violations, outdated documentation, internal inconsistencies, traceability, dead links, or orphaned assets.
Why use it?
It delegates the investigation and creates a report, so the main agent does not have to perform every audit check itself.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions subagents.

This is Caspian-Sun/claude-code-workflow's own configuration. It tells Claude Code how to work on claude-code-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Caspian-Sun/claude-code-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/commands/meta-audit.md
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

Made for: Claude Code.

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 meta-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/meta-audit/github.svg)](https://agentmods.dev/commands/caspian-sun/claude-code-workflow/meta-audit)
Your own site
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/meta-audit"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/meta-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 meta-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/meta-audit"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/meta-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 810 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.00000 $0.00810
Opus 5.5 $0.00000 $0.00324
Sonnet 5.5 $0.00000 $0.00162
Haiku 4.5 $0.00000 $0.00081

Measured 2mo ago against content hash 3748d5b6f8e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

meta-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 2mo 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.

.claude/commands/meta-audit.md · 98 lines

How it starts

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

You are now the meta-audit coordinator. The user just typed /meta-audit. Your sole responsibility is to spawn a meta-auditor sub-agent to perform a full scan, then present the report's key findings to the user.

Command Arguments

The user may pass:

  • --focus=<dimension> — scan only one dimension (rule-violations / doc-drift / internal-consistency / traceability / dead-links / orphaned-assets)
  • --output=<path> — override the default report location

No arguments = scan all 6 dimensions, write report to docs/retrospectives/<today's date>-meta-audit.md.

Execution Flow

1. Find the Previous Report (for trend comparison)

Glob(pattern="docs/retrospectives/*-meta-audit.md")

Sort by filename and take the most recent (excluding any same-day report that may already exist).

2. Spawn meta-auditor agent

Agent(
  subagent_type="meta-auditor",
  description="Engineering meta-audit",
  prompt=<see prompt template below>
)

Prompt template (variables to fill are in <>):

Please execute a meta-audit and output the report to docs/retrospectives/<today>-meta-audit.md.

Scan dimensions: <full | focus=<dimension>>
Previous report (for trend comparison): <previousReportPath | first run>

Strict constraints:
- Only Read / Grep / Glob for scanning
- Only Write to the report path; do not touch any other files
- Do not reference git, do not modify .claude/, do not modify workspace/

Follow the execution steps and report format defined in .claude/agents/meta-auditor.md.

3. Receive summary and show to user

After receiving the summary returned by meta-auditor, output the following in the terminal:

## 📊 Meta-audit complete

**Report**: [docs/retrospectives/<date>-meta-audit.md](docs/retrospectives/<date>-meta-audit.md)

### Findings
- 🔴 Must fix: X items
- 🟡 Recommend fixing: Y items
- 🔵 Discussion: Z items

### Top 3 Must-Fix (prioritize these)
1. <1st item from agent>
2. <2nd item from agent>
3. <3rd item from agent>

### Trend (vs. last run)
- Resolved: A items ✅
- New: B items
- Persistently unaddressed: C items ⚠️

### Next Steps
Please review the full report. For accepted suggestions, follow the normal process to implement:
- Rule changes → edit .claude/rules/ directly
- Code changes → use /fix or normal development flow
- Discussion items → open a GitHub issue or discuss with the team

This command **does not auto-fix** — all changes require human decision.

Read the full file on GitHub · 98 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. 2mo ago First seen · 98 lines · 0 tokens per session scan A 3748d5b6f8e3

Subscribe to this mod's changes

meta-audit is a command published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 810 tokens. 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-31.