claude-md-init
Skill1 starsChanged 5 months agoMITView on GitHub
Scaffold or update a project's root CLAUDE.md with a concise repo snapshot and hard commit rules -- author identity locked to the real repository owner, no AI co-author or session trailers, and every commit verified (GitHub-merge signing for cloud sessions, local GPG/SSH signing otherwise). Use when a user asks to set up, generate, initialize, or refresh a project's CLAUDE.md, wants commits attributed only to their own GitHub account with no Claude or AI attribution, wants every commit to show GitHub's Verified badge, or asks to apply "the same CLAUDE.md setup" used in another project.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Skillkeel/skillkeel-startertheir own version, first seen Sep 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Skillkeel/skillkeel-starter★ 3same 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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agy-skill-installerSkill
- apex-bug-hunterSkill
- arsSkill
- browser-triageSkill
- delink-githubSkill
- gemini-skill-packagerSkill
- gh-readySkill
- indian-legal-verificationSkill
- local-systematic-verification-ocrSkill
- magento-team-leadSkill
- merge-gateSkill
- motioncraftSkill
- pdf-vector-engineSkill
- presscraftSkill
- score2mdSkill
- skill-shipSkill
- wpcraftSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create or refresh the root CLAUDE.md for the current project so any AI agent working here inherits the same repo snapshot and the same …
- Very specific: line 12
Read references/claude-md-init.md before the first run in a new project, especially for the marker-based merge strategy and the local …
- Distinctive: line 23
Run the bundled script against the target project:
- Distinctive: line 30
If CLAUDE.md does not exist, the script creates it with a short repo snapshot plus the managed block.
- Very specific: line 31
If CLAUDE.md already exists, the script replaces only the content between the <!-- claude-md-init:start --> and <!-- claude-md-init:end --> …
- Very specific: line 41
Commit Identity & Attribution: every commit uses the owner's real name and GitHub-verified email.
≈ “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
Create or refresh the root CLAUDE.md for the current project so any AI agent working here inherits the same repo snapshot and the same non-negotiable commit rules, without re-deriving them from scratch each time and without clobbering content a human already wrote.
Required Reference
Read references/claude-md-init.md before the first run in a new project, especially for the marker-based merge strategy and the local commit-signing setup that the generated CLAUDE.md points to.
Bundled resources:
scripts/init-claude-md.cjs: detects project facts (package manager, git remote, deploy config) and creates or updates the managed block ofCLAUDE.mdbetween markers.scripts/test_init_claude_md.cjs: verifies the script creates, updates idempotently, and preserves human-authored content.assets/templates/claude-md-block.md: the managed block template, for a manual fallback when the script cannot run.
Workflow
- Determine the repository owner's real name and GitHub-verified email. Prefer an existing
git config user.name/user.email, otherwise ask the user directly. Never guess or invent an email -- an unverifiable email breaks GitHub's contribution-graph attribution. Run the bundled script against the target project:
node scripts/init-claude-md.cjs <target-dir> --name "<Owner Name>" --email "<owner@example.com>"Omit
--name/--emailwhen they can be auto-detected fromgit config.- If
CLAUDE.mddoes not exist, the script creates it with a short repo snapshot plus the managed block. - If
CLAUDE.mdalready exists, the script replaces only the content between the<!-- claude-md-init:start -->and<!-- claude-md-init:end -->markers, leaving everything else the human wrote untouched. If the markers are missing, it appends the managed block once instead of guessing where to merge. - Confirm the emitted commit-identity email matches a real GitHub-verified address on the owner's account -- this is what makes commits attributed to the right person on the contribution graph.
- Tell the user plainly: cloud sessions cannot cryptographically sign commits because the container holds no private key, so the Verified badge on cloud work comes from merging the pushed branch through the GitHub UI/API, not from
git commit -S. Local sessions should followreferences/claude-md-init.mdto set up real GPG or SSH commit signing once. - Re-run the script whenever repo facts change (new deploy target, renamed package, new owner email) to refresh the managed block without hand-editing it.
The Managed Block
The block written into CLAUDE.md always contains:
- A short repo snapshot (package/repo name, package manager, deploy target) inferred from the current project, never copied from another repository.
- Commit Identity & Attribution: every commit uses the owner's real name and GitHub-verified email; no
Co-Authored-Byor session/assistant trailers, ever. - Verified Commits: cloud commits land Verified via a GitHub-UI merge; local commits are signed with the owner's own GPG or SSH key.
Everything outside the markers belongs to the project and must be preserved exactly.
Verification
CLAUDE.mdexists and contains exactly one managed block bounded by the start/end markers.- The email in the Commit Identity section is a real address the user confirmed, not a placeholder.
- Running the script twice in a row changes nothing on the second run (idempotent) unless a detected fact changed.
- Content the user wrote outside the markers is byte-for-byte unchanged.
node scripts/test_init_claude_md.cjspasses.
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.

