agentleFS
justinzapantajustinzapanta/claude-reliable-kit/templates/CLAUDE.md

claude-reliable-kit / templates

CLAUDE.md1 starsChanged 6 days agoMITView on GitHub

Copy these lines into your project's CLAUDE.md, or run python install.py --claude-md. They apply in every session, even when Claude does not load a skill. If you installed the kit inside the project, replace ~/.claude/skills with .claude/skills. Output tokens cost more than input tokens. Add these if you want terse answers (install.py --lean-replies).

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you installed the kit inside the project, replace ~/.claude/skills with .claude/skills.

    line 4
  2. Very specific:

    Before editing a file, run python ~/.claude/skills/task-ledger/scripts/memory.py recall --file <path> and respect recorded decisions.

    line 6
  3. Very specific:

    After fixing a non-obvious bug or making a decision someone could undo by accident, record it: python …

    line 7
  4. Very specific:

    Before changing a function or file, run python ~/.claude/skills/lean-navigation/scripts/graph.py brief <name-or-path> --dir .: one call …

    line 9
  5. Very specific:

    When a request has 3 or more requirements, prove them before saying done (3 commands, about 3 seconds): python …

    line 10
  6. Very specific:

    Run long test or build commands through python ~/.claude/skills/lean-navigation/scripts/squeeze.py -- <command>.

    line 13
  7. Distinctive:

    Do not narrate each tool call.

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Project rules for Claude (Claude Reliable Kit)

Copy these lines into your project's CLAUDE.md, or run python install.py --claude-md. They apply in every session, even when Claude does not load a skill. If you installed the kit inside the project, replace ~/.claude/skills with .claude/skills.

  • Before editing a file, run python ~/.claude/skills/task-ledger/scripts/memory.py recall --file <path> and respect recorded decisions; if a request conflicts with one, say so and ask before changing it.
  • After fixing a non-obvious bug or making a decision someone could undo by accident, record it: python ~/.claude/skills/task-ledger/scripts/memory.py add <bug|decision|gotcha> "<text>" --files <paths>.
  • For a pasted browser console error, stack trace, or failing request, run python ~/.claude/skills/lean-navigation/scripts/trace.py --dir . "<error lines>" before searching by hand.
  • Before changing a function or file, run python ~/.claude/skills/lean-navigation/scripts/graph.py brief <name-or-path> --dir .: one call shows callers, tests, recorded decisions, and recent commits.
  • When a request has 3 or more requirements, prove them before saying done (3 commands, about 3 seconds): python ~/.claude/skills/task-ledger/scripts/ledger.py add req "<r1>" "<r2>" ..., then after the work ledger.py fact "suite passes" --run "<test command>" --proves all (or one fact per requirement), then ledger.py prove. Add ledger.py coverage when you changed shared code.
  • Fix where a bad value is produced, not only where it crashes; a ?. guard alone is not a fix.
  • For a bug fix with a test suite, write the failing test and see it fail before changing code.
  • Run long test or build commands through python ~/.claude/skills/lean-navigation/scripts/squeeze.py -- <command>.

Optional: shorter replies

Output tokens cost more than input tokens. Add these if you want terse answers (install.py --lean-replies).

  • Lead with the answer or the change made; skip preamble, restating the request, and closing summaries of what was just shown.
  • Report results as short lists or tables; quote only the decisive line of an error or log.
  • Do not narrate each tool call; one line before a long step is enough.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.