agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/build/SKILL.md

build

Skill2 starsChanged 6 months agoMITView on GitHub

Invoke the build-coordinator to execute a plan through sequential build phases — scaffold → happy-path → edge-case → tests → docs → refactor. Each phase is a specialist agent constrained by `.claude/rules/`. Resumes from the last completed phase if interrupted

76 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, experiment and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 3 projects that use this

  • sunnnybalaSkill

    experiment

    Design and run ML experiments on cloud GPUs. Generates experiment code, runs on Modal, tracks results in JSONL. Use when asked to "run experiments", "train a model", "test this hypothesis", or "benchmark this approach". Proactively invoke when the user has a refined research idea and needs to validate it experimentally.

    Also in 3 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 9 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 5 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 13 projects that use this

  • allieraysSkill

    explain

    Explain what code does line by line so you can understand and learn from it.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Read .claude/state/plan-<branch>.md.

    line 24
  2. Distinctive:

    Verify no blocking questions remain in the plan.

    line 26
  3. Distinctive:

    After the refactor phase:

    line 79
  4. Very specific:

    Use --skip for trivial work:

    line 110

“Common” is measured: kept by at least 6 in 10 of the 71 edited versions of this file we could read. “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
SKILL.md

Build — Multi-Agent Implementation

A specialist-driven implementation of the current plan. The build-coordinator agent runs build phases in sequence, each handled by a focused specialist. Each specialist actively applies the project's .claude/rules/ so the eventual review pass finds little to flag.

Usage

/build                       — execute the current plan from the next un-completed phase
/build --from happy-path     — start (or restart) from a specific phase
/build --skip docs           — skip a phase (useful for non-doc-touching work)
/build --redo edge-case      — redo a previously-completed phase
/build --reset               — discard build-state and start fresh

Process

Phase 1: Verify Plan Exists

Read .claude/state/plan-<branch>.md. If absent, tell the user to run /plan first.

Verify no blocking questions remain in the plan. If they do, refuse to start.

Phase 2: Spawn the Build Coordinator

Spawn build-coordinator as a sub-agent:

Invoke build-coordinator. Read .claude/state/plan-<branch>.md and
.claude/state/build-state-<branch>.json (if exists).
Resume from the next un-completed phase.
Run safety gates (type-check, tests) after each phase.
On phase failure, surface and stop; do not advance.

The coordinator handles:

  • Reading the plan + build-state
  • Determining next phase
  • Spawning the right specialist for that phase
  • Running gate checks (type-check, tests) after the phase
  • Persisting phase results to build-state.json
  • Advancing or stopping based on gate result

Phase 3: Phase-by-Phase Execution

The coordinator runs phases sequentially:

#PhaseSpecialistOutputs
1scaffoldscaffold-implementerFile structure, types, signatures, stubs
2happy-pathhappy-path-implementerCore successful flow logic
3edge-caseedge-case-implementerValidation, errors, edge data
4testtest-writer (existing)Tests per the plan's test strategy
5docsdocumentation-writer (existing)Doc updates
6refactorrefactor-pass-implementerApply code-quality rules actively

Each specialist:

  • Reads the plan and the prior phase's build-state
  • Reads relevant .claude/rules/ files actively (not just via passive injection)
  • Writes/edits files
  • Appends to build-state.json
  • Returns a report

Phase 4: Surface After Each Phase

The coordinator surfaces:

  • What the phase did (files touched, key decisions)
  • Gate result (PASS / FAIL on type-check / tests)
  • Next phase + estimated work

The user can pause here and inspect, or continue (/build again).

Phase 5: On Build Complete

After the refactor phase:

  • Final type-check + tests
  • Tell user to run /iterative-review for the review-coordinator pass
  • The review pass should find few or no findings — if it finds many, the rules need tuning or the build agents need improvement

State Files

FileOwnerPurpose
.claude/state/plan-<branch>.md/plan skillInput — read by every phase
.claude/state/build-state-<branch>.jsonBuild coordinatorAppend-only phase log; resumption point

Branch names with / are sanitized to - for filenames.

Specialists and Their Rules

Each build specialist actively reads and writes against specific rules:

SpecialistReads / writes against
scaffold-implementerarchitecture-layering, api-layering, project conventions in CLAUDE.md
happy-path-implementerpurity, complexity, code-smells, layer-specific rules per file type
edge-case-implementererror-handling, auth-security, data-protection, api-routes, api-layering
test-writertests
documentation-writer(no rule binding; follows project doc conventions)
refactor-pass-implementercode-smells, dry, purity, complexity (actively refactors to satisfy them)

Goal: when /iterative-review runs after /build completes, the 4 code-quality reviewers (code-smell-reviewer, dry-reviewer, purity-reviewer, complexity-reviewer) should produce minimal findings on the new code. The rules are followed during writing, not just enforced after.

Skipping Phases

Use --skip for trivial work:

Story typeRecommended skips
Docs-only PR--skip scaffold,happy-path,edge-case,test,refactor
Bug fix in existing function--skip scaffold,docs
Refactor-only PR--skip scaffold,happy-path,edge-case,docs
Test-coverage PR--skip scaffold,happy-path,edge-case,docs,refactor

For very small work where even sequencing is overkill, just use /develop.

Edge Cases

ScenarioBehavior
No plan existsRefuse; tell user to run /plan
Plan has blocking questionsRefuse; surface them
Phase fails type-checkSurface; do not advance; user fixes or re-runs
Phase fails testsSurface; user decides
Build-state corruptedOffer to reset (--reset)
User edited files between phasesSubsequent phases pick up changes (state is on disk, not in-memory)
New plan version arrivedConfirm continue with new plan or stay

Related

  • build-coordinator agent — the agent this skill spawns
  • /plan — must run first to produce the plan this consumes
  • /iterative-review — runs after build to validate; should find little
  • /develop — single-agent path for trivial work
  • /factory — end-to-end orchestration that may chain /plan → /build → /iterative-review → PR
  • docs/finding-schema.md — JSONL output schema for any agent emissions

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.