$ARGUMENTS
Analyzes requirements and codebase to create a comprehensive implementation plan with parallel subtasks. Use this first for complex features to ensure accurate architecture and identify opportunities for parallel development.
/plugin marketplace add ken2403/.claude-paralell-dev-plugin/plugin install pw@claude-parallel-dev-plugin$ARGUMENTS
Determine input type and extract requirements:
gh issue view $1 --json title,body,labels,assignees
Read the referenced specification file.
Parse the specification as provided.
git remote get-url origin 2>/dev/null | sed 's/.*\///' | sed 's/\.git$//' || basename $(pwd)git branch --show-currentls -la | head -15Detect the base branch from workspace configuration (NOT always main/master):
# Check CLAUDE.md for base branch specification
BASE_BRANCH=""
if [ -f "CLAUDE.md" ]; then
BASE_BRANCH=$(grep -i "base.branch\|default.branch\|primary.branch" CLAUDE.md | head -1 | grep -oE "(main|master|develop|dev|release[^[:space:]]*)" || echo "")
fi
# Fallback: check git remote HEAD or common branches
if [ -z "$BASE_BRANCH" ]; then
BASE_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "")
fi
# Final fallback: check which exists
if [ -z "$BASE_BRANCH" ]; then
for branch in main master develop dev; do
if git show-ref --verify --quiet "refs/heads/$branch" 2>/dev/null; then
BASE_BRANCH="$branch"
break
fi
done
fi
echo "Base branch: ${BASE_BRANCH:-main}"
MANDATORY: Before creating any design, you MUST use subagents:
explorer subagent first to understand the codebase structureanalyzer subagent to assess impactUse explorer subagent to understand the codebase context:
Use explorer subagent to find existing patterns and architecture relevant to this task
Parse the specification to identify:
Output format:
# Design: [Feature/Task Name]
## Overview
[Brief description of what will be implemented]
## Requirements Summary
### Must Have
- [Requirement 1]
- [Requirement 2]
### Nice to Have
- [Optional requirement]
## Architecture
### Affected Components
| Component | Changes Required |
|-----------|------------------|
| [Component] | [Description] |
### New Components
| Component | Purpose |
|-----------|---------|
| [Component] | [Purpose] |
## Implementation Plan
### Files to Create
- `path/to/new/file.py` - [Purpose]
### Files to Modify
- `path/to/existing/file.py` - [Changes needed]
## Candidate Subtasks for Parallel Execution
### Subtask 1: [Name]
- **Branch**: feature/[name]
- **Scope**: [Description]
- **Files**: [List]
- **Dependencies**: None | [List]
### Subtask 2: [Name]
...
## Execution Recommendation
- **Parallel execution possible**: Yes/No
- **Recommended workers**: [N]
- **Sequential dependencies**: [List if any]
## Risks and Mitigations
| Risk | Mitigation |
|------|------------|
| [Risk] | [Mitigation] |
After design approval:
/pw:decompose to formalize task decomposition/pw:orchestrate to start parallel workers