agentleFS
YehudaFrankelYehudaFrankel/clankbrain/.claude/CLAUDE.md

clankbrain

CLAUDE.md16 starsChanged 7 months agoMITView on GitHub

Memory repo: **https://github.com/[YOUR_GITHUB]/Claude-memory** (private) [MEM] = [YOUR_MEMORY_PATH] All memory files, tasks/, and STATUS.md live here. What gets pushed: memory.ps1 push copies the ENTIRE .claude/ folder into the memory repo before committing. Everything in .claude/ must be in GitHub — no exceptions. Pull on every Start Session — no exceptions. Then: 1. Read [MEM]\STATUS.md — report: "Ready. Last change: [summary]. What are we working on?" 2. Read [MEM]\tasks\velocity.md Calibration Notes section — apply patterns silently when estimating task length 3. Add…

The file

Show its rules and text

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

19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All memory files, tasks/, and STATUS.md live here.

    line 8
  2. Distinctive:

    Run manually if hook fails:

    line 19
  3. Very specific:

    Read [MEM]\STATUS.md — report: "Ready.

    line 24
  4. Very specific:

    Read [MEM]\tasks\velocity.md Calibration Notes section — apply patterns silently when estimating task length

    line 25
  5. Distinctive:

    Add one Start Session observation if anything warrants attention (Middle Path rule)

    line 26
  6. Very specific:

    If session number is 5, 10, 20, or 50: suggest running progress report — "You've hit session [N] — want a quick progress report to see how …

    line 27
  7. Very specific:

    Run /learn — extract lessons and decisions from this session.

    line 30
  8. Very specific:

    Run /evolve-check — scan skill scores, flag 🔴/🟡 skills

    line 31
  9. Very specific:

    Run /evolve only when /evolve-check flags 🔴 or 🟡

    line 32
  10. Very specific:

    Update [MEM]\STATUS.md — increment session number, one-line summary

    line 35
  11. Distinctive:

    When you're short on time or just want to save and stop:

    line 40
  12. Very specific:

    Run /learn — extract lessons from this session

    line 41
  13. Very specific:

    Before showing any plan: if the proposed approach contradicts a settled decision in decisions.md or a regret entry, surface it before the …

    line 71
  14. Distinctive:

    After reporting last change at Start Session, add one line maximum:

    line 77
  15. Distinctive:

    If a proposed feature would create a duplicate pattern where 2+ already exist, flag it before the plan:

    line 84
  16. Distinctive:

    Not challenging every decision

    line 90
  17. Distinctive:

    Not slowing down approved plans

    line 91
  18. Distinctive:

    Not second-guessing product choices

    line 92
  19. Distinctive:

    Not repeating an objection after the user overrides it

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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

[Your Project Name] — Claude Code Project Context

Memory & GitHub

Memory repo: https://github.com/[YOUR_GITHUB]/Claude-memory (private)

[MEM] = [YOUR_MEMORY_PATH] All memory files, tasks/, and STATUS.md live here.

What gets pushed: memory.ps1 push copies the ENTIRE .claude/ folder into the memory repo before committing. Everything in .claude/ must be in GitHub — no exceptions.

Pull on every Start Session — no exceptions.


Commands

Start Session

Run manually if hook fails:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "[YOUR_PROJECT_PATH]/memory.ps1" pull

Then:

  1. Read [MEM]\STATUS.md — report: "Ready. Last change: [summary]. What are we working on?"
  2. Read [MEM]\tasks\velocity.md Calibration Notes section — apply patterns silently when estimating task length
  3. Add one Start Session observation if anything warrants attention (Middle Path rule)
  4. If session number is 5, 10, 20, or 50: suggest running progress report — "You've hit session [N] — want a quick progress report to see how the system is compounding?"

End Session

  1. Run /learn — extract lessons and decisions from this session. Good lessons are specific and actionable: "When doing X in this codebase, always Y — otherwise Z." Vague lessons ("be more careful") help nobody. If nothing surprising happened, extract nothing.
  2. Run /evolve-check — scan skill scores, flag 🔴/🟡 skills
  3. Run /evolve only when /evolve-check flags 🔴 or 🟡
  4. Update [MEM]\tasks\skill_usage.md
  5. Plan drift check — for every plan marked "Ready to Code", Glob its key output files. If they exist → update Status to SHIPPED — Session NNN. Takes 30 seconds, prevents stale plans accumulating.
  6. Update [MEM]\STATUS.md — increment session number, one-line summary
  7. Commit source changes
  8. Push memory: powershell.exe -File "memory.ps1" push

Fast Close (2-step end session)

When you're short on time or just want to save and stop:

  1. Run /learn — extract lessons from this session
  2. Push memory: powershell.exe -File "memory.ps1" push

That's it. STATUS.md and skill_usage.md can wait until next session. Use Full End Session when you have time; use Fast Close when you don't. Skipping End Session entirely is the only bad option.

Push Memory

Run: powershell -File "memory.ps1" push

Pull Memory

Run: powershell -File "memory.ps1" pull


What This Project Is

[Describe your project here — stack, purpose, key files]


Tech Stack

  • Backend: [e.g. Java, Node, Python]
  • Frontend: [e.g. React, Vanilla JS]
  • Database: [e.g. PostgreSQL, SQL Server]

Middle Path — Scoped Pushback

Claude operates as executor by default. These three permissions expand that role in specific, bounded ways. No lobbying — one observation, stated once, then proceed.

1. Pre-Plan Challenge

Before showing any plan: if the proposed approach contradicts a settled decision in decisions.md or a regret entry, surface it before the plan:

⚠ This conflicts with [decision/regret]: [reason]. Suggesting [alternative] instead.

Then show the alternative. If the user overrides, proceed without further argument.

2. Start Session Observation

After reporting last change at Start Session, add one line maximum:

👁 Noticed: [one concrete observation about recent changes worth attention]

Examples: "The last 3 sessions touched the same file 3 different ways — worth standardizing." / "This module is now 400 lines — consider extracting." Skip if nothing worth surfacing. Never more than one observation.

3. Architecture Flag

If a proposed feature would create a duplicate pattern where 2+ already exist, flag it before the plan:

🔀 Pattern conflict: [X] already has [N] approaches ([list them]). Pick one or proceed differently?

One question, one line. If the user says proceed, proceed.

What this is NOT

  • Not challenging every decision
  • Not slowing down approved plans
  • Not second-guessing product choices
  • Not repeating an objection after the user overrides it

Skill Map

WorkflowSkills in Order
New Feature/search-first → /plan → (code) → /simplify → /smoke-test → /learn
Bug Fix/debug-session → /fix-bug → /simplify → /smoke-test → /learn
End of Session/learn → /evolve-check → update STATUS.md → /guard → memory.ps1 push

@rules/plan-before-edit.md @rules/comment-changes.md @rules/regret.md @rules/regret-top.md

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.