Layer tasks for parallel execution with dependency analysis (FAST - <2 min)
Analyzes tasks.md and creates layered-tasks.md with L0-L3 execution layers for parallel development. Use this after writing tasks.md to optimize execution order and identify parallel work streams.
/plugin marketplace add vanman2024/dev-lifecycle-marketplace/plugin install iterate@dev-lifecycle-marketplace<spec-name>๐จ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
Arguments: $ARGUMENTS
Goal: Quickly analyze tasks.md and create layered-tasks.md with L0-L3 layers for parallel execution
SPEED TARGET: <2 minutes for simple features, <5 minutes for complex
Phase 1: Quick Discovery (10 seconds)
Actions:
Phase 2: Fast Dependency Analysis (30-60 seconds)
Actions:
NO deep code analysis - just keyword-based categorization
Phase 3: Layer Assignment (30 seconds)
Actions:
# Layered Tasks for F00X
## Layer 0: Infrastructure (Run First)
**These must complete before other layers**
- [ ] Task: Setup database schema
- Complexity: Mid
- Agent: Backend
- Dependencies: None
- [ ] Task: Configure authentication
- Complexity: Senior
- Agent: Backend
- Dependencies: None
## Layer 1: Core Services (Parallel)
**Can run in parallel after L0 completes**
- [ ] Task: Create API endpoints
- Complexity: Mid
- Agent: Backend
- Dependencies: L0 complete
- [ ] Task: Create base components
- Complexity: Junior
- Agent: Frontend
- Dependencies: None
## Layer 2: Features (Parallel)
**Can run in parallel after L1 completes**
- [ ] Task: Build chat interface
- Complexity: Mid
- Agent: Frontend
- Dependencies: L1 components
- [ ] Task: Implement chat API
- Complexity: Senior
- Agent: Backend
- Dependencies: L1 endpoints
## Layer 3: Integration (Sequential)
**Wire everything together**
- [ ] Task: Connect frontend to backend
- Complexity: Mid
- Agent: Fullstack
- Dependencies: L2 complete
- [ ] Task: End-to-end testing
- Complexity: Senior
- Agent: QA
- Dependencies: All layers complete
Layering Rules (Fast Heuristics):
Phase 4: Complexity Assignment (20 seconds)
Fast complexity heuristics:
Phase 5: Agent Assignment (20 seconds)
Fast agent assignment:
Phase 6: Write Output (10 seconds)
Actions:
Phase 7: Quick Recommendations (10 seconds)
Actions:
IMPORTANT SPEED OPTIMIZATIONS:
If task is taking >2 minutes for simple features:
Output Files:
Next Steps for User:
/iterate:sync $ARGUMENTS after each layer