Your model got smarter. Your saved rules didn’t. Here’s how I audit mine in Claude Code and Codex, and how to put it on a schedule so it only ever suggests.
Most of the rules in your setup were written to fix an older model. Anthropic’s own prompting guide says newer Claude models can overtrigger on old pushy tool rules, and its fix is to swap "CRITICAL: You MUST use this tool when..." for a calm "Use this tool when...". OpenAI’s GPT-5 prompting guide says the same about a "Be THOROUGH" rule that helped older models and turned counterproductive.
This page is the setup for both tools plus the schedule. For the full cleanup routine, use my Claude Code maintenance checklist. If you’re still building your first CLAUDE.md, start with the most important file in Claude Code.
01
Update first
The audit needs Claude Code v2.1.283 or later. In your terminal, type claude --version, and if it’s lower, run claude update. (Update docs, changelog)
02
Run it
Run: /doctor prompt-audit
Type it in your project folder. /checkup prompt-audit does the same thing. Plain /doctor is a different checkup for your install, settings and plugins. (Commands list)
By default it reads your CLAUDE.md, CLAUDE.local.md and AGENTS.md files, plus the rules, skills, commands, subagents and output styles in your project’s .claude folder and your personal ~/.claude folder. It looks for rules written for older models, files or commands that don’t exist anymore, and files that contradict each other. (Audit docs)
To check one skill, add its path, like /doctor prompt-audit .claude/skills/deploy. The notes Claude saves on its own aren’t on that list, so open /memory and skim those yourself.
03
Approve what changes
You get a report with proposed edits, dead paths and clashing files at the top. Nothing changes until you ask, and I approve by number, never with a blanket yes.
If the command says it’s unavailable, the audit runs through the built-in /claude-api skill, so check you haven’t turned that skill off in your settings.
01
Know where Codex reads from
~/.codex/AGENTS.md, or AGENTS.override.md in the same folder if it exists. That one wins. (AGENTS.md docs).agents/skills in your project and ~/.agents/skills for you personally, each skill a folder with a SKILL.md. (Skills docs)02
Paste the audit prompt
Open a Codex chat in your project, in the ChatGPT desktop app or the Codex CLI, and send this.
Reply with the numbers you approve, and keep the chat open for the schedule step.
The Safe Rule
A scheduled audit suggests. It never edits. You read the report and approve changes yourself, because a rule that looks stale might be the one thing holding your setup together.
My cadence is the 1st of every month, plus a manual run the day I switch models. Skip /loop for this one. It only runs while your session is open, and repeating loops end after 7 days. (Loop docs) My /goal, /loop and /schedule cheat sheet and autopilot guide cover the rest.
01
Claude Code desktop task
I use this one because it runs on your computer and sees your personal ~/.claude files. In the Claude desktop app’s Code tab, open a session in your project and send this.
Then click Scheduled in the sidebar (older apps say Routines) and open the task to check the mode reads Plan. Plan mode explores and proposes without editing your files. (Mode docs) To build it by hand instead, click New task, type /doctor prompt-audit as the instructions, turn on Only on this computer under Advanced settings, pick your folder, then use the pencil icon to set Custom to 0 9 1 * *.
It runs while the app is open and your computer is awake, with one catch-up run if you missed it. Open a run from History to read the report and approve by number. (Desktop task docs)
02
Claude Code cloud task
For instructions that live in a GitHub repository, like a team’s shared CLAUDE.md. It runs with your laptop closed, on a fresh copy of the repository, so your personal files aren’t there. Type this in Claude Code.
Manage it at claude.ai/code/routines. If you type a custom schedule there yourself, the hours are in UTC. (Cloud task docs)
03
Codex scheduled task
Back in the chat where you ran the Codex audit, send this.
Runs land under Scheduled in the ChatGPT desktop app sidebar, and the app has to be open with your computer on. Runs use your default sandbox setting, and in read-only mode any file change fails, which is the strongest version of the safe rule. (Scheduled task docs)
@AGENTS.md to your CLAUDE.md and both tools share one file. (How to share one file)Not sure about one? Hide it for a session and see if anything breaks. That’s the deletion test in my maintenance checklist.