Build
Overview
Implement all tasks from a plan file with checkpoint support for resuming work, progress tracking via TodoWrite, and optional git commits at logical milestones.
Arguments
Definitions
- •
<plan-file>(required): Path to plan file. - •
[checkpoint](optional): Resume from specific task/milestone (e.g., "Milestone 2" or "Task 3.1"). - •
[--git](optional): Auto-commit changes at logical checkpoints. - •
[context](optional): Freeform context for implementation guidance.
Values
$ARGUMENTS
Core Principles
- •Plans are read-only - never modify the plan file during implementation
- •Track progress via TodoWrite tool, not plan file updates
- •Ask clarifying questions rather than making assumptions
- •Maintain code quality and follow existing patterns in the codebase
- •Run tests frequently to catch issues early
- •Git commits should be atomic and meaningful, aligned with milestones or task groups
- •Ensure changes work before committing
- •If blocked on a task, explain the blocker and ask for guidance
Skill-Specific Guidelines
Checkpoint System
The checkpoint system allows resuming long-running builds:
- •
Milestone Checkpoint: Resume from start of a milestone
bash--checkpoint "Milestone 2" --checkpoint "Milestone 2: OAuth Integration"
- •
Task Checkpoint: Resume from a specific task
bash--checkpoint "Task 2.1" --checkpoint "Add OAuth handlers"
- •
Text Matching: Checkpoint matches against:
- •Milestone numbers (e.g., "Milestone 2")
- •Milestone titles (e.g., "OAuth Integration")
- •Task numbers (e.g., "Task 2.1")
- •Task descriptions (partial match supported)
Git Commit Strategy
When --git flag is used, use /git-commit to commit at logical checkpoints:
- •Feature plans: Commit after each milestone
- •Bug fix plans: Commit after fix, again after tests
- •Chore plans: Commit after major task groups
Instructions
- •
Read Plan File
- •Read the plan file from the provided path
- •Parse the plan structure (milestones, tasks, validation criteria)
- •Validate the plan has required sections
- •
Handle Checkpoint (if --checkpoint flag)
- •Parse the checkpoint text to find the resume point
- •Match against milestone titles or task descriptions
- •Mark all previous tasks as already completed
- •Resume from the matched checkpoint
- •
Create Todo List
- •Extract all tasks from the plan
- •For feature plans: create todos per milestone with nested tasks
- •For bug/chore plans: create todos per task
- •Use TodoWrite tool to track progress
- •Mark checkpoint-completed tasks if resuming
- •
Implement Tasks
- •Work through each task sequentially
- •Mark current task as in_progress before starting
- •Analyze what changes are needed for the task
- •Make the required code changes
- •If implementation is ambiguous:
- •Ask user clarifying questions using AskUserQuestion
- •Wait for response before proceeding
- •Mark task as completed when done
- •
Git Commits (if --git flag)
- •Use
/git-commitat logical checkpoints:- •Features: after each milestone completion
- •Bugs: after fix implemented, after tests added
- •Chores: after major task groups
- •Use
- •
Validation
- •After completing all tasks, remind user to run
/sdlc-review - •Provide summary of changes made
- •After completing all tasks, remind user to run
Output Guidance
Provide clear progress updates and a final summary.
During implementation:
code
[in_progress] Milestone 1: OAuth Integration [completed] Task 1.1: Add OAuth provider configuration [in_progress] Task 1.2: Implement OAuth handlers [pending] Task 1.3: Add session management
On completion:
code
## Implementation Complete Tasks completed: X Files modified: Y Commits created: Z (if --git used) Changes summary: - [list key changes made] Next steps: - Run validation: /sdlc-review --plan specs/feature-auth.md - Review changes and test functionality