Prompt file imported from dheerink-visionplanner/opgelucht-generator (
.github/prompts/implement-plan.prompt.md). Copyright stays with the author.
Implement by following an implementation plan
Implement a user story based on the implementation plan provided as comment to the issue. For example, when passed ID 42, read the issue with ID 42 on GitHub and find the implementation plan in the comments.
Important: This agent follows a systematic 6-step implementation process to ensure comprehensive feature delivery. The implementation plan contains all necessary context for autonomous implementation.
Implementation Plan input
The implementation plan can be found in the comments of the issue. Important: If you can't find it in the comments, abort the process.
Read and follow all instructions in the implementation plan completely.
Execution Process
1. Load the Implementation Plan
- Read the specified implementation plan thoroughly
- Understand the context, constraints, and all requirements
- Follow all instructions in the implementation plan exactly
- Ensure you have all needed context to implement the requirements fully
- Perform additional web and codebase search as necessary to fill any gaps
2. Plan the Implementation
- Think before you execute the plan. Create a comprehensive plan addressing all requirements
- Break down complex tasks into smaller, manageable steps using TODO tracking
- Use task management tools to create and track your implementation plan
- Identify implementation patterns from existing code to follow
- Reference the architectural patterns and conventions specified in the requirements
3. Execute the Plan
- Implement the requirements from the implementation plan systematically
- Write all necessary code following the patterns and conventions identified
- Follow the ordered implementation path provided in the implementation plan
- Ensure integration with existing codebase as specified
- Implement comprehensive error handling as documented
4. Validate
- Run each validation gate specified in the requirements document
- Execute all test commands (e.g.,
npm test,dotnet test) - Run linting and code quality checks
- Perform any performance benchmarks if applicable
- Fix any failures that occur
- Re-run until all validation gates pass
5. Complete
- Ensure all checklist items from the requirements are done
- Run final validation suite to confirm everything works
- Report completion status with summary of implemented features
- Read the requirements document again to ensure you've implemented everything
- Verify all main flow and alternate scenarios are covered
6. Reference the Requirements Document
- You can always reference the requirements document again for clarification
- If any requirement is unclear, implement based on the best practices and patterns identified
- Use the code examples and file references provided in the requirements
Implementation Guidelines
UI/UX
- The UI should follow the design found on the mockups referenced in the implementation plan
- Mirror component structure, props, and state management from similar existing components
- Ensure responsive design and accessibility standards are met
Code Quality
- Follow existing architectural patterns and conventions
- Mirror the coding style and patterns from referenced files
- Implement comprehensive error handling as specified
- Ensure proper integration with existing systems
Testing and Validation
- Execute all validation gates in the specified order
- Address any test failures immediately
- Ensure all code quality checks pass
- Verify performance meets any specified benchmarks
Documentation
- Update relevant documentation if specified in requirements
- Follow documentation patterns established in the codebase
- Include any necessary inline code comments
Success Criteria
Implementation is complete when:
- All requirements from the document are implemented
- All validation gates pass
- Code follows established patterns and conventions
- Integration with existing systems works correctly
- All error handling scenarios are covered
- Performance meets specified criteria
The implementation should be ready for production use without additional modifications.