Commencer
CLAUDE.md Ignored? Diagnose & Fix Kit

CLAUDE.md Ignored? Diagnose & Fix Kit

Claude broke a rule you wrote in CLAUDE.md? This kit finds out why, rule by rule. A Claude Code skill checks which instruction files actually load, sorts each failing rule into one of nine causes, and proposes the fix: a rewrite, a move, a permission rule, or one of five tested hooks (shell file writes, force-push and --no-verify, code changes without running your tests, banned phrases, keyword rules). Plus a 10-page guide, a checklist and a worked example. One-time purchase.
#Ingénierie
Note
Davantage d’évaluations nécessaires
Vendus
0
Mode d’utilisation
Télécharger

When Claude Ignores Your CLAUDE.md — Diagnose & Fix Kit

You wrote the rule down. Claude broke it anyway. This kit finds out why, rule by rule, and fixes each
one with the right tool.

The one idea

Claude Code treats CLAUDE.md as context, not as enforced configuration. Anthropic's documentation
says so, and recommends a hook when an action must be blocked regardless of what Claude decides.

So a failing rule is one of two kinds:

  • Written in a way, or a place, that doesn't work. Better wording or a better location fixes it.
  • A rule that must hold every time. No wording guarantees that. It needs a permission rule or a
    hook, which Claude Code enforces.

Rewriting "NEVER force-push" in capitals treats the second kind like the first. This kit tells them
apart.

What's inside

  • claude-md-fix skill for Claude Code. It reads your instruction files (CLAUDE.md,
    CLAUDE.local.md, .claude/rules, AGENTS.md), checks what actually loads, sorts each failing rule
    into one of nine causes, and proposes the fix: a rewrite, a move, a permission rule or a hook.
    It changes nothing until you say yes.
  • Five tested hooks (Python 3, standard library only) and a selftest.py that checks them in
    your project:
    • no_shell_file_writes: blocks changing files with heredocs, >, tee, sed -i or
      python -c, and tells Claude to use Edit/Write
    • git_guard: blocks force-push, --no-verify, push to main/master, reset --hard
    • done_needs_test: if source code changed this turn and your real test command didn't run
      after the change, sends the reply back and names the command
    • phrase_guard: sends a reply back once if it contains phrases you banned
    • keyword_context: adds a rule next to your message when you type a keyword such as @deploy
  • A 10-page guide (PDF): the nine causes, how to fix each, and what live testing showed.
  • A one-page checklist (PDF) and a worked example: a sample CLAUDE.md, the skill's real
    diagnosis of it, and the fixed version, plus excerpts of the hooks firing in real sessions.

The nine causes

Not loaded · Buried · Vague · Conflicting · Wrong moment · Must never happen · Must be verified ·
Stale · Spoken, never written

Example of "not loaded": by default Claude Code reads AGENTS.md only when there is no CLAUDE.md or
CLAUDE.local.md. If you have both, the rules in AGENTS.md never reach Claude.

Tested, not just written

The hooks were run in real Claude Code sessions (2.1.280 on Windows, through the Bash tool, and
through the PowerShell tool for two of them) and checked by 151 unit tests, including commands they
must not block (2>&1, > /dev/null, git push -n, main:feature, text inside quotes). An independent tester then tried to break the kit; what they
found was fixed and retested, and the guide says what it was.

Testing changed the hooks. Told only to "run the tests", Claude ran a command that executed no tests
and then reported that they passed. When the hook named the exact command, Claude ran it and
reported the real count. So done_needs_test now takes your real test command from a config file.

The one-page checklist is also free in the kit's GitHub repository
(github.com/lga-cpu/claude-md-triage), with a read-only triage skill and one of the five hooks.
This kit adds the fixing skill, the other four hooks, the self-test and the guide.

Who it's for

Developers who use Claude Code on a real repository, already have a CLAUDE.md, and keep correcting
the same mistakes.

Not for

  • Cursor, Codex or Copilot only. The wording and location fixes apply there; the hooks and
    permission rules are Claude Code features.
  • Generating a CLAUDE.md for a new project. Use Claude Code's /init, then come back when rules
    start failing.

Limits, stated plainly

  • No file or hook makes a model follow every instruction. The kit removes the causes it can find
    and moves the must-hold rules into enforcement.
  • Hooks are guard rails, not a security boundary.
  • Tested with Claude Code 2.1.280 on Windows 10, November 2026. Claude Code changes often.
  • The hooks need a working Python 3 (python3 on macOS/Linux, python on Windows). Tested on
    Windows; the scripts are plain Python but were not run on macOS or Linux.
  • Independent product. Not made or endorsed by Anthropic.