Executing Plans
Execute written implementation plans efficiently. Actively use Agent Teams or subagents to execute batches of independent tasks in parallel, following BDD/TDD principles.
Initialization
- Resolve Plan Path:
- If provides a path (e.g.,
docs/plans/YYYY-MM-DD-topic-plan/
), look for or inside it.
- If no argument is provided:
- Search for the most recent folder matching the pattern
- If found, confirm with user: "Execute this plan: [path]?"
- If not found or user declines, ask the user for the plan folder path.
- Plan Check: Verify the plan file exists and contains actionable tasks.
Background Knowledge
Core Principles: Review before execution, batch verification, explicit blockers, evidence-driven approach.
MANDATORY SKILLS: Both
superpowers:agent-team-driven-development
and
superpowers:behavior-driven-development
must be loaded regardless of execution mode.
Phase 1: Plan Review & Understanding
Read plan, understand the project and requirements.
- Read Plan: Read all plan files ( and task files) to understand the scope, architecture, and dependencies.
- Understand Project: Explore codebase structure, key files, and patterns relevant to the plan.
- Check Blockers: See
./references/blocker-and-escalation.md
.
Phase 2: Task Setup (MANDATORY)
REQUIRED: Create task tracking system before any execution begins.
- Scope Batches: Build a dependency graph from fields, then actively restructure tasks into parallel batches.
- Compute dependency tiers: Tier 0 = no dependencies, Tier N = all tasks are in earlier tiers
- Within each tier, group tasks by type to maximize parallelism (e.g., all "write test" tasks in one batch, all "implement" tasks in the next)
- MANDATORY: Every batch must contain ≥2 tasks. If a tier has only 1 task, combine it with adjacent tier tasks that have no file conflicts
- A single-task batch is only acceptable if it is the sole remaining task in the entire plan
- Each batch should contain 3-6 tasks
- Create Tasks: Use tool to register each task, in batch order. Each task must include:
- : Brief title in imperative form (e.g., "Implement login handler")
- : Detailed task description from plan, including files, verification steps, and BDD scenario reference
- : Present continuous form for progress display (e.g., "Implementing login handler")
Phase 3: Batch Execution Loop
Execute tasks in batches. Actively use parallel execution for independent tasks.
For Each Batch:
-
Choose Execution Mode (strict priority — justify any downgrade explicitly):
- Agent Team (default): Use unless a specific technical reason prevents it. File conflicts or sequential within a batch are NOT valid reasons to downgrade — resolve by splitting the batch further.
- Subagent Parallel (downgrade only if): Agent Team overhead is disproportionate (e.g., batch has exactly 2 small tasks). State the reason explicitly.
- Linear (last resort only if): Tasks within the batch have unavoidable file conflicts that cannot be split, or the batch genuinely contains only 1 task. State the reason explicitly.
-
Agent Team Execution:
- Create Agent Team with teammates for parallel execution
- Assign tasks to teammates with clear file ownership boundaries
- Wait for teammates to complete all tasks
- Verify all tasks in the batch
- Mark tasks complete
-
Subagent Parallel Execution:
- Spawn subagents concurrently for each independent task
- Each subagent loads the
superpowers:behavior-driven-development
skill
- Verify all tasks in the batch
- Mark tasks complete
-
Linear Execution:
- For each task in the batch:
- Execute using subagent loading the
superpowers:behavior-driven-development
skill
- Verify the task
- Mark task complete
-
Between Batches:
- Report progress and verification results
- Proceed to next batch automatically
See
./references/batch-execution-playbook.md
.
Git Commit
Commit the implementation changes to git with proper message format.
See
../../skills/references/git-commit.md
for detailed patterns, commit message templates, and requirements.
Critical requirements:
- Commit the implementation changes after all tasks are completed
- Prefix: for implementation changes
- Subject: Under 50 characters, lowercase
- Footer: Co-Authored-By with model name
Commit timing:
- Commit implementation changes after all tasks in the plan are completed
- Commit should reflect the completed feature, not individual tasks
- Use meaningful scope (e.g., , , )
Phase 4: Verification & Feedback
Close the loop.
- Publish Evidence: Log outputs and test results.
- Confirm: Get user confirmation.
- Update Tracker: Mark tasks complete.
- Loop: Repeat Phase 3-4 until complete.
Exit Criteria
All tasks executed and verified, evidence captured, no blockers, user approval received, final verification passes.
References
./references/blocker-and-escalation.md
- Guide for identifying and handling blockers
./references/batch-execution-playbook.md
- Pattern for batch execution
../../skills/references/git-commit.md
- Git commit patterns and requirements