Product Requirements
This section provides a structured approach to creating and refining product requirements for an AI-powered development workflow. Detailed requirements are critical for successful feature development with large language models (LLMs).
You may spend more than 30% of workflow time on requirement generation and refinement. The more time you invest in this step, the more you improve efficiency and quality of the AI-powered development process.
How to create product requirements
Prerequisites
- Prioritised feature requirements: Work with stakeholders to identify and agree on key features that align with project goals
- Advanced reasoning model: Use the most capable LLM available (like thinking models) for heavy analysis and product work
- Clear project scope: Make sure each feature is well-defined to avoid ambiguities
1. Write detailed feature description
Create a detailed markdown document describing the feature you want to implement. This may include:
- Overview and purpose of the feature
- Frontend and backend requirements
- Data model guidance
- Endpoint behaviours
- Performance expectations and constraints
Be verbose and clear about what you want - later processes will refine the detail into actionable requirements.
This is an example prompt example-product-requirements-input
2. Define the data model
Use prompt-data-model-generation to create a detailed data model based on your requirements.
Review the data model thoroughly with your team - if the data model is wrong, your app will be wrong.
3. Analyse the solution
Use prompt-product-analysis to conduct deep analysis of your requirements and data model.
This meta-analysis helps find gaps, analyse costs and benefits, and identify alternatives to reduce confirmation bias.
4. Generate API endpoints
Use prompt-api-requirements to create API endpoint requirements based on your refined data model.
5. Create interface mock-ups
Develop interface mock-ups using tools like Figma, Miro, or Mural. Take screenshots of each page and thoroughly annotate expected behaviours - annotations must be visible to help the LLM understand interface requirements.
6. Create interface requirements
Upload mockup screenshots and use prompt-user-interface-requirements to generate frontend requirements following GDS standards.
7. Generate user stories
Use prompt-combined-requirements-features-stories to create the final detailed product requirements document that breaks down functionality by feature with user stories.
Alternatively, use prompt-user-story-creation to create individual user stories
8. Save requirements in repository
Save the requirements in markdown files, with supporting image files, inside your code repository so the AI Coding Assistant can reference it during development. For more information, see the Project Setup.
Guidelines
Invest time upfront: Spend substantial effort refining requirements to remove vagueness and potential misinterpretations.
Review collaboratively: Make sure all aspects are reviewed by the team and revise unclear sections. Review each output one-by-one before using it as input into the next step.
Focus on precision: Requirements must be unambiguous and correctly interpretable by LLMs.
Leverage GDS knowledge: LLMs are trained on GDS standards and will suggest compliant designs when requirements specify adherence to GDS standards.