claude-md-writer
Skill378 starsChanged 52 days agoMITView on GitHub
Use to create or clean up the CLAUDE.md (or AGENTS.md) file that tells a coding agent how to work in a repo — commands, conventions, architecture, and the traps. Trigger when onboarding an agent to a codebase, when the agent keeps making the same repo-specific mistake, or when the user asks for project instructions, agent rules, or a context file.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- serejaris/ris-claude-codetheir own version, first seen Oct 9, 2026
- serejaris/personal-corp-ostheir own version, first seen Aug 6, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- serejaris/personal-corp-os★ 243same name
- serejaris/ris-claude-code★ 243same name
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 repository229 other files it gives its agents.
- accessibility-auditorSkill
- agent-armySkill
- agent-eval-harnessSkill
- agent-swarm-deployerSkill
- agent-team-builderSkill
- agent-to-agentSkill
- ai-coding-guardrailsSkill
- ai-readiness-assessmentSkill
- animateSkill
- api-documentation-writerSkill
- api-endpoint-scaffolderSkill
- api-load-testerSkill
- athlete-social-media-managerSkill
- before-you-buildSkill
- bi-measure-builderSkill
- board-deck-generatorSkill
- bookkeeping-closeSkill
- bracket-predictorSkill
- brand-consistency-checkerSkill
- brand-voice-analyzerSkill
- browser-test-loopSkill
- budget-optimizerSkill
- cash-flow-forecasterSkill
- champion-identifierSkill
- churn-autopsySkill
- claude-design-criticSkill
- claude-design-system-architectSkill
- claude-landing-composerSkill
- client-health-dashboardSkill
- client-proposal-generatorSkill
- code-review-proSkill
- cold-email-sequence-generatorSkill
- color-palette-extractorSkill
- commercial-lease-analyzerSkill
- company-announcement-writerSkill
- competitor-content-analyzerSkill
- competitor-intel-agentSkill
- competitor-price-trackerSkill
- compliance-checkerSkill
- contact-hunterSkill
- content-repurposerSkill
- context-budgetSkill
- contract-analyzerSkill
- contract-redlinerSkill
- conversation-archaeologistSkill
- cowork-calendar-defragSkill
- cowork-contract-renewal-radarSkill
- cowork-data-room-builderSkill
- cowork-deal-roomSkill
- cowork-expense-auditSkill
- cowork-folder-organizerSkill
- cowork-hiring-screenerSkill
- cowork-home-inventorySkill
- cowork-inbox-triageSkill
- cowork-invoice-chaserSkill
- cowork-medical-bill-auditorSkill
- cowork-qbr-builderSkill
- cowork-rfp-responseSkill
- cowork-sop-writerSkill
- cowork-tax-prep-organizerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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 13
Write instructions that are true, specific to this repo, and impossible to derive by looking around.
- Very specific: line 43
Read the README, package.json scripts, CI config, and any existing contributor docs.
- Distinctive: line 45
Check git log for what changes most — that is where the conventions matter.
- Distinctive: line 46
Ask the user for the traps.
- Distinctive: line 47
Write it. Then cut it by a third.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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 Writer
A good project instruction file is the difference between an agent that guesses at your conventions and one that matches them on the first try. A bad one is a wall of generic advice that burns context every single turn.
Core Behavior
Write instructions that are true, specific to this repo, and impossible to derive by looking around. Everything else is waste — it costs tokens on every request and teaches nothing.
Target length: under 100 lines. If it is longer, it is documentation, and documentation belongs in docs/ with a pointer from here.
What Goes In
Commands that are not obvious. The actual dev, build, test, lint, and single-test commands for this repo — including the flags people always forget.
npm run dev # port 3000, needs .env.local
npm test -- <file> # single file; the bare `npm test` runs the whole suite (6 min)Architecture in five lines. Where the entry point is, where the data layer lives, what talks to what. Enough that an agent knows which directory to open, not a tour of every folder.
Conventions that a linter will not catch. How errors are handled, how state is managed, which utility to reuse instead of writing a new one, the naming pattern for files in each directory.
Traps. The things that have cost someone an hour: the migration that must run before tests, the generated file that must be rebuilt after editing the source, the service that only works behind the VPN, the directory that looks dead but is imported dynamically.
Hard rules. The non-negotiables, stated as rules: never commit to main, never edit the generated index by hand, never add a dependency without asking, never use the deprecated client.
What Stays Out
- Generic programming advice. "Write clean code", "add tests", "handle errors" — every agent already does this, and saying it adds nothing but tokens.
- Anything the agent can read in seconds: the dependency list, the folder tree, what the framework is.
- Aspirations. Document what the repo does today, not what the refactor will make true. A file that describes a codebase that does not exist actively misleads.
- Long code samples. Point at the exemplary file instead: "follow the pattern in
src/lib/billing.ts".
How to Build It
- Read the README,
package.jsonscripts, CI config, and any existing contributor docs. - Skim the top-level directories and the two or three files that everything imports.
- Check
git logfor what changes most — that is where the conventions matter. - Ask the user for the traps. This is the section they cannot skip and you cannot infer: "What has bitten you or a teammate in this repo?"
- Write it. Then cut it by a third.
Structure
# <Project>
<One sentence: what this is and who uses it.>
## Commands
<the handful that matter, with the gotcha flags>
## Architecture
<five lines, entry point first>
## Conventions
- <repo-specific rule> — see `path/to/exemplar.ts`
## Traps
- <the thing that wastes an hour>
## Rules
- Never <x>.
- Always <y>.Maintenance
The file rots. Two triggers to update it: an agent made a repo-specific mistake that a line here would have prevented — add that line; or a stated instruction turned out to be false — fix it immediately, because one wrong instruction poisons trust in all of them.
Nested files work: a CLAUDE.md inside a package or app directory applies to work in that subtree. Use one when a monorepo's packages genuinely differ, rather than stuffing every package's quirks into the root file.
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.

