config-audit/commands/help.md
Kjell Tore Guttormsen 8376dab83f fix(tokens): refresh stale "Opus 4.7" framing to model-neutral + Opus 4.8 anchor
Fase 4 token-opt, Item 1 of gap-review NEXT STEP #2. The prompt-cache pattern corpus + TOK scanner were frozen at an "Opus 4.7" framing after CC shipped Opus 4.8 (default, 2.1.154) and Fable 5 (2.1.170). Model-era facts re-verified against the official changelog cache before editing.

The patterns are properties of prompt-caching, not of any model, so mechanic text is now model-neutral with a single "current default: Opus 4.8" anchor — preventing a re-freeze at the next model bump.

- rename knowledge/opus-4.7-patterns.md -> prompt-cache-patterns.md (git mv, history preserved); 6 reference sites updated
- TOK scanner: line-318 finding text (human-facing) made model-neutral; header + cache-prefix-scanner + CLI comments refreshed
- configuration-best-practices.md body + footnote 4.7 -> 4.8
- human-facing docs: commands/{tokens,help,manifest}.md, project CLAUDE.md, README, docs/scanner-internals.md
- gap-matrix row marked DONE; future Items 2/3 retargeted to new filename

Failing-test-first (Iron Law): +2 knowledge staleness guards (era-anchor + no-refreeze) +1 scanner assertion (no stale model anchor in finding text). Suite 853 -> 856 green; zero snapshot drift; self-audit A(97) PASS. CHANGELOG / v5 plan / ratified gap-plan keep historical opus-4.7-patterns refs (correct record of past state).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ter3E2JSi1Khgmuf2kady8
2026-06-18 15:27:36 +02:00

4.6 KiB

name description allowed-tools model
config-audit:help Show all available config-audit commands Read, Bash sonnet

Config-Audit: Help

Getting Started

Just run /config-audit — it auto-detects your project scope and runs a full audit. No setup needed.

The default output is written in plain language: each finding is grouped by impact ("Configuration mistake," "Conflict," "Wasted tokens," "Missed opportunity," "Dead config") and led with an urgency phrase ("Fix this now," "Fix soon," "Fix when convenient," "Optional cleanup," "FYI").

If you prefer the v5.0.0 verbatim output (technical IDs, raw severity, no plain-language wording), pass --raw to any command — it's threaded through every CLI in the toolchain. Use the Read tool on the saved JSON to consume it programmatically.

# Examples — every command accepts --raw for byte-stable v5.0.0 output
RAW_FLAG=""
if echo "$ARGUMENTS" | grep -q -- "--raw"; then RAW_FLAG="--raw"; fi
# /config-audit posture --raw
# /config-audit tokens --raw
# /config-audit fix --raw

All Commands

Core

Command Description
/config-audit Full audit with auto-scope detection
/config-audit posture Quick scorecard with A-F grades per area (10 areas)
/config-audit tokens prompt-cache token hotspots; optional --accurate-tokens API calibration
/config-audit manifest Ranked table of every system-prompt token source
/config-audit feature-gap Deep analysis of features you're not using
/config-audit fix Auto-fix deterministic issues; a copy of every changed file is saved first so you can roll back with one command
/config-audit rollback Restore configuration from a saved copy

Planning & Implementation

Command Description
/config-audit plan Generate prioritized action plan from audit findings
/config-audit implement Execute action plan; a copy of every changed file is saved first, and a verification pass runs after
/config-audit interview Set preferences to customize the action plan (optional)

Monitoring

Command Description
/config-audit drift Compare current config against a saved baseline
/config-audit plugin-health Audit plugin structure and the metadata block at the top of each command/agent file
/config-audit whats-active Show active plugins/skills/MCP/hooks/CLAUDE.md with token estimates

Utility

Command Description
/config-audit status Show current session state and progress
/config-audit cleanup Clean up old session directories

Advanced (workflow phases)

Command Description
/config-audit discover Run only the discovery phase (find config files)
/config-audit analyze Run only the analysis phase (generate report)

Plain-language vocabulary

The toolchain uses these terms when describing findings:

User-facing label What it means
Fix this now Something is broken or risky and should be addressed immediately
Fix soon High-priority issue worth scheduling this week
Fix when convenient Real issue but not urgent
Optional cleanup Tidy-up that improves polish but isn't required
FYI Informational; no action expected
Configuration mistake A configuration file has an error or omission
Conflict Two configuration sources disagree
Wasted tokens Configuration is loading content that costs tokens without payback
Missed opportunity A Claude Code feature you aren't using that could help your project
Dead config Configuration that has no effect (e.g., a permission that's also denied)

Use --raw if you'd rather see the v5.0.0 verbatim output (technical IDs and raw severity).

Scope Override

By default, /config-audit auto-detects scope from your current directory:

  • Inside a git repo → scans the repo
  • In $HOME → scans global config only
  • Elsewhere → scans current directory

Override with: /config-audit current, /config-audit repo, /config-audit home, /config-audit full

Typical Workflows

First time? Just run /config-audit.

Want to fix things? Run /config-audit then /config-audit fix.

Full optimization:

  1. /config-audit — see what you have
  2. /config-audit plan — create action plan
  3. /config-audit implement — execute with backups

Track changes over time:

  1. /config-audit drift --save — save baseline
  2. (make changes)
  3. /config-audit drift — see what changed