ClaudeForge / command
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 Guidelines for the /enhance-claude-md and /sync-claude-md slash commands. Both install as top-level ~/.claude/commands/<name>.md so they register as /enhance-claude-md and /sync-claude-md. There is no enhance-claude-md/ bundle directory anymore — legacy bundles are backed up automatically on upgrade. command/enhance-claude-md.md Phase 3 invokes the skill by name: I can invoke the claude-md-enhancer skill directly to handle the appropriate workflow based on what I discovered above. Claude Code resolves…
In this repository5 other files it gives its agents.
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- skill/CLAUDE.mdCLAUDE.md
- claude-md-enhancerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 22
Always-on requirement: every generated/enhanced CLAUDE.md must include ## Behavioral Guidelines.
≈ “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
Slash Command Development
Guidelines for the /enhance-claude-md and /sync-claude-md slash commands.
Files
command/enhance-claude-md.md— interactive initialise / enhance workflow.command/sync-claude-md.md— walks every CLAUDE.md, prunes stale references, enforces the 150-line cap, repairs the root ↔ sub chain.
Both install as top-level ~/.claude/commands/<name>.md so they register as /enhance-claude-md and /sync-claude-md. There is no enhance-claude-md/ bundle directory anymore — legacy bundles are backed up automatically on upgrade.
Modifying /enhance-claude-md
- Edit
command/enhance-claude-md.md. - Key phases:
- Phase 1 (Discovery) — bash inventory + Explore-subagent delegation for deep codebase walks. Keep the calling session's context lean.
- Phase 2 (Analysis) — branches initialise (no CLAUDE.md) vs. enhance (CLAUDE.md exists).
- Phase 3 (Task) — invokes the
claude-md-enhancerskill orclaude-md-guardianagent.
- Always-on requirement: every generated/enhanced CLAUDE.md must include
## Behavioral Guidelines. The skill inserts it automatically — do not strip it. - Re-install for testing:
./install.sh(project-level) or copy the file manually to~/.claude/commands/enhance-claude-md.md. - Restart Claude Code (commands hot-reload, but restart guarantees a clean state) and test.
Modifying /sync-claude-md
- Edit
command/sync-claude-md.md. - Phases: inventory → per-file audit → enforce 150-line cap (split into sub-files via
generator.generate_context_file()) → re-chain root ↔ subs → cleanup report. - Sync should never commit on its own; leave the diff staged-but-uncommitted for the user.
Skill ↔ Slash Command Integration
command/enhance-claude-md.md Phase 3 invokes the skill by name:
I can invoke the
claude-md-enhancerskill directly to handle the appropriate workflow based on what I discovered above.
Claude Code resolves claude-md-enhancer from the YAML frontmatter name: field in skill/SKILL.md (kept for backwards compatibility — the installed directory is claudeforge-skill/).
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.

