executing-plans
npx skills add https://github.com/fradser/dotclaude --skill executing-plans
Agent 安装分布
Skill 文档
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
$ARGUMENTSprovides a path (e.g.,docs/plans/YYYY-MM-DD-topic-plan/), look for_index.mdorplan.mdinside it. - If no argument is provided:
- Search
docs/plans/for the most recent*-plan/folder matching the patternYYYY-MM-DD-*-plan/ - If found, confirm with user: “Execute this plan: [path]?”
- If not found or user declines, ask the user for the plan folder path.
- Search
- If
- 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 (
_index.mdand 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
depends-onfields, then actively restructure tasks into parallel batches.- Compute dependency tiers: Tier 0 = no dependencies, Tier N = all
depends-ontasks 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
- Compute dependency tiers: Tier 0 = no dependencies, Tier N = all
- Create Tasks: Use
TaskCreatetool to register each task, in batch order. Each task must include:subject: Brief title in imperative form (e.g., “Implement login handler”)description: Detailed task description from plan, including files, verification steps, and BDD scenario referenceactiveForm: 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
depends-onwithin 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 (default): Use unless a specific technical reason prevents it. File conflicts or sequential
-
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-developmentskill - 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-developmentskill - Verify the task
- Mark task complete
- Execute using subagent loading the
- For each task in the batch:
-
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:
feat(<scope>):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.,
feat(auth):,feat(ui):,feat(db):)
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