Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/oalders/kitchen-sinkWrote 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/oalders/kitchen-sink/audit-claude-md)<a href="https://agentmods.dev/commands/oalders/kitchen-sink/audit-claude-md"><img src="https://agentmods.dev/badge/commands/oalders/kitchen-sink/audit-claude-md/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/oalders/kitchen-sink/audit-claude-md"><img src="https://agentmods.dev/badge/commands/oalders/kitchen-sink/audit-claude-md.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.00018 | $0.04026 |
| Opus 5 | $0.00009 | $0.02013 |
| Sonnet 5 | $0.00004 | $0.00805 |
| Haiku 4.5 | $0.00002 | $0.00403 |
Grade A, and why
audit-claude-md 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.
How it starts
The opening of the file, as written. The whole thing — 495 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Audit CLAUDE.md Files
Overview
Comprehensive audit of CLAUDE.md files checking: (1) Token efficiency and clarity, (2) Accuracy against actual codebase, (3) AI-specific anti-patterns.
When to Use
Run periodically (monthly or after major refactoring) to ensure CLAUDE.md stays efficient and accurate.
Steps
1. Locate CLAUDE.md Files
Check conversation context first. If not specified:
find . -name "CLAUDE.md" -o -name "claude.md"
2. Invoke CLAUDE.md Auditor
Task(general-purpose):
description: Audit CLAUDE.md for efficiency and accuracy
model: "sonnet"
prompt:
# CLAUDE.md Auditor
You are an AI instruction expert auditing CLAUDE.md files for quality and accuracy.
**Your task:**
1. Audit all CLAUDE.md files in codebase
2. Check token efficiency and clarity
3. Verify accuracy against actual codebase
4. Identify AI-specific anti-patterns
5. Provide quantitative metrics and prioritized fixes
## What to Audit
Codebase: [PATH]
Focus: CLAUDE.md files (root and subdirectories)
## Comprehensive Audit Checklist
**CRITICAL: Check EVERY category systematically with specific examples.**
### 1. Token Efficiency
**Duplication Between Files:**
- Multiple CLAUDE.md files with overlapping content
- Same instructions repeated in different files
- **REQUIRED**: If multiple files exist, compare line-by-line
- Calculate duplication percentage
- Report: word count per file, overlap estimate, which sections duplicate
**Verbose Documentation:**
- Instructions that reference external docs but also duplicate content
- Example: 85-line explanation when README already has full docs
- Check: Does CLAUDE.md document something that has dedicated docs elsewhere?
- Report: sections that should be condensed to references
**Repetitive Examples:**
- Multiple examples showing same pattern
- Overly detailed step-by-step for simple operations
- Report: examples that could be removed without losing clarity
**Defensive/Obvious Explanations:**
- Explaining things that are self-evident
- Multiple warnings about same issue
- NEVER/ALWAYS in all-caps with lengthy explanations
- Report: passages that could be 50%+ shorter
**Metrics to Report:**
```
Token Efficiency:
- Total words: X words across Y files
- Duplication: ~Z words (N% of total)
- Verbose sections: M sections, ~P words that could be Q words
- Estimated savings: ~R words (S% reduction)
```
### 2. Clarity Issues
**Contradictory Instructions:**
- Section A says "always do X", Section B shows doing Y
- One file says "NEVER run X" but Commands section shows running X
- **REQUIRED**: Cross-reference all command examples with CRITICAL/WARNING sections
- Report: specific contradictions with line numbers
**Vague Instructions:**
- "Be careful when..."
- "Consider using..."
- "May need to..."
- No concrete guidance on WHEN or HOW
- Report: vague phrases with specific examples
**Ambiguous Commands:**
- Commands without working directory context
- Paths that could be interpreted multiple ways (./bin vs bin/ vs go/bin/)
- Conditional logic ("if X then Y") without clear X definition
- Report: commands needing clarification
**Missing Context:**
- References to "the command" without specifying which
- "Run tests" without specifying how or from where
- Assumes knowledge not documented elsewhere
- Report: instructions needing more context
**Metrics to Report:**
```
Clarity:
- Contradictions found: X instances
- Vague instructions: Y phrases
- Ambiguous commands: Z commands
- Missing context: N sections
```
### 3. Organization Problems
**Multiple File Chaos:**
- No clear principle for what goes in which file
- Critical info split across files
- Related info separated
- **REQUIRED**: If multiple files exist, describe current split and recommend better organization
- Report: proposed file structure
**Hard to Scan:**
- Walls of text without headers
- No visual hierarchy (all same heading level)
- Important commands buried in prose
- No quick reference sections
- Report: sections needing better structure
**Information Scattering:**
- Related commands in different sections
- Architecture info mixed with commands
- No clear narrative flow
- Report: information that should be grouped
**Metrics to Report:**
```
Organization:
- CLAUDE.md files: X locations
- Sections hard to scan: Y sections
- Scattered topics: Z topics
- Recommended structure: [outline]
```
### 4. Accuracy Against Codebase (CRITICAL)
**Outdated Commands:**
- Commands that no longer work
- References to moved/renamed binaries
- **REQUIRED**: Test each command path exists
- Example checks:
* `go/bin/model` → Check file exists and is executable
* `npm run test` → Check package.json has "test" script
* `docker compose up` → Check docker-compose.yml or compose.yaml exists
- Report: commands with broken paths, line numbers
**Dead Links/References:**
- References to files that don't exist
- "See README.md" when no README exists
- **REQUIRED**: Verify every file reference with actual filesystem
- Report: dead links with file:line and what they reference
**Incorrect Environment Variables:**
- Documentation uses variable name that doesn't match code
- Example: CLAUDE.md says `ANTHROPIC_API_KEY` but code uses `MMIR_ANTHROPIC_API_KEY`
- **REQUIRED**: Grep codebase for environment variable usage
- Report: mismatched variable names with correct values from code
**Outdated Tool/Dependency Info:**
- Lists tools/dependencies that are no longer used
- Missing newly added dependencies
- **REQUIRED**: Compare with actual dependencies (go.mod, package.json, requirements.txt)
- Report: outdated dependency information
**Version-Specific Instructions:**
- References specific versions that may be obsolete
- Example: "In Go 1.18+" when project now uses Go 1.22
- Example: "Before Node 16" when project requires Node 20
- **REQUIRED**: Check version references against actual project requirements
- Report: version-specific instructions that may be outdated
**Incorrect Directory Structure:**
- Documentation describes structure that doesn't match reality
- Example: Says tests are in `test/` but they're in `__tests__/`
- **REQUIRED**: Verify key directories mentioned
- Report: structure mismatches
**Incomplete Feature Lists:**
- Lists scrapers, importers, commands that are incomplete
- Example: Lists 8 scrapers but 12 actually exist
- **REQUIRED**: Find actual implementations, compare with documentation
- Report: missing items with counts
**Example Code That Doesn't Work:**
- Code snippets with syntax errors
- Imports that don't exist
- Function calls with wrong signatures
- **REQUIRED**: Check example code against actual codebase patterns
- Report: broken examples with fixes
**Metrics to Report:**
```
Accuracy:
- Commands verified: X total, Y broken
- File references: X total, Y dead links
- Environment variables: X total, Y mismatched
- Directory structure: Accurate/Inaccurate
- Feature lists: X incomplete (Y missing items)
- Code examples: X total, Y broken
```
### 5. AI-Specific Anti-Patterns
**Nested Conditional Prose:**
- "If X, then Y, unless Z, but if W then back to X"
- Complex decision trees in paragraph form
- Better: Use markdown tables or bullet points
- Report: complex conditionals that should be structured
**Implicit Priorities:**
- Everything marked CRITICAL or IMPORTANT
- No clear hierarchy of what matters most
- Better: Reserve CRITICAL for actual critical items (≤3 items)
- Report: overuse of priority markers
**Ambiguous Pronouns:**
- "Run this command after that completes"
- "It should output the result"
- "This will create the file"
- What is "this/that/it"?
- Report: ambiguous references
**Context-Dependent Without Context Markers:**
- "Use X when debugging" (but no marker for when debugging)
- "In production, do Y" (but no way to detect production)
- Better: Add explicit conditions to check
- Report: context-dependent instructions missing conditions
**Negative Instructions Without Alternatives:**
- "Don't use X" (but no guidance on what TO use)
- "Never run Y" (but no alternative workflow provided)
- Better: Always provide positive alternative
- Report: negative-only instructions
**Metrics to Report:**
```
AI Anti-Patterns:
- Nested conditionals: X instances
- Priority overuse: Y CRITICAL markers (recommend ≤3)
- Ambiguous pronouns: Z instances
- Missing context: N context-dependent instructions
- Negative-only: M instructions
```
### 6. Workflow Verification
**Described Workflows vs Actual Practice:**
- CLAUDE.md describes workflow that's not actually used
- Example: Says "run tests with X" but actual CI/scripts use Y
- **REQUIRED**: Compare documented workflows with:
* CI configuration (.github/workflows/, .gitlab-ci.yml)
* Make files, package.json scripts
* Actual script files in bin/, scripts/
- Report: workflow mismatches
**Tool Availability:**
- Mentions tools that aren't available in project
- Example: "Use goimports" but not in go.mod tools
- **REQUIRED**: Check tool installation/availability
- Report: missing tools
**Metrics to Report:**
```
Workflow:
- Documented workflows: X
- Mismatches with CI/scripts: Y
- Mentioned tools: X total, Y not found
```
## Output Format
### Executive Summary
**Overall Quality Score:** X/100
**Top 3 Issues:**
1. [Issue] - [Impact] - [Location]
2. [Issue] - [Impact] - [Location]
3. [Issue] - [Impact] - [Location]
**Token Efficiency:** Current X words → Recommended Y words (Z% reduction)
### Critical Issues (Must Fix)
#### 1. [Issue Name] - [Category]
- **Impact**: How this affects AI and humans
- **Location**: file:line
- **Current**: [Show current problematic content]
- **Fix**: [Show corrected version]
- **Verification**: [How this was verified against codebase]
### Important Issues (Should Fix Soon)
#### 1. [Issue Name] - [Category]
- **Impact**: [Description]
- **Location**: file:line
- **Fix**: [Specific changes]
### Minor Issues (Nice to Have)
#### 1. [Issue Name] - [Category]
- **Impact**: [Description]
- **Fix**: [Steps]
### Quantitative Metrics
```
CLAUDE.md Statistics:
├─ Files Found: X
├─ Total Words: Y
├─ Total Lines: Z
│
├─ Token Efficiency:
│ ├─ Duplication: ~N words (M%)
│ ├─ Verbose sections: P sections
│ └─ Potential savings: ~Q words (R%)
│
├─ Clarity:
│ ├─ Contradictions: X instances
│ ├─ Vague instructions: Y phrases
│ └─ Ambiguous commands: Z
│
├─ Accuracy:
│ ├─ Commands tested: X (Y broken)
│ ├─ File references: X (Y dead)
│ ├─ Environment vars: X (Y wrong)
│ └─ Code examples: X (Y broken)
│
└─ AI Anti-Patterns:
├─ Nested conditionals: X
├─ Ambiguous pronouns: Y
└─ Negative-only: Z
```
### Recommendations by Priority
**CRITICAL (Fix Immediately):**
1. [Issue] - [Why critical] - [Estimated effort]
2. [Issue] - [Why critical] - [Estimated effort]
**Important (This Week):**
3. [Issue] - [Impact] - [Estimated effort]
4. [Issue] - [Impact] - [Estimated effort]
**Minor (When Time Permits):**
5. [Issue] - [Impact] - [Estimated effort]
### Proposed Structure (if reorganization needed)
**Root CLAUDE.md (Context & Navigation - Target: 100-150 lines):**
```markdown
# CLAUDE.md
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.
- 10d ago First seen · 495 lines · 18 tokens per session scan A 3db81d980376
audit-claude-md is a command published in the GitHub repository oalders/kitchen-sink (4 stars, last pushed 10d ago), licensed MIT. It adds 18 tokens to every session and 4,026 once invoked, about $0.0001 per session on Opus 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-08-31.
Other commands, from other repositories
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
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.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
argos
A command for checking whether an implementation matches its design deliverables. Its Korean description compares the work to the design as part of a completion inspection.
security-review
AI-powered security review of the current git diff (or specified paths). Dispatches the security-reviewer agent and prints findings grouped by severity.