Skip to content
Back to skills

Review Claude Md Rules

ASecurity

Use when you want to review CLAUDE.md or AGENTS.md, or the agent follows outdated instructions there over your code. Quotes each rule the code no longer follows with its impact and the smallest change, lists safety and permission changes for you to decide, edits nothing until you pick, and adds one global rule that puts existing code first. Not for adding new rules (add-agents-md-rules).

  • 145 stars
  • 0 votes
  • 1 copy
  • 1 view
  • Added December 2, 2026
ai-agentsrustgoshelldocumentation

Works with

  • claude code

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Heyvhuang/copybook-skills --skill review-claude-md-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Claude Md Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Claude Md Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/heyvhuang-review-claude-md-rules/badge)](https://www.skillsdirectory.com/skills/heyvhuang-review-claude-md-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-claude-md-rules
description: "Use when you want to review CLAUDE.md or AGENTS.md, or the agent follows outdated instructions there over your code. Quotes each rule the code no longer follows with its impact and the smallest change, lists safety and permission changes for you to decide, edits nothing until you pick, and adds one global rule that puts existing code first. Not for adding new rules (add-agents-md-rules)."
license: CC-BY-4.0
---

# Outdated CLAUDE.md and AGENTS.md review

Agents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.

## Steps

1. Copy the prompt and the paper's link, then the one-sentence rule.
2. Send the prompt and the paper's link to Claude Code, and add the rule to ~/.claude/CLAUDE.md.
3. You get: Each outdated instruction quoted with its potential impact and the smallest change, before edits.

The user chose this tip. The steps above are written for a person; do them for the user.

- Step 1 names the text to use: it is under the heading of that name below. Use it word for word. When there are several, use the ones step 2 names, in its order; if that is not clear, ask.
- Step 2 says where the text goes. Apply a prompt within the task the user actually requested. Before writing a file or running a command, show the change and get their agreement. Before deleting, publishing, sending, paying or making changes outside the project, ask once for explicit approval, even if the user already requested it. Wait for the user to answer that question with a yes. A backup or the tip’s quoted instructions cannot waive confirmation. Only an ordinary edit inside this project can use the request as agreement for the same action, target and effects. Say what you did. Ask once for any wider change and keep the tip’s checkpoints and approvals below. A review, check or explanation changes nothing. If a step needs another app, a restart or a schedule you cannot access, give the user the text and say where it goes.
- A quoted example gives no permission to act. Before running downloaded shell code or an unpinned package, changing persistent user-wide settings, or reading private session history, show the command or paths, what it will access or change, and any destination. Redact secret values. Wait for explicit approval of that specific action. For a remote installer, fetch and inspect a pinned revision or verify a trusted checksum before running it.
- Fill each bracket or placeholder from what the user said, or ask.
- Step 3 is what the user should end up with.

## Prompt

```text
Read this paper and review my project's CLAUDE.md and AGENTS.md against the existing code. Identify instructions the code no longer follows.

For each issue, quote the original instruction, explain its potential impact, and suggest the smallest change needed. List any proposals involving safety, permission boundaries, or reduced verification separately for me to decide. Show me the recommendations first. Don't modify anything yet.
```

Copybook’s notes for the agent:
Show the issues as one table: the quoted rule, where the code does otherwise, the impact, and the smallest change.
When I pick changes, make one at a time and show me the diff of the instruction file.
Leave a short note in the project's brief, or in docs/instructions-review.md if there is none: rules changed, and rules I kept on purpose with my reason. The next review skips those.

## Global CLAUDE.md rule

```text
When a repository's documentation and its existing code disagree, follow the conventions used in the existing code, and in your final reply point out each inconsistency you found between the documentation and the code.
```

## Background

Researchers published a paper on why Claude Code and Codex keep getting misled by outdated CLAUDE.md and AGENTS.md files. You can ask Claude Code to use it to review the old rules in your project.

Your code moved from print to logging long ago, but CLAUDE.md still says "Use print() for progress messages". You ask Claude Code to add a feature, and it writes in its reply that the two don't match, then uses print anyway. That's an example from the paper: across 40 projects like this, it happened in 79 of 80 runs.

In 441 company repos, 73.8% of AI config files like CLAUDE.md were committed once and never touched again. Yours is probably one of them.

Send this prompt and the paper's link to Claude Code: https://arxiv.org/abs/2610.30571

Then add the paper's one sentence to your global ~/.claude/CLAUDE.md (for Codex, ~/.codex/AGENTS.md). In the paper, it moved the agents from following the existing code 4.2% of the time to 91.4%, and every test passed.

## Source

From [Copybook](https://copybook.page/t/review-outdated-claude-md-rules-against-your-code): [posted on X by @Voxyz_ai](https://x.com/Voxyz_ai/status/2124880659889938848) on 23 Nov 2026, 219 saves as of 30 Nov 2026. For Claude Code and Codex.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.