pdd
FreeNo executable scriptsNot checkedTransforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification…
About this skill
Prompt-Driven Development
Overview
Transform a rough idea into a detailed design with an implementation plan. The process is iterative: clarify requirements, research, design, plan — moving between phases as needed.
Important Notes
These rules apply across ALL steps:
- User-driven flow: Never proceed to the next step without explicit user confirmation. At each transition, ask the user what they want to do next.
- Iterative: The user can move between requirements clarification and research at any time. Always offer this option at phase transitions.
- Record as you go: Append questions, answers, and findings to project files in real time — don't batch-write at the end.
- Mermaid diagrams: Include diagrams for architectures, data flows, and component relationships in research and design documents.
- Sources: Cite references and links in research documents when based on external materials.
- Planning only: This SOP produces planning artifacts. You MUST NOT implement code, run containers, execute scripts, or begin any implementation work. If the user wants implementation, direct them to
ralph run.
Parameters
- rough_idea (required): The initial concept or idea to develop
- project_dir (optional, default:
specs/{task_name}/): Base directory for all artifacts.{task_name}is derived as kebab-case from the idea (e.g., "build a rate limiter" →rate-limiter). Aligns with Ralph's spec-driven pipeline.
Constraints:
- You MUST ask for all required parameters upfront in a single prompt
- You MUST support multiple input methods: direct text, file path, URL
- You MUST derive
task_namefrom the rough idea as kebab-case - You MUST NOT overwrite an existing project directory — ask for a new path if it already has contents
Steps
1. Create Project Structure
Create the directory and initial files:
{project_dir}/rough-idea.md— the provided rough idea{project_dir}/requirements.md— Q&A record (initially empty){project_dir}/research/— directory for research notes
Inform the user the structure feeds into Ralph's spec-driven presets.
Gate: You MUST NOT proceed to Step 2 until the user confirms the project structure is acceptable.
2. Initial Process Planning
Ask the user their preferred starting point:
- Requirements clarification (default)
- Preliminary research on specific topics
- Provide additional context first
Gate: You MUST wait for the user to choose before proceeding. You MUST NOT automatically start requirements clarification or research without explicit user direction.
3. Requirements Clarification
Guide the user through questions to refine the idea into a thorough specification.
Constraints:
- You MUST ask ONE question at a time — do not list multiple questions
- You MUST NOT pre-populate answers or batch-write Q&A to requirements.md
- You MUST follow this cycle for each question:
- Formulate and append question to requirements.md
- Present to user, wait for complete response
- Append answer to requirements.md
- Proceed to next question
- You MUST ask the user if requirements clarification is complete before moving on
Cover edge cases, user experience, technical constraints, and success criteria. Suggest options when the user is unsure.
Gate: You MUST NOT proceed to Research or Design until the user explicitly confirms requirements clarification is complete. You MUST offer the option to conduct research if questions arise that would benefit from additional information.
4. Research
Conduct research on technologies, libraries, or existing code to inform the design.
Constraints:
- You MUST propose a research plan to the user and incorporate their suggestions
- You MUST document findings in
{project_dir}/research/as separate topic files - You MUST periodically check in with the user to share findings and confirm direction
- You MUST summarize key findings before moving on
Gate: You MUST NOT proceed to the Iteration Checkpoint until the user confirms research is sufficient. You MUST offer to return to requirements clarification if research uncovers new questions.
5. Iteration Checkpoint
Summarize the current state of requirements and research, then ask the user:
- Proceed to design?
- Return to requirements clarification?
- Conduct additional research?
Gate: You MUST NOT proceed to design without explicit user confirmation. You MUST support iterating between requirements and research as many times as needed.
6. Create Detailed Design
Create {project_dir}/design.md as a standalone document with these sections:
- Overview
- Detailed Requirements (consolidated from requirements.md)
- Architecture Overview
- Components and Interfaces
- Data Models
- Error Handling
- Acceptance Criteria (Given-When-Then format for machine verification)
- Testing Strategy
- Appendices (Technology Choices, Research Findings, Alternative Approaches)
Constraints:
- You MUST wr
Install pdd in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the pdd skill do?
Transforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification, research, design, and planning.
How do I install the pdd skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pdd skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
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…
by 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…
by 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…
by 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…
by Anthropic