claude-code-config
CLAUDE.md1 starsChanged 9 months agoMITView on GitHub
This file is Claude's project memory. Update it whenever Claude makes a mistake so it doesn't repeat it. (Describe your project here) @docs/spec.md @docs/tech.md @docs/lessons.md Every change follows this loop before it's considered done: Never mark a task complete without proving it works. Ask yourself: "Would a staff engineer approve this?" These files are the project's living knowledge base. Consult them at session start alongside this CLAUDE.md. Keep all docs concise and well-structured. These files consume context window — verbosity…
In this repository8 other files it gives its agents.
- commit-push-prSkill
- grillSkill
- quick-commitSkill
- review-changesSkill
- sync-claude-configSkill
- techdebtSkill
- test-and-fixSkill
- worktreeSkill
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, 15 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Write detailed specs upfront to reduce ambiguity — a good plan means a 1-shot implementation
- Distinctive: line 19
If something goes sideways, STOP and re-plan.
- Distinctive: line 20
Use plan mode for verification steps, not just building
- Distinctive: line 24
Every change follows this loop before it's considered done:
- Distinctive: line 30
Before PR: run full suite, diff behavior against main when relevant
- Distinctive: line 32
Never mark a task complete without proving it works.
- Distinctive: line 36
Use subagents to keep the main context window clean and focused
- Distinctive: line 38
Only one agent should edit a given file at a time
- Very specific: line 57
docs/spec.md: When behavior changes — new features, modified flows, changed business rules. - Very specific: line 58
docs/tech.md: When architecture changes — new dependencies, schema migrations, infrastructure decisions. - Distinctive: line 61
Keep all docs concise and well-structured.
- Distinctive: line 67
Plan First: Write a plan with checkable items before starting.
- Distinctive: line 68
Verify Plan: Check in with the user before starting implementation.
- Very specific: line 71
Update Docs: Update docs/spec.md and docs/tech.md if behavior or architecture changed.
- Very specific: line 72
Capture Lessons: If corrected, update docs/lessons.md immediately.
- Distinctive: line 76
Simplest correct solution: Don't over-engineer. Don't gold-plate.
- Distinctive: line 77
Find root causes: No temporary fixes. No band-aids.
- Distinctive: line 78
Minimal blast radius: Only touch what's necessary.
- Distinctive: line 79
Own your mistakes: When corrected, write a rule to prevent repeating it.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
CLAUDE.md
This file is Claude's project memory. Update it whenever Claude makes a mistake so it doesn't repeat it.
Project Overview
(Describe your project here)
@docs/spec.md @docs/tech.md @docs/lessons.md
How to Work
Planning
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- Write detailed specs upfront to reduce ambiguity — a good plan means a 1-shot implementation
- If something goes sideways, STOP and re-plan. Don't keep pushing.
- Use plan mode for verification steps, not just building
Verification
Every change follows this loop before it's considered done:
- Make changes
- Run typecheck:
npm run typecheck - Run tests:
npm test - Lint:
npm run lint - Before PR: run full suite, diff behavior against main when relevant
Never mark a task complete without proving it works. Ask yourself: "Would a staff engineer approve this?"
Parallel Work
- Use subagents to keep the main context window clean and focused
- One task per subagent — offload research, exploration, and analysis
- Only one agent should edit a given file at a time
- For fully parallel workstreams:
git worktree add .claude/worktrees/<n> origin/main
Bug Fixing
- Clear reproduction? Investigate and fix directly — check logs, errors, failing tests
- Fix failing CI without being told how
- Ambiguous bug? Clarify scope before proceeding
Project Documentation (docs/)
These files are the project's living knowledge base. Consult them at session start alongside this CLAUDE.md.
docs/spec.md— Product specification: feature behaviors, business rules, constraints. Source of truth for what the product does.docs/tech.md— Technical architecture: stack, schema, infrastructure, key technical decisions.docs/lessons.md— Rules derived from past mistakes. Review at session start.
When to update docs
docs/spec.md: When behavior changes — new features, modified flows, changed business rules. Not for refactors or internal-only changes.docs/tech.md: When architecture changes — new dependencies, schema migrations, infrastructure decisions.docs/lessons.md: Immediately after any correction.
Keep all docs concise and well-structured. These files consume context window — verbosity costs you.
Task Management Workflow
For every task:
- Plan First: Write a plan with checkable items before starting.
- Verify Plan: Check in with the user before starting implementation.
- Track Progress: Mark items complete as you go.
- Explain Changes: Provide a high-level summary at each step.
- Update Docs: Update
docs/spec.mdanddocs/tech.mdif behavior or architecture changed. - Capture Lessons: If corrected, update
docs/lessons.mdimmediately.
Principles
- Simplest correct solution. Don't over-engineer. Don't gold-plate.
- Find root causes. No temporary fixes. No band-aids.
- Minimal blast radius. Only touch what's necessary. Don't refactor unrelated code.
- Own your mistakes. When corrected, write a rule to prevent repeating it.
Every mistake is a rule waiting to be written.
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.

