agentleFS
dan1elwdan1elw/dotclaude/.claude/CLAUDE.md

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…

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
  1. Very specific:

    Never mix the two. When asked to create a new reusable component, it goes under commands/, skills/, agents/, rules/, or hooks/ at the repo …

    line 10
  2. Distinctive:

    Every file in the template must justify its context cost.

    line 14
  3. Very specific:

    Path-scope rules: Prefer paths: over alwaysApply: true.

    line 18
  4. Distinctive:

    No project-specific names: Don't reference potential projects.

    line 27
  5. Distinctive:

    Commit messages: imperative, lowercase, no period

    line 44
  6. Very specific:

    Run scripts/lint-templates.sh.

    line 53

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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.

  1. Short, specific descriptions. The description field determines whether a skill/command fires. Be specific enough to trigger correctly, but narrow enough to avoid false positives.
  2. Progressive disclosure. Push detail behind file references, not inline. SKILL.md under 1500 characters; reference siblings via @file.md.
  3. Path-scope rules. Prefer paths: over alwaysApply: true. Always-on rules cost tokens every turn.
  4. No boilerplate. Skip "Introduction", "Overview", "Conclusion" sections. Start with the instruction.
  5. 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

  1. /new-command <n> — scaffold a slash command
  2. /new-skill <n> — scaffold a skill directory
  3. /new-agent <n> — scaffold a subagent
  4. Write the content
  5. /lint-template <path> — validate one file, or
  6. scripts/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.md under 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.