From superpowers
Executes implementation plans from plan.md files via Superpower Loop phases: task creation, batch execution with verification, git commits. Use after plan ready or on 'execute the plan'.
npx claudepluginhub fradser/dotclaude --plugin superpowersThis skill is limited to using the following tools:
Execute written implementation plans efficiently using Superpower Loop for continuous iteration through all phases.
Executes task plans from files with critical review and mandatory user choice: batch mode pauses for human feedback after each batch, or one-go autonomous execution.
Executes written implementation plans in controlled batches with review checkpoints, verification, and feedback. Use when a plan exists needing strict adherence and regression prevention.
Executes written implementation plans: loads and critically reviews them, runs tasks in dependency order with parallel dispatch, separate worker-validator subagents, and verifies completion.
Share bugs, ideas, or general feedback.
Execute written implementation plans efficiently using Superpower Loop for continuous iteration through all phases.
Resolve the plan path and start the loop immediately — do NOT read plan files, explore the codebase, or do anything else first.
$ARGUMENTS provides a path (e.g., docs/plans/YYYY-MM-DD-topic-plan/), use itdocs/plans/ for the most recent *-plan/ folder matching YYYY-MM-DD-*-plan/"${CLAUDE_PLUGIN_ROOT}/scripts/setup-superpower-loop.sh" "Execute the plan at <resolved-plan-path>. Continue progressing through the superpowers:executing-plans skill phases: Phase 1 (Plan Review) → Phase 2 (Task Creation) → Phase 3-4 loop (Batch Execution + Verification, repeat per batch) → Phase 5 (Git Commit) → Phase 6 (Completion)." --completion-promise "EXECUTION_COMPLETE" --max-iterations 100
The loop enables self-referential iteration throughout the execution process.
This skill uses Superpower Loop to enable self-referential iteration throughout the execution process.
CRITICAL: Throughout the process, you MUST output <promise>EXECUTION_COMPLETE</promise> only when:
completed (verified via TaskList — zero tasks with in_progress or pending status)Do NOT output the promise until ALL conditions are genuinely TRUE.
ABSOLUTE LAST OUTPUT RULE: The promise tag MUST be the very last text you output. Output any transition messages or instructions to the user BEFORE the promise tag. Nothing may follow <promise>EXECUTION_COMPLETE</promise>.
(The Superpower Loop and plan path were resolved in the first action above — do NOT start the loop again)
_index.md with "Execution Plan" section._index.md completely. This is the source of truth for your execution.The loop will continue through all phases until <promise>EXECUTION_COMPLETE</promise> is output.
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.
These rules are non-negotiable and override all other guidance.
PROHIBITED outputs — a task MUST NOT be marked completed if it produces any of the following:
pass, or ... with no logicTODO, FIXME, NotImplemented, raise NotImplementedError, or equivalent in any languageNone/null without executing real logicA task is "done" only when ALL of the following are true:
On verification failure:
in_progress./references/blocker-and-escalation.mdcompleted after a failed verification_index.md to understand scope, architecture decisions, and extract inline YAML task metadata from the "Execution Plan" section../references/blocker-and-escalation.md.CRITICAL: You MUST use TaskCreate to create ALL tasks BEFORE executing any task. Task creation must complete before dependency analysis or execution begins.
Extract Tasks from _index.md: Read _index.md only. Parse the inline YAML metadata in the "Execution Plan" section to extract:
id: Task identifier (e.g., "001")subject: Brief title in imperative form (e.g., "Implement login handler")slug: Hyphenated slug for filename (e.g., "implement-login-handler")type: Task type (test, impl, setup, config, refactor)depends-on: Array of task IDs this task depends on (e.g., ["001"])Create Tasks First: Use TaskCreate to register every task
subject from YAML subject fielddescription to: "See task file: ./task-{id}-{slug}-{type}.md for full details including BDD scenario and verification steps"activeForm by converting subject to present continuous form (e.g., "Setting up project structure")Analyze Dependencies: After all tasks are created, build the dependency graph
task-002-auth-test + task-002-auth-impl). Mark each such pair as a Red-Green pair — these are always scheduled as a coordinated unit in the same batch. The test task retains its Tier 0 position; the impl task follows immediately after in the same batch execution (not a separate batch).Setup Task Dependencies: Use TaskUpdate to configure dependencies between tasks
addBlockedBy: Array of task IDs this task must wait for before startingaddBlocks: Array of task IDs that must wait for this task to completeTaskUpdate({ taskId: "2", addBlockedBy: ["1"] }) means task #2 waits for task #1Execute tasks in batches using Agent Teams or subagents for parallel execution.
For Each Batch:
Choose Execution Mode (decision tree):
test + one impl), assign exactly two dedicated agents — one per task. The test agent runs first and confirms Red state; then the impl agent starts. Multiple pairs run in parallel. Non-negotiable for any test+impl pair.isolation: "worktree") as an option within this mode — not a separate mode. File conflicts within a batch should be resolved by splitting the batch further when possible.For Each Task in Batch:
a. Mark Task In Progress: Use TaskUpdate to set status to in_progress
b. Read Task Context: Read the task file to get full context (subject, description, BDD scenario, verification steps)
c. Execute Task: Based on execution mode:
Mandatory prompt content — regardless of execution mode, every agent/teammate prompt MUST include:
See ./references/batch-execution-playbook.md — "Agent Prompt Template" section — for the full required template.
For Agent Team / Worktree mode:
For Subagent mode:
For Linear mode:
d. Verification Gate: Run all verification commands from the task file. Capture the actual output.
HARD GATE: If ANY verification step fails (non-zero exit, test failure, unexpected output):
in_progress./references/blocker-and-escalation.mde. Mark Task Complete: Only after ALL verification steps in 2d pass, use TaskUpdate to set status to completed. Include in the update: which verification commands ran and that they passed.
Batch Completion: After all tasks in batch complete, report progress and proceed to next batch
See ./references/batch-execution-playbook.md for detailed execution patterns.
Close the loop with structured evidence.
Publish Evidence: For each completed task in the batch, output a structured evidence block:
Task [ID]: [subject]
Verification command: <command run>
Output: <actual output, truncated to last 20 lines if long>
Status: PASS / FAIL
Any task without a PASS evidence block is NOT verified. Do not proceed to confirmation until all tasks have PASS status.
Confirm: Use AskUserQuestion to present the evidence summary and ask: "All tasks in this batch verified. Proceed to the next batch?" AskUserQuestion pauses within the turn, ensuring the user can respond before the loop re-injects. Get explicit confirmation before continuing.
Loop: Repeat Phase 3-4 until all batches complete.
Commit the implementation changes using git-agent (with git fallback).
Actions:
git-agent commit --intent "<feature description>" --co-author "Claude <Model> <Version> <noreply@anthropic.com>"--free flaggit add and use git commit with conventional formatSee ../../skills/references/git-commit.md for detailed patterns, commit message templates, and requirements.
Critical requirements:
feat(auth):, feat(ui):, feat(db):)Verify all tasks are complete, then output the promise as the absolute last line.
completed. If any task is in_progress or pending, do NOT proceed — return to Phase 3 to finish remaining tasks.<promise>EXECUTION_COMPLETE</promise> — nothing after thisPROHIBITED: Do NOT output the promise tag if TaskList shows any non-completed tasks. Do NOT output any text after the promise tag.
All tasks executed and verified, evidence captured, no blockers, user approval received, final verification passes, git commit completed.
./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 (shared cross-skill resource)../../skills/references/loop-patterns.md - Completion promise design, prompt patterns, and safety nets