From implement-plan
Execute a parallel implementation plan by deploying implementor agents in dependency-resolved batches. Use as Step 3 after parallel-plan to implement features from the generated plan.
How this skill is triggered — by the user, by Claude, or both
Slash command
/implement-plan:implement-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute a parallel implementation plan by deploying implementor agents in dependency-resolved batches. This is **Step 3** of the planning workflow, transforming the plan into working code.
Execute a parallel implementation plan by deploying implementor agents in dependency-resolved batches. This is Step 3 of the planning workflow, transforming the plan into working code.
This skill is the final step of the planning workflow. It requires parallel-plan.md from the parallel-plan skill.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ shared-context │ ──▶ │ parallel-plan │ ──▶ │ implement-plan │
│ (Step 1) │ │ (Step 2) │ │ (this skill) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
Creates: Creates: Executes:
shared.md parallel-plan.md parallel-plan.md
If parallel-plan.md doesn't exist, run /parallel-plan [feature-name] first.
Target: $ARGUMENTS
Parse arguments:
docs/plans/)If no feature name provided, abort with usage instructions:
Usage: /implement-plan [feature-name] [--dry-run]
Examples:
/implement-plan user-authentication
/implement-plan payment-integration --dry-run
Extract the feature name from $ARGUMENTS (first non-flag argument).
Run the prerequisites check script:
${CLAUDE_PLUGIN_ROOT}/skills/implement-plan/scripts/check-prerequisites.sh [feature-name]
If the script exits with error:
/parallel-plan first to create the implementation planRead the essential planning documents:
docs/plans/[feature-name]/parallel-plan.md - The implementation plandocs/plans/[feature-name]/shared.md - Architecture contextAlso read files listed in the "Critically Relevant Files" section of parallel-plan.md.
Parse parallel-plan.md to extract all tasks:
${CLAUDE_PLUGIN_ROOT}/skills/implement-plan/scripts/parse-dependencies.sh docs/plans/[feature-name]/parallel-plan.md
For each task, extract:
Depends on [...] or - **Dependencies**: ...Create a dependency graph structure:
Independent Tasks (Depends on [none]):
- Task 1.1
- Task 1.3
- Task 2.2
Dependent Tasks:
- Task 1.2 → depends on [1.1]
- Task 2.1 → depends on [1.1, 1.2]
- Task 2.3 → depends on [2.1, 2.2]
- Task 3.1 → depends on [2.1]
Using TodoWrite, create a todo item for each task in the plan:
Format each todo as:
id: Task ID (e.g., "task-1-1")content: "[Task ID] [Task Title] - Depends on: [dependencies]"status: "pending"Example:
- task-1-1: "1.1 Create user model - Depends on: none"
- task-1-2: "1.2 Add validation - Depends on: 1.1"
- task-1-3: "1.3 Setup routes - Depends on: none"
Identify all tasks with Depends on [none] - these form the first batch.
Mark these as ready for execution.
If --dry-run is present in $ARGUMENTS:
Display:
# Dry Run: Implementation Plan for [feature-name]
## Execution Batches
### Batch 1 (Independent Tasks)
- Task 1.1: [Title]
- Task 1.3: [Title]
- Task 2.2: [Title]
### Batch 2 (After Batch 1)
- Task 1.2: [Title] (depends on 1.1)
- Task 2.1: [Title] (depends on 1.1, 1.2)
### Batch 3 (After Batch 2)
- Task 2.3: [Title] (depends on 2.1, 2.2)
- Task 3.1: [Title] (depends on 2.1)
## Summary
- Total Tasks: [count]
- Total Batches: [count]
- Max Parallelism: [largest batch size]
## Next Steps
Remove --dry-run flag to execute the plan.
STOP HERE - do not deploy agents.
For each batch of ready tasks:
CRITICAL: Deploy all agents in the batch in a SINGLE message with MULTIPLE Task tool calls.
Read the agent task prompt template:
cat ${CLAUDE_PLUGIN_ROOT}/skills/implement-plan/templates/agent-task-prompt.md
For each task in the batch, deploy an implementor agent with:
| Field | Value |
|---|---|
| subagent_type | implementor |
| description | "Implement [Task ID]: [Title]" |
| prompt | Use template with task details substituted |
Each implementor agent must:
Read context first:
docs/plans/[feature-name]/parallel-plan.mddocs/plans/[feature-name]/shared.mdImplement the specific task:
Validate changes:
Return summary:
After batch completes:
completedContinue executing batches until all tasks are completed:
While tasks remain:
1. Find tasks where all dependencies are completed
2. Deploy agents for those tasks in parallel
3. Wait for batch to complete
4. Update task status
5. Identify next batch
After all tasks complete:
Provide completion summary:
# Implementation Complete
## Feature
[feature-name]
## Execution Summary
- **Total Tasks**: [count]
- **Completed**: [count]
- **Failed**: [count]
- **Batches Executed**: [count]
## Files Changed
### Created
- /path/to/new/file.ext
- /path/to/another/file.ext
### Modified
- /path/to/existing/file.ext
- /path/to/another/existing/file.ext
## Task Results
### Batch 1
- [x] Task 1.1: [Title] - Success
- [x] Task 1.3: [Title] - Success
### Batch 2
- [x] Task 1.2: [Title] - Success
- [x] Task 2.1: [Title] - Success
## Issues Encountered
[List any problems or warnings]
## Next Steps
1. Review the changes in your editor
2. Run tests to verify functionality
3. Commit the changes when satisfied
4. **Optional**: Generate implementation report:
/code-report [feature-name]
Each batch must:
Each agent must:
The implementation must:
The skill automatically detects and uses the correct plans directory in monorepo setups.
docs/plans/packages/app1/) will still read plans from the rootCreate a .plans-config file to customize behavior:
Repository Root (centralized plans):
# .plans-config at repo root
plans_dir: docs/plans
Package-Level Plans (optional):
# .plans-config in packages/app1/
plans_dir: docs/plans
scope: local
With scope: local, plans are read from the local docs/plans/ instead of the root.
monorepo/
.plans-config # plans_dir: docs/plans
docs/plans/ # Centralized plans (default)
feature-a/
shared.md
parallel-plan.md # Read by this skill
packages/
app1/
app2/
Running /implement-plan feature-a from anywhere executes monorepo/docs/plans/feature-a/parallel-plan.md.
npx claudepluginhub yandy-r/claude-pluginsExecutes implementation plans with automatic sequential/parallel orchestration, handling worktree verification, resume detection, phase dispatch, and quality verification.
Orchestrates multi-phase implementation from plan documents using sub-agents with auto-detected parallel/sequential strategies based on dependencies.
Executes implementation plans by dispatching tasks to implementer and reviewer subagents. Tracks progress per-task and coordinates sequential phases.