agentleFS
nicodiansknicodiansk/turbocharge/skills/build/SKILL.md

build

Skill2 starsChanged 12 months agoMITView on GitHub

Use when you have an implementation plan ready to execute. Dispatches builder agents (Sonnet) per task with self-review. Opt-in review (single Sonnet task-reviewer, two verdicts) for high-risk tasks. Supports single-track and multi-track parallel execution.

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

  • AnasX7Skill

    improve

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.

    Also in 4 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

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 10

    Distinctive

    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:

    Read the plan file at $ARGUMENTS

    line 21
  2. Distinctive:

    If concerns: raise them before starting

    line 23
  3. Very specific:

    Check if --reviewed is in $ARGUMENTS — if so, enable review chain for all tasks

    line 25
  4. Distinctive:

    Default to Standard — covers 80% of tasks

    line 48
  5. Distinctive:

    Use Reviewed for: unfamiliar codebase, security-sensitive code, complex integrations

    line 49
  6. Distinctive:

    Use Multi-track for independent tracks touching different files

    line 50
  7. Very specific:

    When in doubt, start Standard — user can always run /turbocharge:review after

    line 51
  8. Distinctive:

    Ask the user: if the choice isn't obvious.

    line 53
  9. Distinctive:

    Do NOT send the builder's narrative report — the reviewer reads the diff, not claims

    line 103
  10. Distinctive:

    Spec ✅, Quality has only 🟡 Important / 🟢 Minor: Do NOT loop. Carry these concerns into the next batch checkpoint (Step 4d) so the user …

    line 112
  11. Very specific:

    If the builder blocks on unclear context, dispatch the researcher with @ATLAS.md @CLAUDE.md prefixed.

    line 115
  12. Distinctive:

    After ALL tasks done:

    line 157
  13. Distinctive:

    If you catch yourself thinking any of these, STOP:

    line 180

“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

Execute an implementation plan with builder agents and automated review chains.

Announce: "Using build to execute this plan."

The Iron Law

NO TASK MARKED COMPLETE WITHOUT BUILDER SELF-REVIEW AND PASSING TESTS

Step 1: Load and Review Plan

  1. Read the plan file at $ARGUMENTS
  2. Review critically — identify concerns or questions
  3. If concerns: raise them before starting
  4. Count tasks, identify dependencies, determine execution mode
  5. Check if --reviewed is in $ARGUMENTS — if so, enable review chain for all tasks
  6. Parse --checkpoint=N from $ARGUMENTS (default N=3). --checkpoint=0 or --no-checkpoint disables the human-wait between batches (use only for small/low-risk plans).

Step 2: Choose Execution Mode

Standard (default): Builder implements each task with self-review. No separate reviewer agents.

  • Spawn builder (Sonnet) per task
  • Builder self-reviews using its built-in checklist
  • Batches of N tasks (default 3, set via --checkpoint=N) with a human checkpoint; --checkpoint=0 runs straight through with no wait

Reviewed (--reviewed flag, or user says "with reviews"): For high-risk, security-sensitive, or unfamiliar codebases.

  • Same as Standard, plus: one task-reviewer (Sonnet) after each task — reads the diff once and emits two verdicts (Spec + Quality)
  • Leaner dispatch: pass plan file path + task line range + git diff only — no narrative summaries
  • Max 2 review cycles per task — escalate to user if unresolved

Multi-track: Independent tasks that can be parallelized (e.g., FE + BE).

  • Spawn Agent Team with specialized builders
  • Each builder owns a set of non-overlapping files
  • Builders communicate via shared task list
  • Per-task review (--reviewed) is NOT supported in multi-track — parallel, interleaved commits make per-task BEFORE_SHA..HEAD diff ranges unreliable. Run /turbocharge:review after the team completes for a holistic diff review instead.
  • Requires user confirmation before spawning team

