approve
Approve the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story,…
Auto-detect and resume any interrupted Plan Cascade task. Detects mega-plan, hybrid-worktree, or hybrid-auto context and routes to the appropriate resume command.
> /plugin marketplace add Taoidle/plan-cascade > /plugin install plan-cascade@plan-cascade
How it fires
How this command gets triggered: by you, by Claude, or both.
/resumeContext preview
What this command does when you run it.
Auto-detect and resume any interrupted Plan Cascade task. Detects mega-plan, hybrid-worktree, or hybrid-auto context and routes to the appropriate resume command.
description: "Auto-detect and resume any interrupted Plan Cascade task. Detects mega-plan, hybrid-worktree, or hybrid-auto context and routes to the appropriate resume command."
Automatically detect and resume any interrupted Plan Cascade task.
This command works with both new and legacy path storage modes and auto-detects which is active:
Files are stored in user data directory:
Detection checks:
Files in project root:
The command scans both locations for maximum compatibility.
**To avoid command confirmation prompts:**
1. **Use Read tool for file reading** - NEVER use `cat` via Bash 2. **Use Glob tool for finding files** - NEVER use `ls` or `find` via Bash 3. **Only use Bash for git commands**
Check for various planning files to determine what type of task was interrupted.
# Get mega-plan path from PathResolver
MEGA_PLAN_PATH = uv run python -c "from plan_cascade.state.path_resolver import PathResolver; from pathlib import Path; print(PathResolver(Path.cwd()).get_mega_plan_path())"
Use Read tool to check if mega-plan.json exists:
Read(MEGA_PLAN_PATH)
# Also check legacy location if different
If file not found and MEGA_PLAN_PATH != "mega-plan.json":
Read("mega-plan.json")
If file exists and is valid JSON:
CONTEXT = "mega-plan"
Extract: goal, target_branch, features countUse Read tool to check for worktree config:
Read(".planning-config.json")
If file exists and mode = "hybrid":
CONTEXT = "hybrid-worktree"
Extract: task_name, target_branch# Get worktree base directory from PathResolver
WORKTREE_BASE = uv run python -c "from plan_cascade.state.path_resolver import PathResolver; from pathlib import Path; print(PathResolver(Path.cwd()).get_worktree_dir())"
Use Glob tool to find worktrees in new mode location:
Glob("{WORKTREE_BASE}/*/.planning-config.json")
Glob("{WORKTREE_BASE}/*/prd.json")
# Also check legacy location if different
If WORKTREE_BASE != ".worktree":
Glob(".worktree/*/.planning-config.json")
Glob(".worktree/*/prd.json")
If any worktrees found:
CONTEXT = "has-worktrees"
List all found worktrees# Get PRD path from PathResolver
PRD_PATH = uv run python -c "from plan_cascade.state.path_resolver import PathResolver; from pathlib import Path; print(PathResolver(Path.cwd()).get_prd_path())"
Use Read tool to check for PRD:
Read(PRD_PATH)
# Also check legacy location if different
If file not found and PRD_PATH != "prd.json":
Read("prd.json")
If file exists and has stories:
CONTEXT = "hybrid-auto"
Extract: goal, stories countIf none of the above: CONTEXT = "none"
============================================================
PLAN CASCADE - RESUME DETECTION
============================================================
{Based on CONTEXT, show what was found}
============================================================Detected: MEGA PLAN
Project: {goal}
Target Branch: {target_branch}
Features: {count}
Status file: .mega-status.json {exists/missing}
Worktrees: {list any in .worktree/}
→ Will route to: /plan-cascade:mega-resume --auto-prdDetected: HYBRID WORKTREE
Task: {task_name}
Target Branch: {target_branch}
PRD: {exists/missing}
Current directory is a worktree.
→ Will route to: /plan-cascade:hybrid-resume --autoDetected: WORKTREES EXIST (but not currently in one)
Found worktrees:
- .worktree/{name1}/ (PRD: {exists/missing})
- .worktree/{name2}/ (PRD: {exists/missing})
Options:
1. Resume mega-plan (if mega-plan.json exists)
2. Navigate to a specific worktree and resume
→ Checking for mega-plan.json...Detected: HYBRID AUTO (regular directory)
Goal: {goal}
Stories: {total} ({complete} complete, {pending} pending)
→ Will route to: /plan-cascade:hybrid-resume --autoNo interrupted task detected.
Checked for (new mode paths):
✗ {MEGA_PLAN_PATH} (not found)
✗ .planning-config.json (not found)
✗ {WORKTREE_BASE}/ directory (not found or empty)
✗ {PRD_PATH} (not found)
Also checked legacy locations:
✗ mega-plan.json (not found)
✗ .worktree/ directory (not found or empty)
✗ prd.json (not found)
To start a new task:
/plan-cascade:auto "your task description"**CRITICAL: You MUST use the Skill tool to invoke resume commands. DO NOT attempt to execute the resume logic yourself - let the specialized skill handle it.**
Based on detected context, automatically invoke the correct resume command:
Display:
Routing to mega-resume...
**MANDATORY: Use the Skill tool to invoke the mega-resume command:**
Skill(skill="plan-cascade:mega-resume", args="--auto-prd")
**DO NOT try to resume the mega-plan yourself. The mega-resume skill will handle it.**
Display:
Routing to hybrid-resume...
**MANDATORY: Use the Skill tool to invoke the hybrid-resume command:**
Skill(skill="plan-cascade:hybrid-resume", args="--auto")
**DO NOT try to resume the hybrid task
AI-Powered Cascading Development Framework Transform complex projects into parallel executable tasks with intelligent decomposition and multi-provider execution Why Plan Cascade? • Product Editions • Quick Start • Architecture
Repo: Taoidle/plan-cascade
Approve the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story,…
AI auto strategy executor. Analyzes task and automatically selects and executes the best strategy: direct execution, hybrid-auto PRD generation,…
Check and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidentally committed to version control.
Complete a worktree task. Verifies all phases are complete, commits code changes (excluding planning files), merges to target branch, and removes worktree. Can…
Show execution status dashboard. Usage: /plan-cascade:dashboard [--verbose|-v] [--json]
Generate a technical design document. Auto-detects level: project-level from mega-plan.json, or feature-level from prd.json. Provides architectural context for…