How this skill is triggered — by the user, by Claude, or both
Slash command
/ralph-sandbox:plan-prdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide a planning session and create a comprehensive PRD item.
Guide a planning session and create a comprehensive PRD item.
If there are multiple plan directories under plans/, ask which plan this PRD item is for.
If the user hasn't specified and multiple exist, use AskUserQuestion to clarify.
If only one plan exists, use that one automatically.
Before making any changes:
plans/<plan>/learnings.md for prior decisions and gotchasWrite your plan to .claude/plans/current-prd-draft.md. Include:
Iterate with the user until they're satisfied with the plan.
When the user approves the plan, format it as a PRD item with this structure:
{
"category": "<use existing categories as guide (foundation, auth, integration, bugfix, performance, testing, refactor, styling, mocks, tooling) - prefer general categories, new ones can be added if needed>",
"description": "<brief description of the feature/fix>",
"requiredPackages": ["<package-name>"],
"context": {
"problem": "<what problem this solves>",
"solution": "<how it solves it>",
"benefit": "<why this matters>"
},
"filesToModify": [
"<file path> - <what changes>"
],
"implementation": {
"<file or component>": {
"<aspect>": "<details>",
"code": "<code snippet if helpful>"
}
},
"steps": [
"<detailed step 1>",
"<detailed step 2 with line numbers if known>"
],
"passes": false
}
priority field unless the user explicitly requests itPRD items are consumed by ralph.sh which runs Claude autonomously to implement features. The PRD must be self-contained and unambiguous for automated implementation.
passes: falsebun run test:all (typecheck, lint, unit tests, E2E, build)passes: true and commits<promise>FEATURE_COMPLETE</promise> when done"requiredPackages": ["@tanstack/react-query", "zod"].ts files: "Add unit tests in src/tests/.test.ts".tsx files: "Add E2E tests in e2e/.spec.ts"Check learnings.md for similar features. If a past session solved a related problem, reference the learnings. Example: "Similar to Session 47 approach for formatMetricValue"
Append the PRD item to plans/<plan-name>/prd.json.
After adding the PRD item, ask the user: "PRD item added. Would you like me to commit this update?"
If yes, commit using user's preferred commit message conventions.
npx claudepluginhub braddenver/ralph-sandboxGenerates structured Product Requirements Documents via interview, codebase research using Explore/librarian, planning, and approval workflow. Triggers on '/ralph-plan <topic>', 'create prd', 'generate prd', 'plan this'.
Generates Product Requirements Documents (PRDs) for new features via phased approach: discovery, codebase exploration with agents, clarifying questions. Useful for feature planning or project starts.
Generates a structured Product Requirements Document (PRD) from feature descriptions. Analyzes codebase (package.json, configs, README), processes references, asks clarifying questions, saves to .plans/. Use for new feature planning.