Ralph Plan
Interactive planning tools for defining product vision, roadmap, user stories, and tasks.
Execution Instructions
When this skill is invoked, check the ARGUMENTS provided:
If argument is vision:
MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/vision-interactive.md (relative to project root). DO NOT proceed without reading this file first - it contains the full Socratic workflow you MUST follow.
After reading the workflow file, begin the session with:
"Let's work on clarifying your product vision. I'll ask questions to help you articulate what you're building and why.
To start: What problem are you trying to solve, and for whom?
(You can say 'done' at any point when you feel we've covered enough. I'll offer to save our progress incrementally as we go.)"
Then follow ALL phases in the workflow file you just read.
If argument is roadmap:
MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/roadmap-interactive.md (relative to project root). DO NOT proceed without reading this file first - it contains the full Socratic workflow with ALL phases you MUST follow.
- First, read
docs/planning/VISION.mdto understand the product vision - If no VISION.md exists, inform the user and suggest they run
/ralph-plan visionfirst - Begin the session with:
"Let's work on your product roadmap. I've read your vision document and I'll ask questions to help translate it into actionable milestones.
To start: What's the most important thing users should be able to do in your first release?
(You can say 'done' at any point when you feel we've covered enough. I'll offer to save our progress incrementally as we define milestones.)"
Then follow ALL phases in the workflow file you just read. Do NOT skip phases or give shallow output.
If argument is stories (with optional milestone name):
MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/stories-interactive.md (relative to project root). DO NOT proceed without reading this file first - it contains the full Socratic workflow you MUST follow.
- First, read
docs/planning/VISION.mdanddocs/planning/ROADMAP.mdto understand the product context - If no VISION.md or ROADMAP.md exists, inform the user and suggest they run
/ralph-plan visionand/ralph-plan roadmapfirst - If a milestone name was provided as a second argument (e.g.,
/ralph-plan stories my-milestone), use that milestone - If no milestone was provided, ask the user which milestone they want to create stories for
- Begin the session with:
"Let's create user stories for the [milestone] milestone.
I've reviewed the roadmap - this milestone focuses on: [list key deliverables from ROADMAP.md]
To start: Who are the primary users that will benefit from these capabilities? What are they trying to accomplish?
(You can say 'done' at any point when you feel we've covered enough, or ask me to save a story when we've defined it well.)"
Then follow ALL phases in the workflow file you just read.
IMPORTANT - Incremental Saving: Save each story as it's well-defined:
- After each story is discussed and refined, offer to write it to a file
- Don't batch all stories at the end
- This protects against crashes/disconnects
If argument is tasks (with required story ID):
MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/tasks-interactive.md (relative to project root). DO NOT proceed without reading this file first - it contains the full Socratic workflow you MUST follow.
- A story ID must be provided as the second argument (e.g.,
/ralph-plan tasks STORY-001-auth) - If no story ID is provided, ask the user which story to create tasks for and list available stories
- Find the story file in
docs/planning/milestones/*/stories/<story-id>.md - If the story is not found, list available stories and ask for clarification
- Read the story file to understand the user outcomes
- Explore the codebase to understand existing patterns relevant to the story
- Begin the session with:
"Let's create technical tasks for story [story-id].
I've read the story - it focuses on: [brief summary of narrative and key acceptance criteria].
Let me also explore the codebase to understand existing patterns..."
[Read relevant files/directories based on the story context]
"Based on the story and the codebase, here's what I see:
- [relevant existing code/patterns]
- [dependencies/integrations involved]
To start: Looking at the acceptance criteria, which capability should we tackle first? What's your thinking on the technical approach?
(You can say 'done' at any point when you feel we've covered enough, or ask me to save a task when we've defined it well.)"
Then follow ALL phases in the workflow file you just read.
IMPORTANT - Incremental Saving: Save each task as it's well-defined:
- After each task is discussed and refined, offer to write it to a file
- Don't batch all tasks at the end
- This protects against crashes/disconnects
If no argument or unknown argument:
Show the usage documentation below.
Usage
/ralph-plan <subcommand>
Subcommands
| Subcommand | Description |
|---|---|
vision |
Start interactive vision planning session |
roadmap |
Start interactive roadmap planning session |
stories |
Start interactive stories planning session for a milestone |
tasks |
Start interactive tasks planning session for a story |
Vision Planning
Start an interactive Socratic dialogue to help define and clarify product vision.
Invocation
/ralph-plan vision
What Happens
- Begins a multi-turn conversation using the Socratic method
- Guides you through exploring:
- Product purpose and problem being solved
- Target users using Jobs To Be Done framework
- Key capabilities and differentiators
- Current state vs future vision
- Creates or updates
docs/planning/VISION.mdwhen ready
Important Notes
- This is interactive only - no auto mode exists for vision planning
- Vision planning requires human insight and decision-making
- You control the pace and can exit anytime by saying "done"
- The session can span multiple turns as needed
Roadmap Planning
Start an interactive Socratic dialogue to help define product milestones and roadmap.
Invocation
/ralph-plan roadmap
What Happens
- Reads your existing VISION.md document (if it exists)
- Begins a multi-turn conversation using the Socratic method
- Guides you through exploring:
- Scope and priority for first release
- Tradeoffs and hard decisions
- Dependency mapping between features
- Milestone definition with outcomes
- Creates or updates
docs/planning/ROADMAP.mdwhen ready
Important Notes
- Requires VISION.md to exist (run
/ralph-plan visionfirst) - Interactive mode available, auto mode available via
roadmap-auto.md - Milestones use outcome-based names, not version numbers
- No time estimates - focus on sequence and dependencies
- You control the pace and can exit anytime by saying "done"
Stories Planning
Start an interactive Socratic dialogue to help create user stories for a specific milestone.
Invocation
/ralph-plan stories [milestone-name]
What Happens
- Reads your existing VISION.md and ROADMAP.md documents
- If a milestone name is provided, uses that milestone
- If no milestone is provided, asks which milestone to create stories for
- Begins a multi-turn conversation using Socratic method with JTBD framework
- Guides you through exploring:
- Primary users and their context
- Jobs to be done (functional, emotional, social)
- Story scope and boundaries
- Priority and sequencing
- Tradeoffs and decisions
- Acceptance criteria
- Creates story files in
docs/planning/milestones/<milestone>/stories/
Important Notes
- Requires VISION.md and ROADMAP.md to exist (run vision and roadmap planning first)
- Uses Jobs To Be Done (JTBD) framework for user-centered stories
- Stories focus on user outcomes, not technical implementation
- You control the pace and can exit anytime by saying "done"
- Can save stories incrementally during the session
Tasks Planning
Create technical tasks from stories. Two modes available:
Single Story Mode (Interactive or Auto)
/ralph-plan tasks <story-id>
What Happens:
- Reads the specified story file to understand user outcomes
- Explores the codebase to understand existing patterns relevant to the story
- Begins a multi-turn conversation using Socratic method (or auto-generates in auto mode)
- Creates task files in
docs/planning/tasks/
Milestone Mode (Auto Only)
aaa ralph plan tasks --milestone <name> --auto
What Happens:
- Discovers all stories in
docs/planning/milestones/<name>/stories/ - Spawns parallel
task-generatorsubagents (one per story) - Each agent analyzes its story and the codebase
- Task files are generated concurrently for all stories
- Reports summary of all generated tasks
Benefits:
- Faster: Parallel generation vs sequential
- Better quality: Smaller context per agent
- Consistent: Same patterns applied across stories
Important Notes
- Single story mode: Requires
--story <id> - Milestone mode: Requires
--milestone <name>AND--auto - Cannot combine
--storyand--milestone - Tasks are linked to their parent story for traceability
- Focus is on technical implementation, not user outcomes
- References specific files and patterns from the codebase
CLI Equivalent
This skill provides the same functionality as:
aaa ralph plan vision
aaa ralph plan roadmap
aaa ralph plan stories --milestone <name>
aaa ralph plan tasks --story <story-id> # Single story
aaa ralph plan tasks --milestone <name> --auto # All stories in milestone
References
- Vision prompt:
context/workflows/ralph/planning/vision-interactive.md - Roadmap prompt:
context/workflows/ralph/planning/roadmap-interactive.md - Stories prompt:
context/workflows/ralph/planning/stories-interactive.md - Tasks prompt:
context/workflows/ralph/planning/tasks-interactive.md - Tasks milestone prompt:
context/workflows/ralph/planning/tasks-milestone.md - Task generator agent:
.claude/agents/task-generator.md