Since v2.1.283, /doctor prompt-audit has Claude review your instruction files for instructions written for older models. It also flags references to files or commands that don’t exist, and files that contradict each other. You get a report with proposed edits, and nothing in your files changes until you ask Claude to apply them.
This cleanup matters most after a model change, like the move to Opus 5.5. If your instructions live in an AGENTS.md, first check how Claude Code loads it. For the basics, read what a CLAUDE.md file is.
How do I run /doctor prompt-audit?
Type the command in a session. /checkup is an alias for /doctor, and you can pass a path as an argument.
/doctor prompt-audit
/checkup prompt-audit
/doctor prompt-audit .claude/skills/deploy
With no argument, the audit covers your CLAUDE.md, CLAUDE.local.md and AGENTS.md files. It also goes through the rules, skills, commands, subagents and output styles under .claude/ and ~/.claude/. With a path, it sticks to that file or directory, which is enough to check a skill you just wrote.
What does the audit look for?
Stale paths, stale commands and contradicting instruction files lead the report. Thinking keywords that Claude Code documents, such as ultrathink, are kept.
To give you an idea of what goes, Anthropic describes a /claude-api prompt-audit run that removed a mandatory six-step procedure, a scratchpad rule, a verify-twice rule and contradicting instructions from a benchmark prompt. Those rituals made the model write more and repeat tool calls.
Which instructions should I remove for Opus 5.5?
Anthropic’s Opus 5.5 guide says to remove “think carefully”, “think step by step” and similar lines from your prompts and your saved instructions. Opus 5.5 always thinks before it replies, and it decides how much. According to Anthropic, removing a “think carefully” line in a chat product made replies start sooner, with no clear drop in quality.
Claude Code doesn’t treat “think” or “think hard” as keywords and passes them through as ordinary prompt text. Only ultrathink adds an instruction for deeper reasoning, and only for one turn. On Anthropic’s API, it also runs that turn at xhigh effort, since v2.1.311 in the terminal and v2.1.316 in VS Code and Desktop. To change how much Claude thinks for the whole session, change the effort level instead.
The same guide suggests a short rule in your CLAUDE.md that tells Claude when to stop and ask you and when to keep going, with a required stop before anything destructive.
What happens after the report?
Claude lists its findings with the edits it proposes. Your files stay untouched until you ask it to apply some or all of the changes. Read each proposal first, especially in files your team shares, because an instruction that looks dated can still guard against a real trap in the project.
Commit your instruction files before applying anything, then review the result with git diff. Start a new session afterwards and run /context to check that your files still show up under Memory files.
How much can the audit save?
Anthropic published one number, from a single benchmark. During a migration from Opus 4.8 to Opus 5.5, on an internal customer support benchmark of 44 tickets whose prompt had several of these patterns, moving to Opus 5.5 at low effort cut the cost by about 18%. The audit cut it by a further 9%, ending about 25% below the starting point. Anthropic says to treat it as an example. The other levers are in what a task costs in Claude Code.
Measure on your own work. Note what a real task costs with /usage, apply the audit, then run a comparable task and compare. Your CLAUDE.md loads at the start of every session and takes context on every turn, which is why the docs recommend staying under 200 lines per file. A file over the recommended length triggers a warning at startup and in /status.
How is it different from /doctor and /claude-api prompt-audit?
| Command | What it checks |
|---|
/doctor | Your setup, including installation, extensions, permissions and usage, local CLAUDE.md files that duplicate checked-in ones, and checked-in content Claude can derive from the code |
/doctor prompt-audit | The content of your Claude Code instruction files (v2.1.283 or later) |
/claude-api prompt-audit | Instructions written for older models in your prompts, skills and tool descriptions, with fixes proposed as a diff (v2.1.221 or later) |
/doctor prompt-audit runs through the bundled /claude-api skill. If you turned that skill off in skillOverrides, or disableBundledSkills is on, the audit isn’t available. Anthropic’s number above came from /claude-api prompt-audit.
When should I run the audit again?
Run it after every change of main model, since it targets instructions written for earlier models. It also helps after you rename directories or scripts, to catch paths and commands that lead nowhere.
For a new skill or subagent, pass its path as the argument instead of auditing your whole setup.
Section 9.4 of module 9, Advanced prompt crafting shows how to structure a CLAUDE.md that Claude actually follows. To check what your session really applies afterwards, section 3.10 of module 3, Advanced configuration covers /status.