From plan-workflow
Create detailed parallel implementation plans by orchestrating analysis agents and validation, then synthesizing dependency-aware tasks into parallel-plan.md. Use after shared-context to prepare implementation-ready planning artifacts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plan-workflow:parallel-planThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**THIS SKILL ONLY CREATES PLANNING ARTIFACTS. IT NEVER IMPLEMENTS.**
THIS SKILL ONLY CREATES PLANNING ARTIFACTS. IT NEVER IMPLEMENTS.
Outputs:
${PLANS_DIR}/[feature-name]/analysis-context.md${PLANS_DIR}/[feature-name]/analysis-code.md${PLANS_DIR}/[feature-name]/analysis-tasks.md${PLANS_DIR}/[feature-name]/parallel-plan.mdAfter creating planning artifacts and displaying the summary, STOP COMPLETELY.
Create parallel-plan.md by orchestrating parallel analysis agents, synthesizing implementation tasks, and validating plan quality.
shared-context (step 1) -> parallel-plan (this skill) -> implement-plan (step 3)
This skill requires ${feature_dir}/shared.md and ends after producing analysis artifacts and parallel-plan.md.
BOUNDARY: This skill ENDS after creating parallel-plan.md. The user manually runs /implement-plan when ready.
If shared.md doesn't exist, run /shared-context [feature-name] first.
Target: $ARGUMENTS
Parse arguments:
${PLANS_DIR})If no feature name provided, abort with usage instructions.
Use the shared resolver to determine the correct plans directory:
source ${CLAUDE_PLUGIN_ROOT}/skills/_shared/scripts/resolve-plans-dir.sh
feature_dir="$(get_feature_plan_dir "[feature-name]")"
Extract the feature name from $ARGUMENTS (first non-flag argument).
Run the prerequisites check script:
${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/scripts/check-prerequisites.sh [feature-name]
If the script exits with error:
/shared-context first to create the shared context documentConfirm these files exist in ${feature_dir}/:
shared.md (required)requirements.md (optional but helpful)If --dry-run is present in $ARGUMENTS:
Display:
# Dry Run: Parallel Plan for [feature-name]
## Analysis Agents That Would Run (Phase 1)
1. Context Synthesizer - Condense planning documentation
2. Code Analyzer - Extract code patterns from relevant files
3. Task Structure Agent - Suggest task breakdown and phases
## Files That Would Be Created
- ${PLANS_DIR}/[feature-name]/analysis-context.md (by Context Synthesizer)
- ${PLANS_DIR}/[feature-name]/analysis-code.md (by Code Analyzer)
- ${PLANS_DIR}/[feature-name]/analysis-tasks.md (by Task Structure Agent)
- ${PLANS_DIR}/[feature-name]/parallel-plan.md (final plan)
## Validation Agents That Would Run (Phase 5)
1. File Path Validator - Verify all paths exist
2. Dependency Validator - Check dependency graph
3. Task Completeness Validator - Ensure tasks are actionable
## Execution Model
- Deploy analysis agents in parallel
- Persist analysis artifacts
- Generate plan from condensed analysis
- Validate with parallel validation agents
- Fix issues and finalize
## Next Steps
Remove --dry-run flag to create the plan.
STOP HERE - do not write files or deploy agents.
Read the analysis prompt templates:
cat ${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/templates/analysis-prompts.md
This provides prompts for 3 parallel analysis agents that will condense planning context.
CRITICAL: Deploy all 3 agents in a SINGLE message with MULTIPLE Task tool calls.
Each agent MUST write its findings to the specified output file. The orchestrator MUST verify file persistence after agents complete.
| Agent | Subagent Type | Focus | Output File |
|---|---|---|---|
| Context Synthesizer | codebase-research-analyst | Condense planning docs | analysis-context.md |
| Code Analyzer | codebase-research-analyst | Extract code patterns | analysis-code.md |
| Task Structure Agent | codebase-research-analyst | Suggest task breakdown | analysis-tasks.md |
Use the prompts from analysis-prompts.md with variables substituted:
{{FEATURE_NAME}} - The feature directory name{{FEATURE_DIR}} - Full output directory path (${feature_dir}, resolved in Step 1)Each agent will:
${feature_dir}/[output-file]Why use agents: This prevents loading 50-100K+ tokens of raw files into main context. Agents read everything and return 5-10K tokens of condensed, actionable analysis.
After agents complete, validate all analysis files:
${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/scripts/validate-analysis-artifacts.sh "${feature_dir}"
If validation passes, proceed to Step 9. If validation fails, proceed to Step 8.
For each missing or invalid file reported by the validation script:
${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/scripts/validate-analysis-artifacts.sh "${feature_dir}"
Repeat until validation passes. If agents repeatedly fail, stop and report what is missing.
Run the pre-generation gate script:
${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/scripts/persist-or-fail.sh "${feature_dir}"
Exit 0 → proceed to Phase 3
Exit 1 → the script prints MISSING_FILES and ACTION_REQUIRED. Re-deploy the failed agents, then re-run this gate until it passes (exit 0)
Do not attempt to generate parallel-plan.md if Step 7 or Step 8 have not passed.
Do NOT proceed to plan generation until persist-or-fail.sh exits 0.
After verifying all files exist, read only the condensed analysis outputs:
${feature_dir}/analysis-context.md - Planning context synthesis${feature_dir}/analysis-code.md - Code pattern analysis${feature_dir}/analysis-tasks.md - Task structure suggestionsThese files contain 60-80% compressed insights versus reading all source files directly.
Using TodoWrite, create a comprehensive task list with:
Read the plan template structure:
cat ${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/templates/plan-structure.md
Create ${feature_dir}/parallel-plan.md following the template exactly:
Title & Overview
Critically Relevant Files and Documentation
## Critically Relevant Files and Documentation
- /path/to/file: Brief description of relevance
- /path/to/doc: When to reference this
Implementation Plan
## Implementation Plan
### Phase 1: [Phase Name]
#### Task 1.1: [Task Title] Depends on [none]
**READ THESE BEFORE TASK**
- /file/path
- /doc/path
**Instructions**
Files to Create
- /file/path
Files to Modify
- /file/path
[Concise instructions on implementation]
Advice Section
## Advice
- Insight that emerged from seeing the full picture
- Cross-cutting concerns and gotchas
- Specific warnings about code dependencies
For each task ensure:
Task Granularity
Dependencies
Depends on [none] for independent tasks (maximize parallelism)Depends on [1.1, 2.3] for tasks requiring prior workFile References
Read the validation prompts:
cat ${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/templates/validation-prompts.md
CRITICAL: Deploy all 3 agents in a SINGLE message with MULTIPLE Task tool calls.
| Agent | Subagent Type | Focus |
|---|---|---|
| File Path Validator | explore | Verify all referenced files exist |
| Dependency Validator | explore | Check for circular/invalid dependencies |
| Task Completeness Validator | codebase-research-analyst | Ensure tasks are actionable |
Use the prompts from validation-prompts.md with the feature name substituted.
After agents complete:
Run the validation script:
${CLAUDE_PLUGIN_ROOT}/skills/parallel-plan/scripts/validate-parallel-plan.sh "${feature_dir}/parallel-plan.md"
Report any structural issues found.
Provide completion summary:
# Parallel Plan Created
## Location
${feature_dir}/parallel-plan.md
## Analysis Files Generated
- ${feature_dir}/analysis-context.md (Planning context synthesis)
- ${feature_dir}/analysis-code.md (Code pattern analysis)
- ${feature_dir}/analysis-tasks.md (Task structure suggestions)
## Plan Overview
- **Total Phases**: [count]
- **Total Tasks**: [count]
- **Independent Tasks**: [count that can run in parallel]
- **Max Dependency Depth**: [deepest chain]
## Task Breakdown by Phase
Phase 1: [count] tasks ([X] independent)
Phase 2: [count] tasks ([X] independent)
...
## Validation Results
- File Path Validation: [summary]
- Dependency Graph: [summary]
- Task Completeness: [summary]
## Context Efficiency
- Analysis agents condensed context from ~50-100K tokens to ~5-10K tokens
- Main context preserved for plan generation and validation
## Next Steps (FOR USER - NOT FOR THIS SKILL)
**THIS SKILL IS NOW COMPLETE. DO NOT PROCEED.**
The user can manually run the implementation when ready:
/implement-plan [feature-name]
Review steps for user:
1. Review the plan: ${feature_dir}/parallel-plan.md
2. Review analysis files for detailed insights (optional)
3. Refine tasks if needed
STOP: Do not execute implement-plan. Do not write any more files. Do not modify any code. This skill is complete.
Each task must have:
The overall plan must have:
All files are written to ${feature_dir}/ (resolved via resolve-plans-dir.sh).
| File | Producer | Required Before |
|---|---|---|
analysis-context.md | Context Synthesizer agent | parallel-plan.md generation |
analysis-code.md | Code Analyzer agent | parallel-plan.md generation |
analysis-tasks.md | Task Structure Agent | parallel-plan.md generation |
parallel-plan.md | Orchestrator (this skill) | Skill completion |
Contract Rules:
validate-analysis-artifacts.sh after agents complete (Step 7)persist-or-fail.sh as a mandatory pre-generation gate (Step 9)persist-or-fail.sh must exit 0 before plan generationAlways resolve plans via resolve-plans-dir.sh.
Default:
docs/plans/Optional local scope via .plans-config:
plans_dir: docs/plans
scope: local
validate-analysis-artifacts.sh after agents completenpx claudepluginhub yandy-r/claude-pluginsDecomposes specs/PRDs/plans into independent tasks, assigns to builder agents for parallel execution in waves respecting dependencies, then integrates results. For fast multi-file feature implementation.
Writes multi-step implementation plans from specs or requirements, decomposing work into bite-sized tasks with file structure and dependency info. Use before starting code.
Generates executable Markdown implementation plans for multi-step tasks from context briefs, resolving ambiguities, ordering dependencies, and enabling parallel worker execution.