A SOP for transforming a rough idea into a detailed design document with an implementation plan and todo list using Prompt-Driven Development methodology.
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.
Constraints for parameter acquisition:
Set up a directory structure to organize all artifacts created during the process.
Constraints:
{project_dir}/**/*.mdDetermine the initial approach and sequence for requirements clarification and research.
Constraints:
Guide the user through a series of questions to refine the initial idea and develop a thorough specification.
Constraints:
Conduct research on relevant technologies, libraries, or existing code that could inform the design, while collaborating with the user for guidance.
Constraints:
Determine if further requirements clarification or research is needed before proceeding to design.
Constraints:
Develop a comprehensive design document based on the requirements and research.
Constraints:
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.
Provide a summary of all artifacts created and next steps.
Constraints:
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
# 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?
If the requirements clarification process seems to be going in circles or not making progress:
If you cannot access needed information:
If the design becomes too complex or unwieldy: