Load an existing PRD file and enter review mode. Supports JSON format with stories, priorities, dependencies, and acceptance criteria.
Loads and validates existing product requirement documents to prepare for structured project execution.
/plugin marketplace add taoidle/plan-cascade/plugin install plan-cascade@plan-cascadeYou are loading an existing Product Requirements Document (PRD) from a file.
Get the PRD path from arguments:
PRD_PATH="{{args|first arg or 'prd.json'}}"
if [ ! -f "$PRD_PATH" ]; then
echo "ERROR: PRD file not found: $PRD_PATH"
echo "Please provide a valid path to a prd.json file"
exit 1
fi
Read the PRD file and validate structure:
Required fields:
metadata.descriptiongoalstories arrayEach story must have:
idtitledescriptionpriority (high/medium/low)dependencies (array of story IDs)acceptance_criteria (array)If validation fails, show specific errors and suggest fixes.
If the PRD is not already prd.json in the current directory:
if [ "$PRD_PATH" != "prd.json" ]; then
cp "$PRD_PATH" prd.json
echo "Copied PRD to prd.json"
fi
Create findings.md if it doesn't exist:
if [ ! -f "findings.md" ]; then
cat > findings.md << 'EOF'
# Findings
Research and discovery notes will be accumulated here.
Use <!-- @tags: story-id --> to tag sections for specific stories.
EOF
fi
Create progress.txt if it doesn't exist:
if [ ! -f "progress.txt" ]; then
cat > progress.txt << 'EOF'
# Progress Log
Story execution progress will be tracked here.
EOF
fi
Show a comprehensive PRD review:
============================================================
PRD REVIEW
============================================================
## Goal
{goal from PRD}
## Objectives
- {objective 1}
- {objective 2}
...
## Stories Summary
Total Stories: {count}
By Priority:
High: {count}
Medium: {count}
Low: {count}
## All Stories
### story-001: {title} [High]
Description: {description}
Dependencies: {none or list}
Acceptance Criteria:
- {criterion 1}
- {criterion 2}
...
### story-002: {title} [Medium]
...
## Execution Batches
Batch 1 (parallel):
- story-001
- story-002
Batch 2:
- story-003 (depends on: story-001)
...
============================================================
PRD loaded successfully!
Next steps:
- /plan-cascade:approve - Approve PRD and start execution
- /plan-cascade:edit - Edit PRD manually
- /plan-cascade:show-dependencies - View dependency graph