Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.221 Home All releases olderv2.1.220 v2.1.222newer

claude-api skill gains a prompt-audit subcommand

Use it now
Useful4 Signal0
Skills Notable not in their notes

You can run /claude-api prompt-audit to scan prompts and tool descriptions for outdated patterns and get a diff.

/claude-api prompt-audit
What

The bundled Claude API skill can now audit existing prompts, skills, and tool descriptions for dated patterns written for older models, driven by a new shared/prompt-audit.md guide registered in the skill's file map.

Details
  • prompt-audit is added as a second top-level subcommand row alongside migrate, and is a recognized subcommand so /claude-api prompt-audit routes straight to a seven-step procedure covering pressure language, prefill and stop-sequence scaffolds, over-specification, and fossils.
  • It is specified as non-interactive: Step 0 establishes scope and target model from the request and the repository and states assumptions rather than asking.
  • Output is both an audit report (findings with file:line, pattern, why it's obsolete, confidence) and a proposed diff, emitted without pausing for confirmation; edits are applied only if explicitly asked.
  • The skill-assembly function special-cases the subcommand: when no project language is detected it appends the "ask the user which language" instruction only if the subcommand is not prompt-audit. The prompt text carries matching carve-outs, so the "Before You Start" non-Anthropic-provider stop is skipped (markers go into the report's stated assumptions instead) and the Language Detection section says to skip its ask steps because the inventory is language-agnostic.
  • The migration guide and the reference-documentation index both route "audit / clean up prompts, skills, or tool descriptions for outdated patterns" to the new file.
Usage
/claude-api prompt-audit
Evidence

Audit existing prompts, skills, and tool descriptions for dated patterns ("cruft") written for older models., No project language was auto-detected. Ask the user which language they are using, then refer to the matching docs below., Audit / clean up prompts, skills, or tool descriptions for outdated patterns ("cruft"):, shared/prompt-audit.md

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.221 →