How to decide:

  • Default to Standard — covers 80% of tasks
  • Use Reviewed for: unfamiliar codebase, security-sensitive code, complex integrations
  • Use Multi-track for independent tracks touching different files
  • When in doubt, start Standard — user can always run /turbocharge:review after

Ask the user if the choice isn't obvious.

Step 3: Execute — Standard

For each task in the batch (default 3 tasks):

3a. Dispatch Builder

Spawn builder subagent (Sonnet) with:

  • Task number and description (objective, file paths, line ranges, verification commands)
  • Plan file path and task line range — do NOT paste plan content, builder reads the file directly
  • Context: where this task fits in the sequence, what previous tasks completed
  • Working directory
  • Prefix: @CLAUDE.md (conventions). Do NOT inject @ATLAS.md — builders read the spec and diff, not the navigation index.

In Reviewed mode, record the pre-task SHA before dispatching: BEFORE_SHA=$(git rev-parse HEAD). The task-reviewer diffs $BEFORE_SHA..HEAD to capture exactly this builder's output, regardless of how many commits (zero, one, or many) the builder makes.

Builder isolation (design decision): the builder agent intentionally does NOT set isolation: worktree. A worktree branches from the default branch, not the parent session's HEAD, and is auto-cleaned only when no changes are made — which would break this skill's BEFORE_SHA=$(git rev-parse HEAD) → $BEFORE_SHA..HEAD diff model (the reviewer would diff the wrong base) and would leave a populated, non-auto-cleaned worktree for ship/cleanup to manage. Worktree/branch management therefore stays in skill prose and the parent session, not in the agent frontmatter.

3b. Mark Task Complete

3c. After Batch (every N tasks, default 3)

Report to human:

  • What was implemented in this batch
  • Current progress (N of M tasks complete)
  • Visibility: agents spawned: A · models: sonnet×A · tasks: X/Y

Say: "Batch complete. Ready for feedback."

Wait for human approval before next batch.

If --checkpoint=0, skip the wait and continue to the next batch automatically.

Step 4: Execute — Reviewed

For each task in the batch, run this exact ordered sequence. The task is not marked complete until its review passes — never mark complete straight after the builder (that is the Step 3 flow, not this one):

  1. Dispatch builder — same as Step 3a. In Reviewed mode, record BEFORE_SHA=$(git rev-parse HEAD) before dispatching (Step 3a) so the reviewer diffs exactly this builder's output.
  2. Dispatch task-reviewer (Step 4a) and apply the disposition — loop the builder if Spec ❌ or any 🔴 Critical (max 2 cycles).
  3. Dispatch researcher on demand (Step 4b) only if the builder blocked on unclear context.
  4. Mark the task complete (Step 4c) — only after Spec ✅ with no unresolved 🔴 Critical.
  5. After every N tasks, run the batch checkpoint (Step 4d).

The sub-steps below detail each stage:

4a. Dispatch Task Reviewer

Spawn one task-reviewer subagent (Sonnet) with:

  • Plan file path + task line range (reviewer reads the plan directly — do NOT paste requirements)
  • Git diff range for the task: git diff $BEFORE_SHA..HEAD (the SHA captured in Step 3a). Do NOT use HEAD~1..HEAD — it reviews the wrong code when a task makes zero or multiple commits.
  • Working directory to read actual code
  • Do NOT send the builder's narrative report — the reviewer reads the diff, not claims

