approve
Approve the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story,…
Generate 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.
> /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.
/design-generateContext preview
What this command does when you run it.
Generate 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.
description: "Generate 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."
Generate a structured technical design document (`design_doc.json`). Auto-detects the appropriate level based on available files.
This command works with both new and legacy path storage modes:
Note: design_doc.json is a user-visible documentation file and always stays in the working directory.
┌─────────────────────────────────────────────────────────────┐
│ Level 1: Project Design (from mega-plan.json) │
│ ─────────────────────────────────────────────────────────── │
│ • Global architecture and system overview │
│ • Cross-feature components and patterns │
│ • Project-wide ADRs (architectural decisions) │
│ • Feature mappings (which patterns/decisions apply where) │
│ • Shared data models and API standards │
└─────────────────────────────────────────────────────────────┘
│
│ inheritance
▼
┌─────────────────────────────────────────────────────────────┐
│ Level 2: Feature Design (from prd.json) │
│ ─────────────────────────────────────────────────────────── │
│ • Feature-specific components │
│ • Feature-specific APIs and data models │
│ • Feature-specific ADRs (prefixed ADR-F###) │
│ • Story mappings (which components/decisions per story) │
│ • Inherits patterns/decisions from project level │
└─────────────────────────────────────────────────────────────┘**To avoid command confirmation prompts:**
1. **Use Read tool for file reading** - NEVER use `cat` via Bash 2. **Use Glob tool for file finding** - NEVER use `ls` or `find` via Bash 3. **Use Write tool for file creation**
Auto-detect based on available files (check both new mode and legacy locations):
# Get paths 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())"
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())"
# Check for mega-plan.json (new mode path first, then legacy)
If file exists at MEGA_PLAN_PATH or "mega-plan.json":
LEVEL = "project"
echo "Detected project-level context (mega-plan.json)"
Elif file exists at PRD_PATH or "prd.json":
LEVEL = "feature"
echo "Detected feature-level context (prd.json)"
Else:
ERROR: Neither mega-plan.json nor prd.json found.
Checked: {MEGA_PLAN_PATH}, mega-plan.json, {PRD_PATH}, prd.json
Generate one first:
/plan-cascade:mega-plan <description> (for project)
/plan-cascade:hybrid-auto <description> (for feature)
EXITIf LEVEL == "project":
Extract:
Based on features, identify:
{
"metadata": {
"created_at": "<ISO-8601>",
"version": "1.0.0",
"source": "ai-generated",
"level": "project",
"mega_plan_reference": "mega-plan.json"
},
"overview": {
"title": "<project goal>",
"summary": "<brief description>",
"goals": ["<goal1>", "<goal2>"],
"non_goals": ["<non-goal1>"]
},
"architecture": {
"system_overview": "<high-level architecture description>",
"components": [
{
"name": "ComponentName",
"description": "Description",
"responsibilities": ["resp1"],
"dependencies": ["OtherComponent"],
"features": ["feature-001", "feature-002"]
}
],
"data_flow": "<how data flows through the system>",
"patterns": [
{
"name": "PatternName",
"description": "What this pattern does",
"rationale": "Why we use it",
"applies_to": ["feature-001", "all"]
}
],
"infrastructure": {
"deployment": "<deployment strategy>",
"database": "<database choices>",
"cache": "<caching strategy>",
"message_queue": "<if applicable>"
}
},
"interfaces": {
"api_standards": {
"style": "RESTful",
"versioning": "URL-based (/api/v1/...)",
"authentication": "JWT Bearer tokens",
"error_format": {"code": "string", "message": "string"}
},
"shared_data_models": [
{
"name": "ModelName",
"description": "Shared across features",
"fields": {"field": "type"},
"used_by": ["feature-001", "feature-002"]
}
]
},
"decisions": [
{
"id": "ADR-001",
"title": "Decision title",
"context": "Background",
"decision": "What we decided",
"rationale": "Why",
"alternatives_considered": ["alt1"],
"status": "accepted",
"applies_to": ["feature-001", "all"]
}
],
"feature_mappings": {
"feature-001": {
"components": ["ComponentA", "ComponentB"],
"patterns": ["PatternName"],
"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]
Import an external design document (Markdown, JSON, or HTML from Confluence/Notion) and convert it to design_doc.json format for Plan Cascade integration.