FormingSkillcodexpublished fresh until

Audit your CLAUDE.md, AGENTS.md and skills for instructions newer models no longer need

Summary As of November 2026, Claude Code has a built-in, read-only audit (/claude-api prompt-audit, or /doctor prompt-audit from v2.1.283) that flags rules written for older models, stale paths and conflicting instruction files, and proposes a diff. Do first: Run /claude-api prompt-audit. Its procedure is Apache-2.0 in anthropics/skills, so Codex and other agents can run it too.

Not for compressing tool output; see agent-context-pruning-vs-built-in-compaction

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · vdbd4588+wwfix.4Anthropic Claude API skill: prompt-audit procedure
How you use itYou ask for it
What it can doinstalls software · writes files
What's inside
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.md in 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 /doctor form needs the bundled /claude-api skill enabled; it is unavailable with disableBundledSkills.

Started from a post by @RLanceMartin, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Audit your CLAUDE.md, AGENTS.md and skills for instructions newer models no longer need
Summary: As of November 2026, Claude Code has a built-in, read-only audit (/claude-api prompt-audit, or /doctor prompt-audit from v2.1.283) that flags rules written for older models, stale paths and conflicting instruction files, and proposes a diff. Do first: Run `/claude-api prompt-audit`. Its procedure is Apache-2.0 in anthropics/skills, so Codex and other agents can run it too.

## Options
- A · Anthropic Claude API skill: prompt-audit procedure · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread audit-agent-instructions-for-newer-models and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread audit-agent-instructions-for-newer-models

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Anthropic Claude API skill: prompt-audit procedure

Anthropic's claude-api skill from anthropics/skills, which contains the prompt-audit procedure (shared/prompt-audit.md): inventory instruction files, flag dated or conflicting text with file:line and confidence, and propose a diff without applying it. Built into Claude Code; install it for Codex or other agents. Not for: Claude Code users who already have it built in, or tuning an LLM feature's prompts with evals; see llm-feature-prompt-change-regression-golden-set-ci.

Format
Skill
Source
github:anthropics/skills#skills/claude-api
Pinned
vdbd4588+wwfix.4 · dbd4588f9e10
Content hash
dbd4588f9e1033ef
Audit
scan passed
Can do
installs software · writes files
Works with
codex
Check
Every installed tool copy has the expected skill entry; exits 0.; Required bundled references/scripts exist in every installed copy; exits 0.; The offline audit procedure and its local input are present; exits 0.
Author
@anthropics
Kudos
0
Are you @anthropics? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package anthropic-claude-api-prompt-audit-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package anthropic-claude-api-prompt-audit-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp