Skip to main content

/build-plan

Source: ~/.claude/skills/build-plan/SKILL.md


name: build-plan version: 2.0 description: > Execute an approved plan using TaskList with builder/validator teams. Use after /plan-with-team creates an approved plan. Triggers: "execute the plan", "build this", "implement the plan", "run the plan", "/build-plan". argument-hint: "[path to plan file, or leave empty for latest in ~/system/specs/]" level: 3

/build-plan — Execute Approved Plan

Purpose

Executes a pre-approved plan file using parallel builder/validator TaskList agents. Run AFTER /plan-with-team — never execute without an approved plan.

Variables

Variable Type Description Default
plan_path path Path to plan file latest in ~/system/specs/
concurrency number Parallel builders 3
yolo flag Skip browser testing false

Workflow

Step 1: Load Plan

  • if $ARGUMENTS provided → use as plan_path
  • else → find latest plan: ls -t ~/system/specs/*.md | head -1
  • Read plan file, verify it has: [ ] task checkboxes + acceptance criteria

Step 2: Validate Prerequisites

  • Check: does plan have approval marker? (## APPROVED section or status: approved)
  • if not approved → STOP, tell user to run /plan-with-team first
  • Check: are required services running? (DB, relevant tools)

Step 3: Activate Build Mode

node ~/system/tools/build-mode.js start <project_dir> --concurrency <N>

Builder completion flow

Builders call node ~/system/tools/mc.js ready <id> NOT mc.js done. Only after Proveo/validator verification can tasks be marked done. Build-plan CANNOT report COMPLETE until all tasks pass Proveo verification.

Step 4: Execute Tasks (parallel where independent)

For each [ ] task in plan:

  • if task has no dependencies → spawn in parallel with builder agent
  • if task has dependencies → wait for dep completion, then spawn
  • Each builder: reads task spec, implements, marks [x] when done

Step 5: Validate Each Task

After each task completes → spawn validator agent:

  • Runs tests relevant to task
  • Checks acceptance criteria
  • if FAIL → send back to builder with failure context
  • if PASS → proceed

Step 6: Final Check

  • All tasks [x]? → run full test suite
  • if PASS → node ~/system/tools/build-mode.js stop --status completed
  • if FAIL → node ~/system/tools/build-mode.js stop --status failed + report

Report Format

BUILD-PLAN EXECUTION REPORT
Plan: [filename]
Status: [COMPLETE|PARTIAL|FAILED]
Tasks: X/Y completed
Tests: [passing/total]
Duration: [time]
Issues: [any blockers or failures]

$ARGUMENTS