The reviewer returns two verdicts:

  • Spec: ✅ / ❌
  • Quality: Approved / Issues found / N/A — N/A when Spec is ❌ (spec must pass before quality is assessed, so quality isn't wasted on code that will be rewritten)

Disposition:

  • Spec ❌: Resume the builder with the spec gaps only (ignore quality — it's N/A), then re-review. Max 2 cycles — escalate to user if still failing.
  • Spec ✅, Quality has any 🔴 Critical: Resume the builder with the Critical findings only, then re-review. Max 2 cycles. Any 🟡 Important / 🟢 Minor findings that co-occur in the same review are NOT fixed in this loop — carry them forward to the next batch checkpoint (Step 4d) exactly as the bullet below does. Do not let them vanish just because a Critical was present.
  • Spec ✅, Quality has only 🟡 Important / 🟢 Minor: Do NOT loop. Carry these concerns into the next batch checkpoint (Step 4d) so the user decides whether to address them.

4b. Dispatch Researcher (on demand)

If the builder blocks on unclear context, dispatch the researcher with @ATLAS.md @CLAUDE.md prefixed. Subagents do not inherit parent history — @ATLAS.md must ride on the dispatch prompt itself.

4c. Mark Task Complete

4d. After Batch (every N tasks, default 3)

Report to human:

  • What was implemented in this batch
  • Review results (issues found and fixed)
  • Accumulated 🟡 Important / 🟢 Minor quality concerns not yet addressed (from Step 4a)
  • Current progress (N of M tasks complete)
  • Visibility: agents spawned: A · models: sonnet×A · tasks: X/Y

Say: "Batch complete. Ready for feedback."

Wait for human approval before next batch.

If --checkpoint=0, skip the wait and continue to the next batch automatically.

Step 5: Execute — Multi-Track (Agent Teams)

Experimental & gated. Agent Teams require CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 (env var or settings.json). If unset, fall back to Standard mode and tell the user. There are no team-management tool calls — teammates spawn from natural-language instructions and clean up automatically at session end.

5a. Confirm with User

This plan has independent tracks that could run in parallel:
- Track A: [description] (Tasks X, Y, Z)
- Track B: [description] (Tasks A, B, C)

Spawn an Agent Team (experimental, needs CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1)?
This uses more tokens but is faster.

5b. Spawn Teammates

  • In natural language, ask each teammate to act as the builder subagent type (reference it by name). Teammates honor the builder definition's model (Sonnet) and tools, but do NOT apply its preloaded skills/mcpServers — give each teammate the context it needs in the spawn instruction.
  • Assign each teammate a non-overlapping set of files (file ownership) so parallel, interleaved commits never touch the same path.
  • Teammates self-review per task; per-task reviewers are NOT dispatched in multi-track (see Step 2) — holistic review comes after via /turbocharge:review.
  • Per-task --reviewed remains unsupported in multi-track: interleaved commits make BEFORE_SHA..HEAD ranges unreliable.
  • Cleanup is automatic at session end — there is nothing to tear down manually.

Step 6: Complete

After ALL tasks done:

  • Report completion summary
  • Print final visibility line: agents spawned: A · models: sonnet×A · tasks: Y/Y
  • Offer: "Ready for holistic code review?" → chains to /turbocharge:review

Visibility note: the orchestrator cannot read exact token counts. This line is the spawn/model/task summary (the measurable proxy), NOT a fabricated token number.

Red Flags — STOP

Process Violations

FlagProblem
Skipping plan reviewMissed concerns
Skipping builder self-reviewBuilder has a checklist — use it
Skipping Reviewed mode for security-sensitive codeSave tokens, lose safety
Using Reviewed mode for trivial tasksWastes tokens on mechanical checks
Guessing through blockersShould stop and ask
No batch reportingHuman can't review progress
Auto-continuing after batchMust wait for human approval
Review loop >2 cyclesEscalate to user, don't keep retrying

Rationalizations That Mean You're Wrong

If you catch yourself thinking any of these, STOP:

ThoughtWhy It's Wrong
"Self-review is enough for this security-sensitive task"Security tasks need Reviewed mode — self-review misses attack vectors
"I'll skip the batch checkpoint, we're on a roll"Human oversight exists for a reason — never skip
"Running the full test suite is overkill for this change"The 1-line change that broke 47 tests says otherwise
"I'll verify it works manually"Manual verification is not verification
"Let me just finish this batch and review later"Later never comes. Checkpoint every batch.
"I can skip domain verification, the task description is clear"Clear descriptions still use wrong entity names half the time

Workflow Position

plan → build → review → ship

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.