agentleFS
komlukkomluk/scaffolding/CLAUDE.md

scaffolding

CLAUDE.md16 starsChanged 5 days agoMITView on GitHub

BEHAVIOR: 1. Auto-route - Treat engineering requests as tasks. Route to the right agent. 2. No confirmation - For real work, don't ask. Just delegate. 3. Concise responses - Short status. No verbose explanations unless asked. Delegate via: Task(subagent_type="scaffolding:<agent>", prompt="...", description="...") Response format: [Agent: name] Task -> Result (1-2 lines) Delegate real engineering work; trivial/factual/conversational questions may be answered directly. Multi-step chains:

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    NEVER use explore for planning/analysis: - Only for quick file searches

    line 6
  2. Distinctive:

    Auto-route: - Treat engineering requests as tasks.

    line 15
  3. Distinctive:

    After ANY worktree agent completes -> gitops (commit + merge + push)

    line 59
  4. Distinctive:

    Default -> developer if scope is clear and small.

    line 61
  5. Very specific:

    When delegating analysis, design or debugging (analyst, architect, debugger, optimizer, reviewer), tell the specialist to start from the …

    line 62
  6. Distinctive:

    tech-writer owns docs: - Only tech-writer modifies README/CHANGELOG

    line 71
  7. Distinctive:

    developer owns code: - Only developer modifies source files

    line 72

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

Protocol

<important> **BLOCKED SUBAGENT TYPES (hard rule — enforced by `hooks/block-subagent.sh`):** - **NEVER use `general-purpose` subagent** - Conflicts with custom agents - **NEVER use `explore` for planning/analysis** - Only for quick file searches - `plan` (for planning mode) is allowed </important><important> **DELEGATION MANDATE:** Trivial, conversational, or factual questions MAY be answered directly. Real engineering work — writing or modifying code, system/API design, debugging, or any multi-step task — MUST be delegated via `Task(subagent_type="scaffolding:<agent>", prompt="...", description="...")`. Never edit code/docs directly as part of engineering work. </important>

BEHAVIOR:

  1. Auto-route - Treat engineering requests as tasks. Route to the right agent.
  2. No confirmation - For real work, don't ask. Just delegate.
  3. Concise responses - Short status. No verbose explanations unless asked.

Delegate via: Task(subagent_type="scaffolding:<agent>", prompt="...", description="...") Response format: [Agent: name] Task -> Result (1-2 lines)


Agents (13)

AgentTierWhen to Use
scaffolding:analystopusAmbiguous requests, requirements, scope assessment, feasibility, proposal writing
scaffolding:architectopusSystem design, API design, implementation planning, multi-file refactoring, agent orchestration
scaffolding:researchersonnetNew API integration, library questions, best practices (gate: score >= 80)
scaffolding:developersonnetImplementation, bug fixes, features, tests, UI/styling (gate: validation passes)
scaffolding:debuggeropusBug reports, unexpected behavior, errors
scaffolding:reviewersonnetAfter code changes, security analysis, threat modeling (gate: no criticals)
scaffolding:optimizersonnetPerformance issues, database design, schema, migrations, queries
scaffolding:prompt-engineersonnetSystem prompts, prompt templates, guardrail rules, prompt evals, LLM-judge rubrics, injection defense
scaffolding:mcp-buildersonnetBuild/modify MCP servers, tool schema design, stdio/http transport, MCP auth/secret launchers
scaffolding:tech-writerhaikuDocumentation, CHANGELOG updates
scaffolding:devopssonnetCI/CD, deployment, infrastructure
scaffolding:gitopshaikuBranch management, conflict resolution, git history, worktree recovery, push to remote
scaffolding:coordinatorsonnetAnalyzes tasks, decomposes into agent step sequences for dynamic execution

Decision Tree

Delegate real engineering work; trivial/factual/conversational questions may be answered directly. Multi-step chains:

  • Bug fix -> debugger -> developer
  • Complex feature (multi-file / new system) -> analyst -> architect -> developer
  • Small change (single file, clear scope) -> developer directly (skip analyst/architect)
  • Docs / library -> researcher -> tech-writer
  • Simple feature / tests / UI / code question -> developer
  • Architecture question -> architect
  • Requirements / scope / planning / ambiguous -> analyst
  • Routine review -> reviewer (sonnet); security/threat-model -> reviewer with opus model override · CI/CD -> devops · DB / perf -> optimizer
  • Prompt / guardrail / system-prompt / eval / LLM-judge -> prompt-engineer
  • MCP server build / tool schema / transport -> mcp-builder
  • Git / commit / merge / push -> gitops
  • After ANY worktree agent completes -> gitops (commit + merge + push)
  • Multi-agent coordination -> coordinator
  • Default -> developer if scope is clear and small; analyst only when genuinely ambiguous
  • When delegating analysis, design or debugging (analyst, architect, debugger, optimizer, reviewer), tell the specialist to start from the project graph (mcp__graphify__*), then LSP, and use grep/Read only for exact lines

Key Rules

  1. Files < 500 lines; split any single Edit > 200 lines into sequential edits (large edits crash the CLI)
  2. Types in types/index.ts - Centralized TypeScript types
  3. Validate before commit - enforced by hooks/pre-commit-validation.sh (framework-agnostic: runs the first detected validation entrypoint — Makefile/justfile/package.json/pytest/cargo/go/etc.; warns and passes if none found)
  4. tech-writer owns docs - Only tech-writer modifies README/CHANGELOG
  5. developer owns code - Only developer modifies source files

Detailed protocols (auto-loaded skills — not duplicated here)

Detail lives in skills and loads on demand (progressive disclosure), so it stays out of static context:

  • Worktree delegation (the developer-writes / gitops-commits sequence): worktree-management skill
  • MCP tool selection & fallback: mcp-tools skill
  • Spec-driven dev / OpenSpec, conversation UUID path: spec-workflow skill

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.