/plan-cascade:show-dependenciesfrom plan-cascade
Analyzes and displays the dependency graph for all stories in a PRD, including ASCII visual tree, critical path analysis, and detection of circular dependencies, bottlenecks, and orphan stories.
Ships in plan-cascade. Installing the plugin adds it to Claude Code.
You are displaying the dependency graph and analysis for all stories in the PRD.
PRD file location depends on the storage mode:
~/.plan-cascade/<project-id>/prd.json or in worktree directoryprd.json in project root or worktree# 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())" 2>/dev/null || echo "prd.json")
# Also check local prd.json (in worktree)
if [ -f "prd.json" ]; then
PRD_PATH="prd.json"
elif [ ! -f "$PRD_PATH" ]; then
echo "ERROR: No PRD found at: $PRD_PATH"
exit 1
fi
Read the PRD file at $PRD_PATH to get all stories and their dependencies.
Create a mapping of:
Use depth-first search to detect cycles:
For each story:
Mark as visiting
For each dependency:
If dependency is visiting → CYCLE DETECTED
If dependency not visited → recurse
Mark as visited
Find stories with:
Find stories with many dependents (threshold: 4+).
============================================================
DEPENDENCY GRAPH
============================================================
## Visual Graph
{ASCII tree showing dependencies}
Example:
story-001 (Database Schema)
│
├─── story-002 (User Registration)
│ │
│ └─── story-004 (Password Reset)
│
└─── story-003 (User Login)
│
└─── story-004 (Password Reset)
## Dependency Details
{For each story, show:
- ID and title
- Dependencies (if any)
- Depth level
- Dependents (if any)
- Type (root, intermediate, endpoint, orphan, bottleneck)
}
## Analysis
- Maximum depth: {depth} levels
- Critical path length: {count} stories
- Bottleneck stories: {list}
- Circular dependencies: {count or "none detected"}
- Orphan stories: {count or "none detected"}
============================================================
If issues detected, show them:
⚠️ Circular dependency detected:
story-001 → story-002 → story-003 → story-001
This will prevent any story from starting. Break the cycle by removing a dependency.
⚠️ Bottleneck warning:
story-001 has 5 dependents
Consider breaking this story into smaller pieces
ℹ️ Orphan story:
story-005 has no dependencies and nothing depends on it
This story may not be part of the main workflow
Using This Information:
For Parallel Execution:
Root stories (depth 0) can all run in parallel.
For Optimization:
Bottleneck stories should be kept small to avoid blocking others.
For Planning:
The critical path shows the minimum number of sequential steps.
Next steps:
- /plan-cascade:approve - See execution plan with batches
- /plan-cascade:edit - Modify dependencies
- /plan-cascade:hybrid-status - Check execution progress
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
30 commands in this plugin
/approveHybrid Ralph - Approve PRD and ExecuteApprove the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story, and monitors progress. Usage: /plan-cascade:approve [--flow <quick|standard|full>] [--tdd <off|on|auto>] [--confirm] [--no-confirm] [--agent <name>] [--impl-agent <name>] [--retry-agent <name>] [--no-verify] [--verify-agent <name>] [--no-review] [--no-fallback] [--auto-run]/autoPlan Cascade - Auto Strategy ExecutorAI auto strategy executor. Analyzes task and automatically selects and executes the best strategy: direct execution, hybrid-auto PRD generation, hybrid-worktree isolated development, or mega-plan multi-feature orchestration./check-gitignorePlan Cascade - Check and Update .gitignoreCheck and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidentally committed to version control./completePlanning with Files - Complete Worktree TaskComplete a worktree task. Verifies all phases are complete, commits code changes (excluding planning files), merges to target branch, and removes worktree. Can be run from any directory. Usage: /plan-cascade:complete [target-branch]/dashboardPlan Cascade DashboardShow execution status dashboard. Usage: /plan-cascade:dashboard [--verbose|-v] [--json]/design-generatePlan Cascade - Generate Design DocumentGenerate a technical design document. Auto-detects level: project-level from mega-plan.json, or feature-level from prd.json. Provides architectural context for story execution.npx claudepluginhub taoidle/plan-cascade --plugin plan-cascadeOther plugins' commands for the same job