ralph-plan
БесплатноБез исполняемых скриптовНе проверенStructured PRD generation with interview, research, and approval workflow. Triggers on: '/ralph-plan <topic>', 'create prd', 'generate prd', 'plan this'…
от TechDufus★ 174 звезды на GitHubОб этом скилле
Ralph Plan Skill
Structured PRD generation. Interview, research, plan, approve.
What is Ralph Plan?
Ralph Plan creates comprehensive Product Requirements Documents through a deliberate process:
- Interview Phase - Understand requirements through focused questions
- Research Phase - Analyze codebase via Explore/librarian
- Planning Phase - Generate structured plan with clear steps
- Approval Gate - User reviews, modifies, and approves the final PRD
The result is a battle-tested plan ready for implementation by any method the user chooses.
When This Skill Activates
| Category | Trigger Phrases |
|---|---|
| Start planning | /ralph-plan <topic>, create prd, generate prd, plan this |
| Check status | ralph-plan status |
| Resume | resume ralph-plan |
Workflow
Phase 1: Planning
Create a structured plan through interview and research.
Step 1: Initialize Draft
Create draft at .claude/plans/drafts/{topic-slug}.md with template:
# Planning Draft: {topic}
## Status
Phase: Interview
Started: {timestamp}
## Requirements
- [to be captured from interview]
## Decisions
- [choices made during interview]
## Research Findings
- [results from Explore/librarian]
## Open Questions
- [unanswered items]
Step 2: Interview
Conduct focused interview (3-5 questions based on complexity):
Core Questions:
- "What problem does this solve?" (understand context)
- "What's the scope - minimal viable vs complete?" (set boundaries)
- "Any constraints, non-goals, or things to avoid?" (define exclusions)
Follow-up Questions (as needed):
- Technical approach preferences
- Dependencies on other work
- Success criteria
Update draft after each answer.
Step 3: Research
Research the codebase before finalizing:
Agent: Explore
Task: Find relevant files for {topic}
Expected: List of files that will be affected
Agent: oh-my-claude:librarian
Task: Read and summarize key files
Expected: Summary of current implementation patterns
Add findings to draft under "## Research Findings".
Step 4: Generate Plan
Transform draft into structured plan with these sections:
# Plan: {topic}
## Context
[Why this plan exists, what problem it solves]
## Objectives
### Must Have
- [required outcomes]
### Must NOT
- [explicit exclusions and constraints]
## Implementation Steps
1. [Step with specific file references]
2. [Step with specific file references]
3. ...
## Files to Modify
| File | Changes |
|------|---------|
| `path/to/file.ts` | [what changes] |
## Acceptance Criteria
- [ ] [Testable criterion]
- [ ] [Testable criterion]
- [ ] [Testable criterion]
Phase 2: Approval Gate
User must review and approve the plan before finalization.
Present the Plan
- Display the complete plan summary to the user
- Use
AskUserQuestiontool for approval:
{
"questions": [{
"question": "How would you like to proceed with this PRD?",
"header": "PRD Status",
"options": [
{"label": "Approve", "description": "Finalize and save the PRD"},
{"label": "Request Changes", "description": "Modify specific sections"},
{"label": "Cancel", "description": "Abort and keep draft"}
],
"multiSelect": false
}]
}
CRITICAL: You MUST use the AskUserQuestion tool for approval. Do NOT output text prompts asking the user to "reply with" something.
Handle User Response
| User Response | Action |
|---|---|
| "Approve" | Finalize PRD (move to final location) |
| "Request Changes" | Ask what to change, update plan, re-present with AskUserQuestion |
| "Cancel" | Keep draft, do not finalize |
| "Other" (custom text) | Interpret and act accordingly, then re-prompt if needed |
Do NOT interpret ambiguous responses as approval. If unclear, re-prompt with AskUserQuestion.
On Approval
Move plan from draft to final location:
.claude/plans/drafts/{topic-slug}.md --> .claude/plans/{topic-slug}.mdDelete the draft file
Report completion:
PRD finalized at .claude/plans/{topic-slug}.md Next steps: - Review the plan at your convenience - Implement manually, or use your preferred automation - Reference the acceptance criteria to track progress
Status Checking
When user says ralph-plan status:
Ralph Plan Status
=================
**Plan:** {topic}
**Phase:** Interview | Research | Draft Complete | Awaiting Approval | Finalized
--- Plan Location ---
Draft: .claude/plans/drafts/{topic-slug}.md
Final: .claude/plans/{topic-slug}.md (if finalized)
--- Plan Contents ---
Steps: {total}
Acceptance Criteria: {total}
Files Affected: {count}
Examples
Example 1: Feature Implementation PRD
/ralph-plan implement user authentication with JWT
Interview Phase:
- Q: "What problem does this solve?"
- A: "Users need to log
Установить ralph-plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashAgentTodoWriteAskUserQuestionFAQ
Что делает скилл ralph-plan?
Structured PRD generation with interview, research, and approval workflow. Triggers on: '/ralph-plan <topic>', 'create prd', 'generate prd', 'plan this'. Creates comprehensive Product Requirements Document via interview and research.
Как установить скилл ralph-plan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ralph-plan запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic