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…
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- actSkill
- security-checkSkill
- environment-checkSkill
- run-verificationSkill
- refactorSkill
- debug-session-archivedSkill
- generate-guardsSkill
- check-anthropicSkill
- code-reviewerSkill
- code-reviewSkill
- debug-sessionSkill
- end-sessionSkill
- evolve-checkSkill
- evolveSkill
- fix-bugSkill
- forgetSkill
- frontend-designSkill
- guardSkill
- kit-healthSkill
- learnSkill
- map-codebaseSkill
- modeSkill
- parallel-prototypesSkill
- planSkill
- powershell-safeSkill
- product-riskSkill
- progress-reportSkill
- prototype-hypothesisSkill
- recallSkill
- refactoring-uiSkill
- scan-codebaseSkill
- scan-conventionsSkill
- search-firstSkill
- search-memorySkill
- shadow-codeSkill
- skill-creatorSkill
- smart-resumeSkill
- start-sessionSkill
- strategic-compactSkill
- tourSkill
- ux-heuristicsSkill
- verification-loopSkill
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
- Distinctive: line 8
All memory files, tasks/, and STATUS.md live here.
- Distinctive: line 19
Run manually if hook fails:
- Very specific: line 24
Read [MEM]\STATUS.md — report: "Ready.
- Very specific: line 25
Read [MEM]\tasks\velocity.md Calibration Notes section — apply patterns silently when estimating task length
- Distinctive: line 26
Add one Start Session observation if anything warrants attention (Middle Path rule)
- Very specific: line 27
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 …
- Very specific: line 30
Run /learn — extract lessons and decisions from this session.
- Very specific: line 31
Run /evolve-check — scan skill scores, flag 🔴/🟡 skills
- Very specific: line 32
Run /evolve only when /evolve-check flags 🔴 or 🟡
- Very specific: line 35
Update [MEM]\STATUS.md — increment session number, one-line summary
- Distinctive: line 40
When you're short on time or just want to save and stop:
- Very specific: line 41
Run /learn — extract lessons from this session
- Very specific: line 71
Before showing any plan: if the proposed approach contradicts a settled decision in decisions.md or a regret entry, surface it before the …
- Distinctive: line 77
After reporting last change at Start Session, add one line maximum:
- Distinctive: line 84
If a proposed feature would create a duplicate pattern where 2+ already exist, flag it before the plan:
- Distinctive: line 90
Not challenging every decision
- Distinctive: line 91
Not slowing down approved plans
- Distinctive: line 92
Not second-guessing product choices
- Distinctive: line 93
Not repeating an objection after the user overrides it
≈ “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.
Files
[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" pullThen:
- Read
[MEM]\STATUS.md— report: "Ready. Last change: [summary]. What are we working on?" - Read
[MEM]\tasks\velocity.mdCalibration Notes section — apply patterns silently when estimating task length - Add one Start Session observation if anything warrants attention (Middle Path rule)
- 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
- 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. - Run
/evolve-check— scan skill scores, flag 🔴/🟡 skills - Run
/evolveonly when/evolve-checkflags 🔴 or 🟡 - Update
[MEM]\tasks\skill_usage.md - 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. - Update
[MEM]\STATUS.md— increment session number, one-line summary - Commit source changes
- 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:
- Run
/learn— extract lessons from this session - 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
| Workflow | Skills 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
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
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.

