claude-soul: Command for Claude Code

.claude/commands/audit-catalog.md

audit-catalog is a command for Claude Code from tomdwipo/claude-soul. It costs 0 tokens per session (863 once invoked), scanned A, original, MIT.

A command that systematically reviews a documentation catalogue for repeated entries, broken links, and differences between documentation and code.

In plain words
What is it for?
Use it to audit common-issue or principle documents, find entries covering the same underlying cause, check links, and spot outdated guidance.
Why use it?
Incremental reviews can miss the same issue when it appears under different topics. It provides a periodic review that still leaves decisions to a person.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

This is tomdwipo/claude-soul's own configuration. It tells Claude Code how to work on claude-soul 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-soul configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tomdwipo/claude-soul. 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/tomdwipo/claude-soul/main/.claude/commands/audit-catalog.md
Clone the repo
git clone --depth 1 https://github.com/tomdwipo/claude-soul

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/tomdwipo/claude-soul/audit-catalog"><img src="https://agentmods.dev/badge/commands/tomdwipo/claude-soul/audit-catalog.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 863 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.00863
Opus 5 $0.00000 $0.00432
Sonnet 5 $0.00000 $0.00173
Haiku 4.5 $0.00000 $0.00086

Measured 10d ago against content hash d0408d284ab4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

audit-catalog 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 10d 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/audit-catalog.md · 46 lines

How it starts

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

/audit-catalog — periodic by-mechanism audit of the .docs catalogs (dedup / cross-link / drift)

Run a SYSTEMATIC, exhaustive audit of .docs/common-issues/ (default) — or .docs/principles/ if $ARGUMENTS says "principles" (or "both"). Cross-session catalogs accrete overlap, broken links, and doc↔code drift that incremental passes miss; this finds them in one pass. Common-issues need this more often than principles (raw incidents vs distilled-via-how-to-learn).

Why a command, not a cron: findings need judgment to act on (which links are genuine, what to skip), so this runs with review, not autonomously. Invoke it periodically (e.g. every ~15–20 new entries, or after a big feature batch).

Method (the lesson this encodes)

Scan by MECHANISM, not by label — the same gotcha filed under a different topic label hides from a keyword grep and from a skim. And run a disconfirmation pass: don't stop at the comfortable "it's clean."

Steps

  1. Extract mechanisms (delegate, fresh). Spawn a fresh general-purpose sub-agent (independent → no bias from prior conclusions). Have it: list every .md in the target dir (excl. README.md, how-to-learn.md, android/); read EACH and write its core mechanism in one line (the cognitive move, independent of topic/stack); group by shared mechanism; for each group ≥2, grep members for [[other-slug]] to see what's already linked. It must report, conservatively: (a) same-mechanism clusters with a MISSING cross-link (members + which links absent), (b) true near-duplicate / merge candidates, (c) broken wikilinks (a [[slug]] whose file doesn't exist), (d) counts (files read, distinct mechanisms). Read-only; tag each finding [High/Med/Low]. Tell it which clusters are already-linked (exclude them) so it doesn't re-report.
  2. Verify each candidate yourself by READING the files — never link on the sub-agent's abstraction alone (a one-line mechanism can over-group). Confirm the cognitive move genuinely matches.
  3. Cross-link the genuine ones, don't merge — each entry keeps its specific "how"; add a one-line "shared mechanism" note + bidirectional [[ ]] links (+ a sibling-ref in the index row for recall). Merge only a TRUE duplicate (one fully absorbs the other) — rare; merge ≠ free.
  4. Fix broken wikilinks (slug typos) and repair drift on sight — if an entry describes a state that now contradicts the code (e.g. "we kept X loose" but X was since fixed), update it (doc-tracks-code). The by-mechanism read surfaces drift a label-skim never would.
  5. Be conservative — skip loose ones, say so. Don't mechanically link every thematic adjacency (over-linking dilutes recall too). If a cluster's real home is an existing principle, point each member at the principle instead of peer-linking.
  6. Idempotent: re-running is safe — already-linked pairs are excluded, edits are additive. If a parallel session may have touched the catalog, git fetch first.
  7. Log + review: add a dated recent-updates line (clusters linked, drift/broken-links fixed, what was consciously skipped + why). Show the diff and STOP for review; commit only when told. Propagate generic findings to a public mirror if one exists (if a public mirror exists); note any cluster whose member isn't there.

Read the full file on GitHub · 46 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. 10d ago First seen · 46 lines · 0 tokens per session scan A d0408d284ab4

Subscribe to this mod's changes

audit-catalog is a command published in the GitHub repository tomdwipo/claude-soul (24 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 863 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-30.