ClaudeForge
CLAUDE.md429 starsChanged 11 months agoMITView on GitHub
Parent context: see the root CLAUDE.md for project-wide guidelines and behavioural rules. Chained import: @../CLAUDE.md Operational guidance for installers, smoke tests, and release management. Run after any change to skill/, command/, or agent/. Fresh project init: 1. mkdir test-project && cd test-project && git init && npm init -y 2. Run /enhance-claude-md. 3. Confirm generated CLAUDE.md ≤ 150 lines, contains ## Behavioral Guidelines, has tech detection right. Existing project enhance: 1. Seed CLAUDE.md with one short section. 2. Run /enhance-claude-md;…
- Commits and pushes
In this repository5 other files it gives its agents.
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- command/CLAUDE.mdCLAUDE.md
- skill/CLAUDE.mdCLAUDE.md
- claude-md-enhancerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 74
Run after any change to skill/, command/, or agent/.
- Very specific: line 85
Run /enhance-claude-md; confirm quality score reported, missing sections proposed, ## Behavioral Guidelines appended if absent.
- Distinctive: line 88
Add a new dependency and create a new directory.
- Very specific: line 106
Update CHANGELOG.md under a new version header.
- Distinctive: line 110
Create the GitHub release with a CHANGELOG excerpt.
≈ “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
Parent context: see the root CLAUDE.md for project-wide guidelines and behavioural rules. Chained import:
@../CLAUDE.md
Installation, Testing & Release
Operational guidance for installers, smoke tests, and release management.
Test Installation Scripts
# macOS/Linux
./install.sh
# Choose option 1 (user-level) or 2 (project-level)
# Windows
.\install.ps1
# Same options as above
# Verify after install:
ls -la ~/.claude/skills/claudeforge-skill/
ls -la ~/.claude/skills/karpathy-guidelines/
ls -la ~/.claude/skills/claude-md-drift-audit/
ls -la ~/.claude/skills/claude-md-link-check/
ls -la ~/.claude/skills/claude-md-dependency-rescan/
ls -la ~/.claude/commands/enhance-claude-md.md
ls -la ~/.claude/commands/sync-claude-md.md
ls -la ~/.claude/agents/claude-md-guardian.mdDirectory Layout After Install
~/.claude/ # user-level (project-level mirrors under ./.claude)
├── skills/
│ ├── claudeforge-skill/ # from skill/
│ │ ├── SKILL.md
│ │ ├── analyzer.py
│ │ ├── validator.py
│ │ ├── generator.py
│ │ ├── template_selector.py
│ │ ├── workflow.py
│ │ └── examples/
│ └── karpathy-guidelines/ # from skill/karpathy-guidelines/
│ └── SKILL.md
├── commands/
│ ├── enhance-claude-md.md
│ └── sync-claude-md.md
└── agents/
└── claude-md-guardian.mdSmoke Test (run from repo root)
python3 - <<'PY'
import sys; sys.path.insert(0, 'skill')
from validator import BestPracticesValidator
from template_selector import TemplateSelector
from generator import ContentGenerator
assert BestPracticesValidator.MAX_RECOMMENDED_LINES == 150
for cfg in TemplateSelector.TEAM_SIZE_TEMPLATES.values():
assert cfg['target_lines'] <= 150
ctx = {'type':'fullstack','tech_stack':['typescript','python'],
'team_size':'medium','phase':'production','workflows':['cicd']}
out = ContentGenerator(ctx).generate_root_file()
assert len(out.splitlines()) <= 150
assert '## Behavioral Guidelines' in out
print('smoke ok')
PYRun after any change to skill/, command/, or agent/.
Manual End-to-End Tests
Fresh project init:
mkdir test-project && cd test-project && git init && npm init -y- Run
/enhance-claude-md. - Confirm generated CLAUDE.md ≤ 150 lines, contains
## Behavioral Guidelines, has tech detection right.
Existing project enhance:
- Seed
CLAUDE.mdwith one short section. - Run
/enhance-claude-md; confirm quality score reported, missing sections proposed,## Behavioral Guidelinesappended if absent.
Guardian agent sync:
- Add a new dependency and create a new directory.
- Open a new Claude Code session —
SessionStartfires. - Confirm the agent updates Tech Stack / Project Structure and quality re-validates.
Sync command:
- In a repo with stale CLAUDE.md references, run
/sync-claude-md. - Confirm stale lines flagged, 150-cap enforced via split, root ↔ sub chain repaired, diff left staged for the user.
Common Operations
Update a reference template: edit skill/examples/<name>-CLAUDE.md, then add a matching scenario to skill/sample_input.json.
Update quality scoring: edit skill/analyzer.py → calculate_quality_score(). Re-run the smoke test.
Update installer: edit install.sh / install.ps1 (paths, copy logic, backup logic, hooks). Test both user-level and project-level on a throwaway directory.
Release Process
- Update
CHANGELOG.mdunder a new version header. - Bump the version in
README.md,skill/SKILL.md, and.claude-plugin/plugin.json. git tag -a vX.Y.Z -m "Release vX.Y.Z".git push origin vX.Y.Z.- Create the GitHub release with a CHANGELOG excerpt.
Versioning is semver. See docs/MIGRATION_V2.md for the v1 → v2 upgrade path.
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.

