- How you use it
- You ask for it
- What it can do
- installs software · writes files
- What's inside
The option
| Option | ASkill · vdbd4588+wwfix.4Anthropic Claude API skill: prompt-audit procedure |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files |
| What's inside |
What this thread does
Why this comes up
Instruction files grow one rule at a time: "CRITICAL: ALWAYS…", "double-check your work", fixed step-by-step procedures, a rule added after one bad session. Current models follow instructions more literally, so some of these now cost tokens or cause over-cautious behaviour. In September 2026 Lance Martin (Anthropic) pointed people at the audit he added to the claude-api skill, and @Av1dlive shared a long read-only "instruction debt audit" prompt for Codex users. Both posts were widely saved.
Claude Code: the built-in audit
- As of November 2026,
/claude-api prompt-audit(Claude Code v2.1.221 or later) audits prompts, skills and tool descriptions. - As of November 2026,
/doctor prompt-audit(v2.1.283 or later; the changelog also lists/checkup prompt-audit) runs the same audit on your setup:CLAUDE.md,CLAUDE.local.md,AGENTS.md, and the rules, skills, commands, subagents and output styles under.claude/and~/.claude/. Pass a path to audit one file or folder, for example/doctor prompt-audit .claude/skills/deploy.
Per Claude Code's memory docs, you get a report and proposed edits, and nothing changes until you ask Claude to apply them. It looks for pressure language and emphasis boosters, scaffolds the model now does natively, references to files or commands that no longer exist, and instruction files that contradict each other. It also has an explicit keep list (context only you know, exact scripts for fragile operations, prohibitions that still prevent real failures) and says a clean setup should produce an empty diff.
Anthropic's cost write-up reports that on its customer-support benchmark the audit cut about 9% more cost on top of a model migration and gained about 2 points of accuracy. That is one workload, not a general promise.
Codex and other agents
- The procedure lives in
skills/claude-api/shared/prompt-audit.mdin anthropics/skills (Apache-2.0). The package below installs the skill so another agent can follow it. - @Av1dlive's prompt takes a similar read-only approach with extra steps: map every instruction layer and what loads when, inspect skill descriptions, skill files, AGENTS.md, permissions and completion rules, walk five paper scenarios (a typo fix, a migration, a UI change, a failing test, a deploy needing approval), and return exact replacement text without editing. It has no licence, so read it at the link rather than copying it.
- OpenAI's own GPT-6 Astra guide makes the same point for Codex: shorten skill descriptions, drop old workarounds, and ask the model to audit your setup.
Caveats (as of November 2026)
- The audit's idea of "obsolete" is tuned to Claude models. On GPT or open models, treat its findings as hypotheses.
- Removal is a hypothesis: re-run a typical task before and after, one change at a time where stakes are high.
- Don't let it drop safety rules or approval gates; the procedure only flags those, and you should review any hunk that loosens a prohibition.
- The
/doctorform needs the bundled/claude-apiskill enabled; it is unavailable withdisableBundledSkills.
Started from a post by @RLanceMartin, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.