
CLAUDE.md is the short notes file Claude reads at the start of every conversation (see the tip "Write your preferences down once in CLAUDE.md"). Over time the notes drift: a folder gets renamed, or a new rule clashes with an old one. Type /doctor prompt-audit in a session. Claude reads your instruction files and reports what's wrong, with the fix it suggests. Nothing changes until you tell it to apply the fixes. To check one file, add its name: /doctor prompt-audit CLAUDE.md.
In our test we planted two problems in an 8-line CLAUDE.md for a bakery site: it said the recipes were in a folder that didn't exist, and one line asked for British English while another asked for American spelling. The audit found both. It proposed the folder fix, and for the clash it asked which rule we meant instead of picking one.
/doctor prompt-audit/doctor prompt-audit CLAUDE.mdWhy it works
Claude follows what your notes say. A wrong folder sends it looking in the wrong place, and two clashing rules make it guess, maybe differently each time.
Watch out
It reads a long built-in guide before it starts, so even a short file uses a fair share of your plan: our check of 8 lines cost about $0.60 at pay-as-you-go prices. Run it once in a while, not every day. Unless you name a file, it also checks your personal instructions, not only this project's.
Needs Claude Code 2.1.283 or later