dotclaude
CLAUDE.md0 starsChanged 8 months agoMITView on GitHub
You are working on dotclaude, a template repository of Claude Code components (commands, skills, agents, rules, hooks) copied into other projects by scripts/install.sh. Never mix the two. When asked to create a new reusable component, it goes under commands/, skills/, agents/, rules/, or hooks/ at the repo root. When asked to improve the authoring workflow, it goes under .claude/commands/. Every file in the template must justify its context cost. Templates in this repo will be copied into projects that don't…
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- explain-codeSkill
The file
We split this CLAUDE.md 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
- Very specific: line 10
Never mix the two. When asked to create a new reusable component, it goes under commands/, skills/, agents/, rules/, or hooks/ at the repo …
- Distinctive: line 14
Every file in the template must justify its context cost.
- Very specific: line 18
Path-scope rules: Prefer paths: over alwaysApply: true.
- Distinctive: line 27
No project-specific names: Don't reference potential projects.
- Distinctive: line 44
Commit messages: imperative, lowercase, no period
- Very specific: line 53
Run scripts/lint-templates.sh.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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
dotclaude — Authoring Context
You are working on dotclaude, a template repository of Claude Code components (commands, skills, agents, rules, hooks) copied into other projects by scripts/install.sh.
Two contexts, one repo
- Repo root = the template. Files here get copied into other projects. They must be generic and portable.
.claude/(this directory) = the workshop. Commands here exist only to help author templates. They are never copied out.
Never mix the two. When asked to create a new reusable component, it goes under commands/, skills/, agents/, rules/, or hooks/ at the repo root. When asked to improve the authoring workflow, it goes under .claude/commands/.
Core principle: token efficiency
Every file in the template must justify its context cost.
- Short, specific descriptions. The
descriptionfield determines whether a skill/command fires. Be specific enough to trigger correctly, but narrow enough to avoid false positives. - Progressive disclosure. Push detail behind file references, not inline.
SKILL.mdunder 1500 characters; reference siblings via@file.md. - Path-scope rules. Prefer
paths:overalwaysApply: true. Always-on rules cost tokens every turn. - No boilerplate. Skip "Introduction", "Overview", "Conclusion" sections. Start with the instruction.
- Concrete over abstract. One worked example beats three paragraphs of theory.
Portability rules
Templates in this repo will be copied into projects that don't exist yet. Therefore:
- No hard-coded absolute paths. No
/home/,/Users/,C:\. - No project-specific names. Don't reference potential projects.
- No language-specific assumptions unless the component is explicitly language-scoped.
- English only for all user-facing text, comments, and documentation.
Authoring workflow
/new-command <n>— scaffold a slash command/new-skill <n>— scaffold a skill directory/new-agent <n>— scaffold a subagent- Write the content
/lint-template <path>— validate one file, orscripts/lint-templates.sh— validate everything
Conventions
- File naming: kebab-case
- Frontmatter: YAML, minimal keys
- Commit messages: imperative, lowercase, no period
- Size budgets (enforced by the linter):
- Commands: body under 1000 characters
- Skills:
SKILL.mdunder 1500 characters - Rules: under 1500 characters
- Agents: under 2000 characters (system prompts can be longer)
Before you commit
Run scripts/lint-templates.sh. A red lint must never land on main.
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.

