claude-md-init
Skill3 starsChanged 57 days agoMITView on GitHub
Use when a repo has no CLAUDE.md, or the user asks to create/refresh CLAUDE.md or project instructions for Claude Code. Generates a short, verified CLAUDE.md from the repo's real build/test/lint commands and layout, and never invents commands.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- imsovikde/souvik-skillstheir own version, first seen Jun 26, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- imsovikde/souvik-skills★ 1same 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 repository7 other files it gives its agents.
- changelogSkill
- commit-messageSkill
- dependency-auditSkill
- pr-descriptionSkill
- readme-refreshSkill
- secret-auditSkill
- test-gap-finderSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 14
Write CLAUDE.md with these sections, omitting empty ones:
- Distinctive: line 18
Conventions: commit style, branch naming, formatting tool, test placement, error-handling idiom if visible.
- Distinctive: line 24
Every command listed was executed or dry-run in this session.
- Distinctive: line 25
No prose about "best practices".
- Distinctive: line 26
Do not include secrets, internal hostnames, or personal names.
- Very specific: line 27
Keep under 100 lines; longer instructions go in docs/ and are linked.
≈ “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-init
A good CLAUDE.md is short, true, and command-centric. Aim for 40 to 80 lines.
Procedure
- Inventory (read, do not guess):
ls,cat package.json | jq .scripts,Makefiletargets,pyproject.toml/setup.cfg,Cargo.toml,go.mod,docker-compose*.yml,.github/workflows/*.yml(what CI actually runs),README.mdheadings,.editorconfig, lint configs. - Verify each command you intend to list by running its cheapest, read-only form (
npm run/pnpm runto list scripts,make -n test,pytest --collect-only -q | tail -1). Do not run installs or anything that writes to the tree; if a check would modify files, dry-run or skip it and say so. Drop anything that fails. - Detect conventions from git:
git log --format=%s -30(commit style), branch naming, whether PRs are squashed. - Write
CLAUDE.mdwith these sections, omitting empty ones:- Project: one sentence, stack, runtime versions (from
.nvmrc,.python-version,Dockerfile). - Commands: install, dev, test (single test example), lint/format, build, migrate. One line each, copy-pasteable.
- Layout: 5 to 10 lines mapping top-level dirs to responsibilities.
- Conventions: commit style, branch naming, formatting tool, test placement, error-handling idiom if visible.
- Do not: files never to edit by hand (generated, lockfiles, migrations history), commands never to run without asking (deploy, db reset).
- Verification: the exact command(s) that must pass before claiming done.
- Project: one sentence, stack, runtime versions (from
- Show the file, ask for corrections, then write it. If a CLAUDE.md already exists, propose a diff instead of overwriting.
Rules
- Every command listed was executed or dry-run in this session. No exceptions.
- No prose about "best practices"; only facts about this repo.
- Do not include secrets, internal hostnames, or personal names.
- Keep under 100 lines; longer instructions go in
docs/and are linked.
Verify
Maintainers: bash evals/run.sh /tmp/skillkeel-evals claude-md-init from the plugin root runs this case and grades it; records and transcripts sit in evals/claude-md-init/.
evals/claude-md-init/: fixture: Node monorepo with pnpm scripts + GitHub Actions running pnpm test:ci; expected: CLAUDE.md lists pnpm test:ci (not npm test), notes lockfile as do-not-edit, ≤ 100 lines.
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.

