Interactive vision planning using Socratic method...
Interactive planning tools for defining product vision, roadmap, user stories, and tasks.
Use canonical atomic docs for shared planning rules instead of restating them:
@context/blocks/docs/naming-convention.md@context/workflows/ralph/planning/subtask-spec.mdWhen this skill is invoked, check the ARGUMENTS provided:
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.
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.
docs/planning/VISION.md to understand the product vision/ralph-plan vision first"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.
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.
docs/planning/VISION.md and docs/planning/ROADMAP.md to understand the product context/ralph-plan vision and /ralph-plan roadmap first/ralph-plan stories my-milestone), use that milestone"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:
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.
/ralph-plan tasks STORY-001-auth)docs/planning/milestones/*/stories/<story-id>.md"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:
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:
tasks <story-id> --auto:MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/tasks-auto.md (relative to project root). DO NOT proceed without reading this file first - it contains the full auto-generation workflow.
/ralph-plan tasks STORY-001-auth --auto)docs/planning/milestones/*/stories/<story-id>.mdAuto mode outputs:
tasks --milestone <name> --auto:MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/tasks-milestone.md (relative to project root). DO NOT proceed without reading this file first - it contains the parallel agent orchestration workflow.
/ralph-plan tasks --milestone ralph --auto)docs/planning/milestones/<name>/stories/@context/blocks/docs/naming-convention.mdtask-generator subagents (one per story)Parallelization benefits:
tasks --file or tasks --text (alternative source):MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/tasks-from-source.md (relative to project root). DO NOT proceed without reading this file first - it contains the workflow for generating tasks from alternative sources.
--file <path> (e.g., /ralph-plan tasks --file ./spec.md)--text <string> (e.g., /ralph-plan tasks --text "Add user auth")docs/planning/tasks/Begin the session with:
"I'll generate tasks from the provided source.
Source: [file path / text description]
Let me read and analyze the source to extract requirements..."
Then follow ALL steps in the workflow file you just read.
subtasks --milestone or subtasks --story (hierarchy source):MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/subtasks-from-hierarchy.md (relative to project root). DO NOT proceed without reading this file first - it contains the parallel agent orchestration workflow.
CRITICAL - Append, Don't Overwrite: When writing subtasks.json, use appendSubtasksToFile() from tools/src/commands/ralph/config.ts. This function appends new subtasks to existing files instead of overwriting them. Never use saveSubtasksFile() directly for subtask planning - it destroys existing subtasks.
--milestone <name> to process all tasks in the milestone--story <path> to process all tasks linked to that storydocs/planning/milestones/<milestone>/subtasks.json using appendSubtasksToFile()Begin the session with:
"I'll generate subtasks for all tasks in the [milestone/story].
Source: [milestone name / story path] Mode: Hierarchy-based (processing all tasks)
Let me discover the tasks and spawn parallel agents..."
Then follow ALL steps in the workflow file you just read.
subtasks with --file, --text, or --review-diary (alternative source):MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/subtasks-from-source.md (relative to project root). DO NOT proceed without reading this file first - it contains the full workflow you MUST follow.
CRITICAL - Append, Don't Overwrite: When writing subtasks.json, use appendSubtasksToFile() from tools/src/commands/ralph/config.ts. This function appends new subtasks to existing files instead of overwriting them. Never use saveSubtasksFile() directly for subtask planning - it destroys existing subtasks.
--file <path> (e.g., /ralph-plan subtasks --file ./review-findings.md)--text <string> (e.g., /ralph-plan subtasks --text "Fix array bounds check")--review-diary flag to parse logs/reviews.jsonldocs/planning/subtasks.json or specified milestone location using appendSubtasksToFile()Begin the session with:
"I'll generate subtasks from the provided source.
Source: [file path / text / review diary]
Let me read and analyze the source to extract actionable items..."
Then follow ALL steps in the workflow file you just read.
subtasks --task (single task source):MANDATORY FIRST STEP: Use the Read tool to read context/workflows/ralph/planning/subtasks-auto.md (relative to project root). DO NOT proceed without reading this file first.
CRITICAL - Append, Don't Overwrite: When writing subtasks.json, use appendSubtasksToFile() from tools/src/commands/ralph/config.ts. This function appends new subtasks to existing files instead of overwriting them. Never use saveSubtasksFile() directly for subtask planning - it destroys existing subtasks.
--task <path>Begin the session with:
"I'll generate subtasks for the specified task.
Task: [task path]
Let me read and analyze the task..."
Then follow ALL steps in the workflow file you just read.
Show the usage documentation below.
/ralph-plan <subcommand>
| 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 |
subtasks |
Generate subtasks from any source (file, text, or review diary) |
Start an interactive Socratic dialogue to help define and clarify product vision.
/ralph-plan vision
docs/planning/VISION.md when readyStart an interactive Socratic dialogue to help define product milestones and roadmap.
/ralph-plan roadmap
docs/planning/ROADMAP.md when ready/ralph-plan vision first)roadmap-auto.mdStart an interactive Socratic dialogue to help create user stories for a specific milestone.
/ralph-plan stories [milestone-name]
docs/planning/milestones/<milestone>/stories/Create technical tasks from stories. Three modes available:
/ralph-plan tasks <story-id>
What Happens:
docs/planning/tasks/aaa ralph plan tasks --milestone <name> --headless
What Happens:
docs/planning/milestones/<name>/stories/task-generator subagents (one per story)Benefits:
--story <id>--milestone <name> and one of --supervised or --headless--story and --milestoneGenerate subtasks from hierarchy (tasks in milestone/story) or alternative sources (file, text, review).
Hierarchy Sources (scope = source):
| Flag | Example | Meaning |
|---|---|---|
--milestone |
--milestone 003-ralph |
All tasks in milestone → subtasks |
--story |
--story STORY-001 |
All tasks for that story → subtasks |
--task |
--task TASK-001 |
That task → subtasks |
Alternative Sources:
| Flag | Example | Meaning |
|---|---|---|
--file |
--file ./spec.md |
File content → subtasks |
--text |
--text "Fix bug" |
Text description → subtasks |
--review-diary |
--review-diary |
Review diary findings → subtasks |
# Hierarchy sources (scope flags)
aaa ralph plan subtasks --milestone 003-ralph-workflow --headless
aaa ralph plan subtasks --story STORY-001 --headless
aaa ralph plan subtasks --task TASK-001 --headless
# Alternative sources (explicit flags)
aaa ralph plan subtasks --file ./review-findings.md
aaa ralph plan subtasks --text "Fix array bounds check"
aaa ralph plan subtasks --review-diary
# With sizing
aaa ralph plan subtasks --milestone 003-ralph --size small --headless
--size <mode> - Slice thickness: small, medium (default), largeFor hierarchy sources:
docs/planning/milestones/<milestone>/subtasks.jsonFor alternative sources:
docs/planning/subtasks.json or specified milestone location--milestone, --story) are the primary way to generate subtasksSUB-NNN and are milestone-scoped in the target queue (see @context/workflows/ralph/planning/subtask-spec.md)This skill provides the same functionality as:
aaa ralph plan vision
aaa ralph plan roadmap
aaa ralph plan stories --milestone <name>
# Tasks from hierarchy
aaa ralph plan tasks --story <story-id> # Story → tasks
aaa ralph plan tasks --milestone <name> --headless # All stories in milestone → tasks
# Tasks from alternative sources
aaa ralph plan tasks --file ./spec.md # File → tasks
aaa ralph plan tasks --text "Add auth" # Text → tasks
# Subtasks from hierarchy
aaa ralph plan subtasks --milestone <name> # All tasks in milestone → subtasks
aaa ralph plan subtasks --story <story-id> # All tasks for story → subtasks
aaa ralph plan subtasks --task <task-id> # Single task → subtasks
# Subtasks from alternative sources
aaa ralph plan subtasks --file ./spec.md # File → subtasks
aaa ralph plan subtasks --text "Fix bug" # Text → subtasks
aaa ralph plan subtasks --review-diary # Review diary → subtasks
context/workflows/ralph/planning/vision-interactive.mdcontext/workflows/ralph/planning/roadmap-interactive.mdcontext/workflows/ralph/planning/stories-interactive.mdcontext/workflows/ralph/planning/tasks-interactive.mdcontext/workflows/ralph/planning/tasks-milestone.mdcontext/workflows/ralph/planning/tasks-from-source.mdcontext/workflows/ralph/planning/subtasks-from-hierarchy.mdcontext/workflows/ralph/planning/subtasks-from-source.mdcontext/workflows/ralph/planning/subtasks-auto.md.claude/agents/task-generator.md
