agentleFS
d-o-hubd-o-hub/github-template-ai-agents/CLAUDE.md

github-template-ai-agents

CLAUDE.md2 starsChanged 9 days agoMITView on GitHub

Sub-agent definitions live in .claude/agents/. Each is a Markdown file with YAML frontmatter (name, description, tools, model). Default agents in this template: - agent-creator - scaffold new sub-agent definitions - goap-agent - goal-oriented action planning for complex workflows - loop-agent - iterative refinement loops - analysis-swarm - parallel multi-perspective code analysis Delegate context-heavy research to sub-agents to keep the parent session focused. Follow the shared retrieval → planning → implementation → verification order; use orchestration only when the task needs…

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
  1. Distinctive:

    Default agents in this template:

    line 12
  2. Very specific:

    Follow the shared retrieval → planning → implementation → verification order.

    line 19
  3. Very specific:

    Use /clear between unrelated tasks

    line 53
  4. Very specific:

    Use Glob/Grep to find code instead of reading whole file trees

    line 54
  5. Distinctive:

    Prefer sub-agents for multi-step research tasks

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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

@AGENTS.md

<!-- Claude Code-specific instructions only. Do not duplicate content from AGENTS.md. -->

Claude Code Features

Sub-Agents

Sub-agent definitions live in .claude/agents/. Each is a Markdown file with YAML frontmatter (name, description, tools, model).

Default agents in this template:

  • agent-creator - scaffold new sub-agent definitions
  • goap-agent - goal-oriented action planning for complex workflows
  • loop-agent - iterative refinement loops
  • analysis-swarm - parallel multi-perspective code analysis

Delegate context-heavy research to sub-agents to keep the parent session focused. Follow the shared retrieval → planning → implementation → verification order; use orchestration only when the task needs it. See agents-docs/SUB-AGENTS.md.

Skills

Skills live canonically in .agents/skills/. The .claude/skills/ folder contains only symlinks. Run ./scripts/setup-skills.sh once after cloning.

Skills use progressive disclosure - SKILL.md is injected only when the agent decides the skill is needed. Do not pre-load all skills at session start. See agents-docs/SKILLS.md.

Custom Commands

Project slash commands live in .claude/commands/. Use them for repeatable workflows.

Verification Hooks

Verification hooks run automatically on agent stop events.

  • Exit 0 = silent success (nothing extra enters context)
  • Exit 2 = errors surfaced to agent, forcing remediation before finishing See agents-docs/HOOKS.md. A successful hook is evidence only for the checks it ran, not proof of agent behavior. Downstream adopters customize hooks for their product. Profile, metrics, and shipping policy come only from AGENTS.md; Claude Code does not add a separate metrics or automatic publishing requirement.

Headless / CI Mode

claude -p "your prompt" --output-format stream-json

Context Management

  • Use /clear between unrelated tasks
  • Use Glob/Grep to find code instead of reading whole file trees
  • Prefer sub-agents for multi-step research tasks
  • See agents-docs/CONTEXT.md

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.

Reviews can't be read right now.

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.