From plan-cascade
Orchestrates project-level multi-task execution managing parallel git worktree features with dependency resolution, coordinated PRD generation, and unified merge workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plan-cascade:mega-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
A project-level orchestration system that sits above `hybrid-ralph` to manage multiple parallel features as a unified project plan.
commands/approve.mdcommands/complete.mdcommands/edit.mdcommands/plan.mdcommands/status.mdcore/__init__.pycore/feature_orchestrator.pycore/mega_generator.pycore/mega_state.pycore/merge_coordinator.pyscripts/mega-context-reminder.pyscripts/mega-status.pyscripts/mega-sync.pytemplates/mega-plan.json.templateA project-level orchestration system that sits above hybrid-ralph to manage multiple parallel features as a unified project plan.
At the START of any interaction, perform this check to recover context after compression/truncation:
Check if .mega-execution-context.md exists in the project root
If YES:
/mega:resume --auto-prdIf NO but mega-plan.json exists:
uv run python "${CLAUDE_PLUGIN_ROOT}/skills/mega-plan/scripts/mega-context-reminder.py" bothThis ensures context recovery even after:
Level 1: Mega Plan (Project Level)
└── Level 2: Features (Feature Level) = hybrid:worktree
└── Level 3: Stories (Story Level) = hybrid internal parallelism
Generate a mega-plan from your project description:
/mega:plan Build an e-commerce platform with user authentication, product catalog, shopping cart, and order processing
This will:
mega-plan.json, mega-findings.md, .mega-status.jsonAfter reviewing the mega-plan:
/mega:approve
Or with automatic PRD approval for all features:
/mega:approve --auto-prd
This will:
--auto-prd)/mega:status
Shows:
When all features are complete:
/mega:complete
This will:
project-root/
├── mega-plan.json # Project-level plan
├── mega-findings.md # Shared findings (read-only in worktrees)
├── .mega-status.json # Execution status
├── .worktree/
│ ├── feature-auth/
│ │ ├── prd.json # Feature PRD
│ │ ├── findings.md # Feature-specific findings
│ │ ├── progress.txt # Story progress
│ │ ├── mega-findings.md # Read-only link to shared findings
│ │ └── .planning-config.json
│ └── feature-products/
│ └── ...
Generate a mega-plan for project-level multi-feature orchestration. Breaks a complex project into parallel features with dependencies.
/mega:plan [options] <project description> [design-doc-path]
Parameters:
| Parameter | Description |
|---|---|
--flow <quick|standard|full> | Execution flow depth controlling quality gate strictness |
--tdd <off|on|auto> | Test-Driven Development mode for feature execution |
--confirm | Require confirmation before each batch |
--no-confirm | Disable batch confirmation |
--spec <off|auto|on> | Spec interview before plan generation |
--first-principles | Enable first-principles questioning in spec interview |
--max-questions N | Max questions in spec interview |
design-doc-path | Optional path to existing design document |
Parameters are saved to mega-plan.json and propagated to /mega:approve and feature-level /approve commands.
Example:
/mega:plan --flow full --tdd auto Create a blog platform with user accounts, article management, comments, and RSS feeds
Edit the mega-plan interactively. Add, remove, or modify features.
/mega:edit
Approve the mega-plan and start feature execution. Creates worktrees and generates PRDs for each feature in batch-by-batch order.
/mega:approve [options]
Parameters:
| Parameter | Description |
|---|---|
--flow <quick|standard|full> | Execution flow depth for feature execution |
--tdd <off|on|auto> | TDD mode propagated to feature execution |
--confirm | Require confirmation before each batch |
--no-confirm | Disable batch confirmation |
--spec <off|auto|on> | Spec interview for feature PRD generation |
--first-principles | First-principles questioning for spec interviews |
--max-questions N | Max questions in spec interviews |
--auto-prd | Auto-approve all generated PRDs (skip manual review) |
--agent <name> | Global agent override |
--prd-agent <name> | Agent for PRD generation phase |
--impl-agent <name> | Agent for story implementation phase |
Approval Modes:
| Mode | Trigger | Use Case |
|---|---|---|
| Manual PRD Review | /mega:approve | Review each feature's PRD before execution |
| Auto PRD Approval | /mega:approve --auto-prd | Trust PRD generation, fully automated execution |
Show detailed status of mega-plan execution including feature progress, story completion, and batch summary.
/mega:status
Complete the mega-plan by cleaning up planning files. All features should already be merged via /mega:approve.
/mega:complete
{
"metadata": {
"created_at": "2026-01-28T10:00:00Z",
"version": "1.0.0"
},
"goal": "Project goal",
"description": "Original user description",
"execution_mode": "auto",
"target_branch": "main",
"features": [
{
"id": "feature-001",
"name": "feature-auth",
"title": "User Authentication",
"description": "Detailed description for PRD generation",
"priority": "high",
"dependencies": [],
"status": "pending"
}
]
}
pending → prd_generated → approved → in_progress → complete
↓
failed
| Status | Description |
|---|---|
pending | Feature not yet started |
prd_generated | Worktree created, PRD generated |
approved | PRD approved, ready for execution |
in_progress | Stories are being executed |
complete | All stories complete |
failed | Feature execution failed |
Features and their story batches execute automatically:
Batch 1 (Features) → PRDs generated → approved → stories execute → complete
↓
Batch 2 (Features) → PRDs generated → approved → stories execute → complete
↓
All complete → /mega:complete
Each batch waits for explicit confirmation:
Batch 1 → PRDs generated → [you review] → /approve in each worktree
↓
Batch 2 → PRDs generated → [you review] → /approve in each worktree
↓
All complete → /mega:complete
1. /mega:plan "Build e-commerce platform"
↓
2. Review generated mega-plan.json
↓
3. /mega:edit (if needed) or /mega:approve
↓
4. Feature worktrees created (Batch 1)
↓
5. PRDs generated in each worktree
↓
6. Review and /approve in each worktree (or use --auto-prd)
↓
7. Stories execute in parallel
↓
8. Monitor with /mega:status
↓
9. Batch 2 features start when Batch 1 complete
↓
10. All complete → /mega:complete
# Terminal 1: Main orchestration
/mega:plan "Project description"
/mega:approve
/mega:status # Monitor progress
# Terminal 2: Feature 1 work
cd .worktree/feature-auth
/approve # Approve PRD
# ... stories execute ...
# Terminal 3: Feature 2 work (parallel!)
cd .worktree/feature-products
/approve # Approve PRD
# ... stories execute ...
# Terminal 1: After all complete
/mega:complete
Mega Plan orchestrates multiple hybrid-ralph workflows:
| Component | Mega Plan | Hybrid Ralph |
|---|---|---|
| Scope | Project-level | Feature-level |
| Unit | Features | Stories |
| Files | mega-plan.json | prd.json |
| Findings | mega-findings.md (shared) | findings.md (per-feature) |
| Worktrees | Creates for features | Works within worktree |
| Merge | All features → target | N/A (handled by mega) |
Generates mega-plan from project descriptions.
# Validate mega-plan
uv run python mega_generator.py validate
# Show execution batches
uv run python mega_generator.py batches
# Show progress
uv run python mega_generator.py progress
Thread-safe state management.
# Read mega-plan
uv run python mega_state.py read-plan
# Read status
uv run python mega_state.py read-status
# Sync from worktrees
uv run python mega_state.py sync-worktrees
Orchestrates feature execution.
# Show execution plan
uv run python feature_orchestrator.py plan
# Show status
uv run python feature_orchestrator.py status
Coordinates final merge.
# Verify all complete
uv run python merge_coordinator.py verify
# Show merge plan
uv run python merge_coordinator.py plan
# Complete (merge & cleanup)
uv run python merge_coordinator.py complete
/mega:status regularly to track executionError: Worktree already exists
Solution: Remove stale worktree or use different feature name.
Error: Merge conflict in feature-001
Solution:
/mega:completeError: Incomplete features: feature-002, feature-003
Solution:
/mega:status for details/mega:completenpx claudepluginhub taoidle/plan-cascade --plugin plan-cascadeConducts interactive requirements gathering, researches codebases, creates PRDs, and generates development plans with tasks and sprints. Loads specs from Markdown, YAML, JSON, TXT, PDF files.
Generates atomic PLAN.md files for hierarchical project planning in solo agentic dev with Claude. Covers briefs, roadmaps, phases; includes tasks, verification, checkpoints, success criteria.