Claude Code Introduces /doctor prompt-audit to Audit Config Prompts
AI coding
Claude Code added the /doctor prompt-audit command in version 2.1.283 to scan CLAUDE.md, skills, agents, and commands files. It identifies legacy prompts, invalid paths, and conflicting rules using a report-first workflow that does not modify files before user confirmation, while preserving official thinking keywords.
According to media reports, Anthropic's Claude Code introduced the built-in /doctor prompt-audit command (also executable via /checkup prompt-audit) on September 25 with version 2.1.283. The tool specifically inspects user configuration files—including CLAUDE.md, skills, agents, and commands—to detect prompts written for older models that may now cause inefficiencies. Legacy prompt configurations often include all-caps emphasis or repeated instructions, which can increase token consumption or misguide newer models. The audit tool flags outdated phrasing, broken paths, obsolete commands, and conflicting rules across files, while retaining documented thinking keywords such as think, think hard, and ultrathink. Operating on a report-first basis, it presents issues and recommended modifications without altering files until confirmed, and it supports path arguments for scoped directory audits.
Key takeaways
- Claude Code added the /doctor prompt-audit command in version 2.1.283 to inspect configuration files including CLAUDE.md and skills.
- The tool flags outdated phrasing, broken paths, and conflicting rules to avoid token waste, while preserving official thinking keywords.
- It adopts a report-first workflow that generates a problem list and suggestions without modifying files before user confirmation.
- Execution requires the built-in claude-api skill and targets internal configuration files rather than application source code prompts.
Source:INSIDE Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.