claude-skills / user-claude-md
CLAUDE.md1 starsChanged 3 months agoMITView on GitHub
Write plainly. Short sentences, ordinary words, no invented jargon, and no metaphor doing work that a direct description would do better. This is a register, not a vocabulary limit. Keep the precise technical term when it is the right one — the goal is prose a tired reader gets on the first pass, not prose with the precision removed. If a sentence needs a comma to survive, it probably wants to be two sentences. Follow this loop for any non-trivial…
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adversarial-reviewSkill
- feature-planningSkill
- hyperdxSkill
- langfuseSkill
- mutation-testSkill
- pr-reviewSkill
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
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
- Distinctive: line 3
Write plainly. Short sentences, ordinary words, no invented jargon, and no metaphor doing work that a direct description would do better.
- Distinctive: line 13
Follow this loop for any non-trivial change.
- Distinctive: line 26
Don't paste full diffs — I'll read them myself.
- Distinctive: line 32
Commit, push, amend, rebase, force-anything, touch files outside the planned scope, install dependencies, run migrations, modify config or …
- Very specific: line 69
Where the long-form belongs: commit messages for why a change was made, an underscore-prefixed docs directory (_docs/, sibling to the …
- Distinctive: line 85
Always follow the 50/72 rule:
- Very specific: line 91
Do NOT append the Co-Authored-By: Claude <noreply@anthropic.com> trailer or the 🤖 Generated with Claude Code footer
- Distinctive: line 93
If a commit's changes can't be summarized in ≤50 characters, prefer splitting into multiple commits over a long subject line.
- Distinctive: line 97
Use a type prefix followed by a short kebab-case description.
- Distinctive: line 110
Write the summary as if a human authored it.
- Distinctive: line 122
Before suggesting we tag or fire a release workflow:
≈ “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
Communication style
Write plainly. Short sentences, ordinary words, no invented jargon, and no metaphor doing work that a direct description would do better.
This is a register, not a vocabulary limit. Keep the precise technical term when it is the right one — the goal is prose a tired reader gets on the first pass, not prose with the precision removed. If a sentence needs a comma to survive, it probably wants to be two sentences.
Workflow
Follow this loop for any non-trivial change. Stop and wait at each gate.
- Orient — Before planning, read the files you'll touch and any that call into them. Surface assumptions, unknowns, and anything that looks load-bearing. Ask before planning if something is ambiguous.
- Plan — Align on the approach before writing code. Scale to the task: a sentence for small changes, a numbered breakdown for larger ones. The plan names the files that will change, the approach, anything explicitly out of scope, and any risks or unknowns. If you're guessing about an API, library behavior, or my intent, flag it as a guess — don't bury it as a stated fact. Gate: wait for my ack.
- Implement — Write the code per the plan. Stay within the planned scope. If you discover the plan was wrong, stop and revise it with me rather than improvising. If you notice adjacent issues, list them for later — don't fix them.
- Test — Run the relevant tests (unit, integration, whatever applies). Fix failures before continuing. Don't proceed past red tests without explicit say-so.
Hand off for manual validation — Stop and print a handoff to chat. Start with the heading
## Handoffon its own line, then:- A short plain-English review — 2-4 sentences of narrative prose (not bullets): what you did and why, what you're confident about vs. uncertain, anything surprising worth flagging.
- Files changed — one bullet per file.
- What to validate — bullet list: files to read, commands to run, app flows to try.
- Noticed but didn't fix — bullet list, or omit if nothing.
Don't paste full diffs — I'll read them myself. Gate: wait for my ack.
- Git ops — Once I've validated, stage and commit. Commit messages: imperative mood, no co-author or "generated by" trailers. Do not push.
- Confirm push/release — Ask before pushing. For projects where the next step is a release (tag, publish, deploy), ask which and wait for explicit confirmation. Default is "do nothing further."
- Loop — If I don't confirm, or I come back with changes, return to step 0 with the new context. Treat each pass as a fresh planning session — don't reuse the prior plan's assumptions, file list, or test results.
Never without my explicit ack Commit, push, amend, rebase, force-anything, touch files outside the planned scope, install dependencies, run migrations, modify config or secrets, or "clean up" code I didn't ask about. If you find adjacent issues, list them in the handoff.
Code comments
Comments carry a maintenance cost and rot silently. Write the ones that survive.
Default to none. Reach for a clearer name, a smaller function, or an extracted helper before reaching for a comment. A comment that exists to explain what the code is doing is a signal the code should be simpler. If a block needs a paragraph to follow, that paragraph is a bug report about the block.
Comment the why, never the what or the how. The code already states what it does. Good targets: a non-obvious constraint, a rejected alternative that looks correct, an external system's undocumented behaviour, a deliberate trade-off.
Keep them short. Two or three lines. Past about five, ask whether it belongs somewhere else. A comment longer than the code it describes is a smell.
Interface documentation is not commentary. Docstrings, JSDoc/godoc-style API
docs, file-header purpose and usage blocks, and --help text are the public
description of a thing, and none of the above applies to them. Neither does it
apply to whatever the project's own conventions require — licence headers,
generated-file markers, lint directives.
Do not put these in a comment:
- History. "An earlier version did X", "this was reverted", "previously we". Git holds that. Say what is true now.
- Figures that date. Balances, row counts, dollar amounts, "as of
<date>" measurements. They are wrong within weeks and nobody updates them. Describe the shape, not the reading. An issue reference pinned to a workaround is fine — that is a pointer, not a reading — but not one used as status. - Narrative or self-justification. No explaining your own past mistakes, no arguing with a reviewer, no "do not change this" emphasis. State the constraint plainly and let it stand.
- Anything the README or a doc already says. Point at it instead.
Where the long-form belongs: commit messages for why a change was made, an
underscore-prefixed docs directory (_docs/, sibling to the _reqs/ and
_plans/ the feature-planning skill writes) for investigations and decisions,
the PR description for reviewers, the module README for operators. A file is the
worst place to keep prose, because it is the place nobody rereads when the code
changes.
Sanity check before committing: review the diff, not the file. If the comments this change adds crowd the code they annotate, or any one of them runs past about five lines, the new code wants restructuring rather than annotating. Comments already in the files you touched are out of scope — don't strip or rewrite them as a drive-by; if a file reads as over-commented, say so in the handoff and leave it.
Git commit messages
Always follow the 50/72 rule:
- Subject line ≤50 characters (hard cap 72), imperative mood, capitalized, no trailing period
- Blank line between subject and body
- Body wrapped at 72 characters
- Body explains what and why, not how
- Do NOT append the
Co-Authored-By: Claude <noreply@anthropic.com>trailer or the🤖 Generated with Claude Codefooter
If a commit's changes can't be summarized in ≤50 characters, prefer splitting into multiple commits over a long subject line.
Git branches
Use a type prefix followed by a short kebab-case description. Allowed prefixes:
feature/— new functionalityfix/— bug fixesrefactor/— code restructuring without behavior changechore/— tooling, deps, config, housekeepingdocs/— documentation only, no behaviour changeschema/— database or data model changes
For ticketed work, embed the ticket ID between the prefix and description: feature/PROJ-123-user-export, schema/PROJ-456-add-indexes. Keep the descriptive portion concise (3–5 words) and lowercase.
Pull request summaries
Write the summary as if a human authored it. Do NOT append any Claude Code attribution, including but not limited to:
🤖 Generated with Claude Code(or the:robot_face:emoji-shortcode form)Co-Authored-By: Claudetrailers- Any "generated by", "written with", or similar AI-attribution footer
This applies to the PR description body, the title, and any comments posted as part of opening the PR.
Releases
Releases bake docs/changelog mismatches into release notes — once a tag fires, what shipped is what the world sees. Treat the changelog as authoritative and keep it current as work lands.
Before suggesting we tag or fire a release workflow:
- CHANGELOG must be current — every commit since the previous release that changes user-visible behaviour should be reflected. Don't write the section once at version-bump time and assume it's final; refresh it as the cycle progresses, and again right before tagging.
- Sweep the docs for stale references — for each behaviour change in the upcoming release, grep the docs for the old wording, file paths, and flag descriptions, and reconcile. Common spots:
README,docs/USAGE,docs/CONFIGURATION,docs/ARCHITECTURE, in-code help text. - Confirm the changelog date matches the day we tag — drift is common when the entry was drafted early.
- Read the project's release process before triggering it —
docs/RELEASING.mdor.github/workflows/release.ymlis authoritative. Tell me what the trigger is (tag push, GitHub Release publish, branch merge) before acting. - Hand off for a "what's about to ship" review — show me the diff between the last release and the current main, plus the current changelog entry, and wait for an explicit ack before tagging. The general workflow's confirm-before-pushing gate (rule 6) applies; don't tag on momentum.
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.

