Refine PR Prompt Format
Structure your feedback using critical directives:Decision Matrix
Apply this matrix to determine whether to refine or close:| Criteria | Refine | Close & Restart |
|---|---|---|
| Scope alignment | Changes are within original request scope | Changes require scope expansion |
| Architecture | Approach and structure are sound | Fundamental design flaws |
| Gap severity | Specific, addressable implementation gaps | Critical gaps or broken core functionality |
| Iteration efficiency | Fixes achievable through targeted refinements | Complete rework needed |
Refinement Workflow
Identify gaps
Review the generated code and document specific issues:
- File locations - Exact paths and line numbers
- Current behavior - What the code does now
- Required behavior - What it should do
- Acceptance criteria - How to verify the fix
Best Practices
Be specific
Be specific
- Reference exact file paths and line numbers
- Describe concrete changes, not vague improvements
- Provide measurable success criteria
Maintain scope discipline
Maintain scope discipline
- Only request changes within original requirements
- Flag scope creep as separate tasks
- Use multiple refinements as needed to fill gaps
Reference patterns
Reference patterns
- Point to existing code examples in your codebase
- Specify architectural patterns to follow
- Maintain consistency with current implementation
Submodule PRs During Refinement
See Merge - Projects with Submodules for the correct merge order.When to Close Instead
Choose Close over Refine when:- Architectural approach is fundamentally wrong
- Scope has expanded beyond original request
- Starting fresh would be faster than iterative fixes
Merge Pull Request
Criteria for accepting generated code
Close Pull Request
When to discard and restart