claude-md
Skill871 starsChanged 5 months agoMITView on GitHub
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands, drift, and bloat. Enforces the line budget either way.
16 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ngmeyer/skillstheir own version, first seen Nov 1, 2026
- coroboros/agent-skillstheir own version, first seen Oct 29, 2026
- tanuuuuuuu/dotfilestheir own version, first seen Oct 20, 2026
- rcgsheffield/skillstheir own version, first seen Oct 13, 2026
- pravsjv/claude-skillsedited, first seen Oct 11, 2026
- frankxai/skillstheir own version, first seen Sep 30, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- pravsjv/claude-skills★ 097% same
Wrote their own version · 15
- Alexanderdunlop/skills★ 16same name
- fullymiddleaged/Clawness★ 5same name
- coroboros/agent-skills★ 4same name
- ngmeyer/skills★ 4same name
- sp-daewoon/chronicle★ 4same name
- vndee/engineering-skills★ 3same name
- d-gangz/dgang-skills★ 2same name
- frankxai/skills★ 2same name
- TeamSPWK/nova★ 2same name
- eugnmueller-87/claude-blueprint★ 1same name
5 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 repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- catchupSkill
- context-budgetSkill
- debug-fixSkill
- explainSkill
- fix-issueSkill
- onboardSkill
- pr-reviewSkill
- refactorSkill
- setupdotclaudeSkill
- shipSkill
- specSkill
- tddSkill
- test-writerSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
If it contradicts an existing line, propose editing that line, not appending a second truth.
- Distinctive: line 29
Check every line of CLAUDE.md against reality:
- Distinctive: line 32
Paths and names: do referenced directories, files, and tools still exist?
- Distinctive: line 47
NEVER write without user confirmation.
- Very specific: line 50
Don't touch CLAUDE.local.md — that's the user's personal space.
“Common” is measured: kept by at least 6 in 10 of the 13 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 loads every turn for every developer; this skill is how it earns that. Two modes: default captures learnings from the current session; audit checks the whole file against reality.
Capture (default)
Scan THIS conversation for durable, project-level learnings. A learning qualifies only if ALL of these hold:
- It would prevent a repeat mistake. The user corrected you, a command failed in a non-obvious way, or a constraint surprised you.
- It's not derivable from the code. Claude can re-discover file structure and signatures; it can't re-discover "the staging DB is the one named
prod_replica". - It's durable. True next month, not just this task. Session-specific state belongs in
/catchup handoff, not here. - It's not already covered by CLAUDE.md, a rule in
.claude/rules/, or enforced by a hook.
For each qualifying learning (usually 0-3 per session — finding none is a fine outcome):
- Draft it as ONE line, with the why if it isn't obvious:
Use \make test-fast` for iteration — `make test` spins up Docker (3 min).` - Pick its destination: command fixes → Commands section; constraints with a path scope → suggest a path-scoped rule instead; everything else → the matching CLAUDE.md section.
- If it contradicts an existing line, propose editing that line, not appending a second truth.
Present all candidates with AskUserQuestion (multiSelect — let the user pick which to keep), then apply only the selected ones.
Audit (when $ARGUMENTS contains audit)
Check every line of CLAUDE.md against reality:
- Commands: does each documented command still exist (
package.jsonscripts, Makefile targets, etc.) and match its description? Run--help/--dry-runvariants where cheap. - Paths and names: do referenced directories, files, and tools still exist?
- Duplication: lines that repeat
.claude/rules/content, hook-enforced behavior, or standard conventions Claude already knows — propose deletion. - Leftovers: any
> REPLACE:template blocks — propose deletion. - Staleness candidates: claims contradicted by recent code (cross-check anything that smells off against the source).
Report findings as a table (line → problem → proposed fix/deletion), confirm, apply.
Budget check (both modes, always last)
CLAUDE.md non-blank lines at skill start: !grep -cvE '^[[:space:]]*$' CLAUDE.md 2>/dev/null || echo 0
Under 25 non-blank lines = healthy. 25-50 = list the longest sections, propose trims. Over 50 = the additions don't go in until something comes out — propose the trade explicitly ("add line X, delete lines Y-Z"). The number above is the pre-edit baseline; after applying changes, recount with grep -cvE '^[[:space:]]*$' CLAUDE.md 2>/dev/null || echo 0 to confirm the result still fits.
Rules
- NEVER write without user confirmation.
- Adding is guilty until proven innocent: every line must pay for itself every session.
- One line per learning. If it needs a paragraph, it belongs in a rule or in docs, with at most a pointer here.
- Don't touch
CLAUDE.local.md— that's the user's personal space.
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.

