Development & Automation

Audit Your Opus 5.5 Prompts With the Claude Code Command /claude-api prompt-audit.

If you use Opus 5.5 in Claude Code, run /claude-api prompt-audit. It checks your CLAUDE.md, skills, and prompts for outdated instructions and returns a report and a diff of fixes.

· Huuush

Audit Your Opus 5.5 Prompts With the Claude Code Command /claude-api prompt-audit

Key takeaways

  1. 1/claude-api prompt-audit runs in Claude Code with no extra install.
  2. 2The audit result is a report and a proposed diff, and it does not edit files directly unless you ask.
  3. 3It checks for repeated verification, excessive emphasis, fixed procedures, outdated examples, conflicting rules, and outdated settings.
Before-and-after of Claude Code prompt-audit on an outdated prompt, with a cost and accuracy chart. For Opus 5, cost per ticket fell from 3.43 cents to 2.93 cents and accuracy rose from 91.7% to 97.0%.
Source: X @RLanceMartin

The tip Anthropic's Lance Martin shared on September 23, 2026 at 10:47 AM (KST) is simple. If you use Opus 5.5 in Claude Code, run /claude-api prompt-audit once now. It scans your CLAUDE.md, AGENTS.md, skills, and prompts for instructions tuned to older models, and returns what to change and why as a report and a diff of proposed edits.

Loading X post.

Unable to load the X post. Please try again.

Source: X @RLanceMartin

How to run it

In the latest Claude Code, just type /claude-api prompt-audit. It is a skill included in the Bundled skills section of Anthropic's official docs, so you do not need to install a separate plugin. If you need an update, run claude update in your terminal.

The same check can also be called with /doctor prompt-audit in Claude Code v2.1.283 or later. /checkup is an alias for /doctor, and you can narrow the scope by adding a folder to check, for example /doctor prompt-audit src/agents.

Lydia Hallie of the Claude Code team noted that the command name can make it sound like it is only for API work, but you can use it on Claude Code config files too.

Loading X post.

Unable to load the X post. Please try again.

Source: X @lydiahallie

What it gives back

You get two things. First, an audit report that points to files and line locations and explains what the pattern is, why it is outdated for the target model, and how confident the judgment is. Second, a concrete diff of fixes you can apply. It does not stop mid-audit to ask for confirmation, and it finishes the report and proposals.

The default behavior stops at proposals. The official guide states the working principle: "Propose - never apply edits without the user's consent." After reading the report, just follow up with "apply it" for the changes you agree with.

6 anti-patterns it flags

Verification rituals. Sentences like "double-check your work" or "verify twice before answering," which make the model repeat the same check with no result-based criterion. Redundant checks pile up, using more tokens and repeating work.

Thoroughness and emphasis boosters. Stacking strong wording like "be as thorough as possible" or "CRITICAL: YOU MUST ALWAYS…" can lengthen responses and add unneeded tool calls. It is better to state the requirements that really matter in plain, specific terms.

Fixed procedures and scratchpad templates. Forcing the same thinking process on every problem, such as "think step by step in a scratchpad," stacks extra instructions on top of the model's default reasoning. State the result you need and the verification criteria directly.

Outdated examples. Long few-shot examples added so an earlier model would not slip up may now be unnecessary. The model can pick up the examples' reasoning style too, answering wordily even to simple requests.

Conflicting rules. Rules that cannot be followed at the same time, such as "always refund within policy" and "do not refund without escalation." Newer models follow instructions more literally, so priorities and exceptions need to be clear.

Outdated settings. Settings tuned to earlier model generations, such as a manual thinking budget, may be rejected by the latest API or behave differently than intended. Recheck them against the current docs for your target model.

The scope of the audit goes beyond prompt sentences. It also looks at general-knowledge explanations in skill files, lines that turned a single mistake into a permanent rule, and paths and versions that go stale quickly. Behavior instructions inside tool descriptions, fake conversation examples, and request settings are also covered. On the other hand, context only the author knows, such as the product, environment, audience, quality bar, and the reasons behind constraints, should stay. It does not delete something just because it is long.

Loading X post.

Unable to load the X post. Please try again.

Source: X @RLanceMartin

Before and after

In an Anthropic internal customer support benchmark that Lance Martin published, moving a prompt written for Opus 4.8 straight to Opus 5 changed cost per ticket from 2.52 cents at 89.4% accuracy to 3.43 cents at 91.7%. After prompt-audit, it was 2.93 cents per ticket at 97.0% accuracy. Compared with Opus 5 before the audit, accuracy rose 5.3 percentage points and cost fell 0.49 cents. This is one case from an internal benchmark, so not every project will see the same numbers.

The team cited cases where redundant verification instructions made the model repeat the same work, and where emphasis boosters triggered dozens of unneeded searches. To look at Opus 5.5 cost and effort settings together, you can also see the Claude Code effort guide.

/claude-api migrate, announced alongside

In the Opus 5.5 launch notes, Lance Martin introduced /claude-api migrate together with prompt-audit. Migrate first confirms the target files or folders and the target model, then moves application code over to the new model. It then audits the prompts and tool descriptions in the same scope using the prompt-audit criteria.

Loading X post.

Unable to load the X post. Please try again.

Source: X @RLanceMartin

The commands described in the official claude-api skill docs are as follows.

CommandWhat it does
prompt-auditAudits prompts, skills, tool descriptions, and related settings, and proposes a report and fixes
migrateMoves Claude API code to the target model and audits prompts in the same scope
upgradeGuides you through a major version upgrade of the Python anthropic SDK
managed-agents-onboardGuidance for adopting Claude Managed Agents
cost-optimizeAnalyzes where you can lower API cost while keeping quality

The skill's name and subcommand list may be updated, so you can see the latest description in the claude-api doc in Anthropic's skills repo.

If you have gathered design references in your project's CLAUDE.md, also check that the new instructions do not duplicate or conflict with each other. 8 design reference sites for Opus 5.5 and Claude Code frontend work shows how to put a reference list into CLAUDE.md.

Sources

Frequently asked questions

Do I need to install /claude-api prompt-audit in Claude Code?
No. It ships as a Bundled skill in Claude Code, so you can run it without installing a separate plugin. Update Claude Code to get the latest skill.
Does prompt-audit edit my CLAUDE.md automatically?
By default it only proposes a report and a diff of fixes. It applies file changes only when you explicitly ask.
Can I audit only a specific folder?
Yes. In Claude Code v2.1.283 or later, you can narrow the scope by adding a path after /doctor prompt-audit. /checkup is an alias for /doctor.
What does it check?
It looks through CLAUDE.md, AGENTS.md, skill files, prompts, tool descriptions, and request settings for outdated instructions and conflicting rules.
Are the cost savings and accuracy gains guaranteed?
No. The figures shown are from an Anthropic internal customer support benchmark. Actual results depend on your project's prompts and tasks.

Related articles