claude-md
Skill3 starsChanged 9 months agoMITView on GitHub
Use after any skill completes work that changes project structure, conventions, commands, environment variables, dependencies, or architecture — proactively updates CLAUDE.md so future sessions inherit current project state
12 other projects use a version of this.
Adopted by
Most recently taken up by
- frankxai/skillstheir own version, first seen Sep 30, 2026
- coroboros/agent-skillstheir own version, first seen Sep 26, 2026
- fullymiddleaged/Clawnesstheir own version, first seen Jul 28, 2026
- wolfgangyu/lab-drawertheir own version, first seen Jul 12, 2026
- d-gangz/dgang-skillstheir own version, first seen Jul 12, 2026
- eugnmueller-87/claude-blueprinttheir own version, first seen Jul 2, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- Alexanderdunlop/skills★ 16same name
- coroboros/agent-skills★ 4same name
- fullymiddleaged/Clawness★ 4same name
- ngmeyer/skills★ 4same name
- sp-daewoon/chronicle★ 4same name
- d-gangz/dgang-skills★ 2same name
- dootask/skills★ 2same name
- TeamSPWK/nova★ 2same name
- eugnmueller-87/claude-blueprint★ 1same name
- frankxai/skills★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- adrSkill
- analyticsSkill
- api-contractSkill
- api-designSkill
- ci-pipelineSkill
- code-qualitySkill
- data-modelSkill
- db-migrateSkill
- debugSkill
- deploySkill
- dep-updateSkill
- disk-cleanupSkill
- docker-buildSkill
- eng-leadSkill
- event-drivenSkill
- fullstack-healthcheckSkill
- go-featureSkill
- go-integration-testSkill
- go-refactorSkill
- go-scaffoldSkill
- incident-responseSkill
- interactive-clarifySkill
- observabilitySkill
- onboardingSkill
- product-specSkill
- py-featureSkill
- py-integration-testSkill
- py-migrateSkill
- py-refactorSkill
- py-scaffoldSkill
- react-featureSkill
- react-refactorSkill
- react-scaffoldSkill
- review-codeSkill
- securitySkill
- system-designSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 48
Always read the existing CLAUDE.md first.
- Very specific: line 66
This is critical: When the agent makes a mistake and the user corrects it, or when debugging reveals a project-specific gotcha, add it to …
- Distinctive: line 77
The goal: No future session should make the same mistake twice.
- Very specific: line 180
When onboarding to a codebase (onboarding skill)
- Distinctive: line 181
When a command fails with "not found" — likely stale CLAUDE.md
- Distinctive: line 187
After updating CLAUDE.md, verify:
- Distinctive: line 198
Called by: Every skill that changes project structure, commands, or conventions
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md Maintenance
Overview
CLAUDE.md is the project's memory. Every Claude session reads it first. If it's stale, every session starts wrong.
Core principle: CLAUDE.md must reflect the project AS IT IS RIGHT NOW — not as it was when first scaffolded. Update it proactively after every meaningful change.
Why this matters: Without a living CLAUDE.md, every new session starts from zero. The agent makes the same mistakes — wrong import paths, deprecated commands, patterns that were already rejected. CLAUDE.md is how the agent stops repeating itself.
When to Update
ALWAYS update CLAUDE.md after:
| Trigger | What to Update |
| New command added (Makefile, script) | ## Commands section |
| New env var required | ## Environment Variables section |
| New directory created | ## Key Directories section |
| New convention established | ## Conventions section |
| Architecture change | ## Architecture section |
| New dependency added | ## Stack or ## Dependencies section |
| New migration pattern | ## Commands (migration commands) |
| New API pattern | ## Conventions (API patterns) |
| Auth/security added | ## Conventions + ## Environment Variables |
| Docker/deploy setup | ## Commands (Docker commands) |
| CI/CD configured | Note in ## Commands or ## CI section |
| New feature with new patterns | ## Conventions if pattern is reusable |
| Test patterns changed | ## Testing or ## Commands section |
| Bug fix revealed a gotcha | ## Gotchas section |
| Agent made a mistake that was corrected | ## Gotchas section |
| User corrected agent behavior | ## Gotchas section |
DO NOT update for:
- Adding a single endpoint (unless it introduces a new pattern)
- Bug fixes that don't change conventions (unless the bug reveals a project-specific gotcha)
- Internal refactoring that doesn't change the public interface
How to Update
Step 1: Read Current CLAUDE.md
Always read the existing CLAUDE.md first. Never overwrite — merge.
# Find the project's CLAUDE.md
# Could be at project root, or in .claude/ directoryStep 2: Identify What Changed
Compare what you just did against what CLAUDE.md currently says:
- New commands? → Add to Commands
- New env vars? → Add to Environment Variables
- New directories? → Add to Key Directories
- New conventions? → Add to Conventions
- Changed architecture? → Update Architecture
Step 2b: Record Mistakes and Corrections
This is critical. When the agent makes a mistake and the user corrects it, or when debugging reveals a project-specific gotcha, add it to the ## Gotchas section immediately.
## Gotchas
- Don't import from `internal/infrastructure/` in domain layer — breaks clean architecture
- `user.Email` is unique per org, not globally — use composite key (org_id, email)
- Redis session keys expire after 24h — don't cache user objects longer than that
- The `make migrate-up` command requires Postgres running — check `docker compose ps` first
- Don't use `json.Marshal` for API responses — use Fiber's `c.JSON()` which sets Content-TypeThe goal: No future session should make the same mistake twice. If an agent was corrected, that correction lives in CLAUDE.md forever.
Step 3: Update Surgically
Add new items — append to the right section, maintain existing order.
Update existing items — if a command changed, update the description.
Remove stale items — if a command was removed or a convention changed, update it.
Never rewrite the whole file — edit only the sections that changed.
Step 4: Keep It Concise
CLAUDE.md is read every session. Every line costs context tokens.
# GOOD — concise, actionable
- `make test-e2e` — end-to-end tests (requires running API)
# BAD — verbose, explanatory
- `make test-e2e` — this command runs the end-to-end test suite which requires
the API server to be running on port 8000 and a Postgres database on 5432.
Make sure to run `make migrate` first and set the DATABASE_URL env var.CLAUDE.md Structure Reference
Maintain these sections (add as needed, don't create empty sections):
# Project Name
## Stack
[Language + framework + database + tools — one line each]
## Commands
[Every command a developer or AI agent needs — grouped by category]
## Architecture
[2-3 lines on architecture pattern + dependency rule]
## Key Directories
[Directory → purpose mapping]
## Conventions
[Patterns that MUST be followed: validation, pagination, error handling, etc.]
## Environment Variables
[Every env var with brief description]
## Testing
[Test patterns, fixtures, how to run different test types]
## API Patterns
[Response envelope, pagination format, auth header format]
## Gotchas
[Project-specific pitfalls, mistakes already made, things that look right but are wrong]
[Example: "Don't use time.Now() in domain — inject a Clock interface"]
[Example: "The users table has a unique constraint on (org_id, email), not just email"]
[Example: "Redis keys use prefix `app:` — always include it"]Integration with Other Skills
This skill is invoked as a final step by other skills. The calling skill does the work, then updates CLAUDE.md with what changed.
Skills that MUST invoke claude-md:
go-scaffold/py-scaffold/react-scaffold— create initial CLAUDE.mdgo-feature/py-feature/react-feature— update if new patterns introduceddb-migrate/py-migrate— update Commands if new migration commandssecurity— update Conventions (auth pattern) + Environment Variables (JWT_SECRET, etc.)observability— update Conventions (logging pattern) + Environment Variablesdeploy/docker-build— update Commands (Docker/deploy commands)ci-pipeline— update Commands (CI commands)api-design/api-contract— update API Patterns / Conventionsevent-driven— update Architecture (async patterns) + Environment Variablesdep-update— update Stack if major dependency changedadr— update Architecture if decision changes architectureonboarding— full CLAUDE.md generation (uses this skill's structure)
Staleness Detection
Periodically audit CLAUDE.md against the actual codebase to catch drift:
# Check if documented commands still exist
# For each command in CLAUDE.md's ## Commands section, verify:
grep -q "target_name" Makefile # Does the make target exist?
grep -q "script_name" package.json # Does the npm/bun script exist?
# Check if documented env vars are still used
# For each var in ## Environment Variables:
grep -rn "ENV_VAR_NAME" --include="*.go" --include="*.py" --include="*.tsx"
# Check if documented directories still exist
# For each path in ## Key Directories:
ls -d path/to/directory 2>/dev/null || echo "STALE: directory no longer exists"When to audit:
- During
fullstack-healthcheckruns - When onboarding to a codebase (
onboardingskill) - When a command fails with "not found" — likely stale CLAUDE.md
When staleness is found: Fix it immediately. A stale CLAUDE.md is worse than no CLAUDE.md because it actively misleads.
Self-Check
After updating CLAUDE.md, verify:
- No duplicate entries
- No stale commands (removed or renamed)
- No missing env vars that new code requires
- All new directories documented
- Conventions section matches actual code patterns
- Documented commands actually work (staleness check)
- File is under 100 lines (trim if needed — CLAUDE.md is loaded every session)
Chains
- Called by: Every skill that changes project structure, commands, or conventions
- Calls: Nothing — this is a leaf skill
- Complements:
onboarding(initial generation vs ongoing maintenance)
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.

