Pdd

From mikeyobrien/rho · View interactive version

Pdd is an AI agent skill from the GitHub repository mikeyobrien/rho. Transform a rough idea into a detailed design document and implementation plan.

How to use this skill

Skill file

Prompt-Driven Development

Overview

This sop guides you through the process of transforming a rough idea into a detailed design document with an implementation plan and todo list. It follows the Prompt-Driven Development methodology to systematically refine your idea, conduct necessary research, create a comprehensive design, and develop an actionable implementation plan. The process is designed to be iterative, allowing movement between requirements clarification and research as needed.

Parameters

Constraints for parameter acquisition:

Steps

1. Create Project Structure

Set up a directory structure to organize all artifacts created during the process.

Constraints:

2. Initial Process Planning

Determine the initial approach and sequence for requirements clarification and research.

Constraints:

3. Requirements Clarification

Guide the user through a series of questions to refine the initial idea and develop a thorough specification.

Constraints:

1. Formulate a single question

2. Append the question to {project_dir}/idea-honing.md

3. Present the question to the user in the conversation

4. Wait for the user's complete response, which may require brief back-and-forth dialogue across multiple turns.

5. Once you have their complete response, append the user's answer (or final decision) to {project_dir}/idea-honing.md

6. Only then proceed to formulating the next question

4. Research Relevant Information

Conduct research on relevant technologies, libraries, or existing code that could inform the design, while collaborating with the user for guidance.

Constraints:

5. Iteration Checkpoint

Determine if further requirements clarification or research is needed before proceeding to design.

Constraints:

6. Create Detailed Design

Develop a comprehensive design document based on the requirements and research.

Constraints:

7. Develop Implementation Plan

Create a structured implementation plan with a series of steps for implementing the design.

Constraints:

```

Convert the design into a series of implementation steps that will build each component in a test-driven manner following agile best practices. Each step must result in a working, demoable increment of functionality. Prioritize best practices, incremental progress, and early testing, ensuring no big jumps in complexity at any stage. Make sure that each step builds on the previous steps, and ends with wiring things together. There should be no hanging or orphaned code that isn't integrated into a previous step.

```

8. Summarize and Present Results

Provide a summary of all artifacts created and next steps.

Constraints:

Examples

Example Input

Rough idea: I want to build a feature for our team's internal tool that allows users to create and manage templates for common documents we produce. Users should be able to create, edit, and share templates, as well as use them to generate new documents with custom fields.

Project name: template-feature

Example Output

# Research Phase Interaction

Based on your requirements, I've identified several areas that would benefit from research:

1. **Existing template solutions** - Understanding what's already available
2. **Storage and versioning approaches** - How to handle template versions and sharing
3. **Custom field validation patterns** - Best practices for dynamic field validation

I notice you have several additional MCP search tools available beyond the standard ones, including 'peccy web search' and other external search capabilities. Should I incorporate these additional search tools into the research process for broader coverage of template management solutions and industry best practices?

---

# Project Summary

I've completed the transformation of your rough idea into a detailed design with an implementation plan. Here's what was created:

## Directory Structure
- .agents/planning/template-feature/
  - rough-idea.md (your initial concept)
  - idea-honing.md (our Q&A requirements clarification)
  - research/
    - existing-templates.md
    - storage-options.md
    - external-solutions.md
  - design/
    - detailed-design.md
  - implementation/
    - plan.md (includes implementation checklist)
  - summary.md (this document)

## Key Design Elements
- Template management system with CRUD operations
- Role-based access control for sharing
- Versioning system for templates
- Custom fields with validation
- Document generation engine

## Implementation Approach
The implementation plan breaks down the work into 12 incremental steps, starting with core data models and building up to the complete feature set.

## Next Steps
1. Review the detailed design document at docs/template-feature/design/detailed-design.md
2. Check the implementation plan and checklist at docs/template-feature/implementation/plan.md
3. Begin implementation following the checklist in the implementation plan

Would you like me to explain any specific part of the design or implementation plan in more detail?

Troubleshooting

Requirements Clarification Stalls

If the requirements clarification process seems to be going in circles or not making progress:

Research Limitations

If you cannot access needed information:

Design Complexity

If the design becomes too complex or unwieldy:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.