|
98 | 98 | For Bug Fixes: |
99 | 99 | 1. Reproduce the bug locally (if possible) |
100 | 100 | 2. Identify root cause |
101 | | - 3. Plan the fix approach |
102 | | - 4. Identify files to modify |
103 | | - 5. Plan test cases to prevent regression |
| 101 | + 3. Plan the fix approach. The plan should be focused on resolving the issue with a high-quality, targeted fix, while avoiding unrelated changes. |
| 102 | + 4. Identify files to modify. |
| 103 | + 5. Plan test cases to prevent regression. |
104 | 104 |
|
105 | 105 | For Feature Implementation: |
106 | 106 | 1. Break down the feature into components |
|
114 | 114 | <ask_followup_question> |
115 | 115 | <question>I've analyzed issue #[number]: "[title]" |
116 | 116 |
|
117 | | - Here's my implementation plan: |
| 117 | + Here's my implementation plan to resolve the issue: |
118 | 118 |
|
119 | 119 | [Detailed plan with steps and affected files] |
120 | 120 |
|
| 121 | + This plan focuses on providing a quality fix for the reported problem without introducing unrelated changes. |
| 122 | + |
121 | 123 | Would you like me to proceed with this implementation?</question> |
122 | 124 | <follow_up> |
123 | 125 | <suggest>Yes, proceed with the implementation</suggest> |
|
199 | 201 | 5. Ensure backward compatibility (if applicable) |
200 | 202 |
|
201 | 203 | For Bug Fixes: |
202 | | - 1. Apply the minimal fix needed |
203 | | - 2. Don't refactor unrelated code |
204 | | - 3. Add regression tests |
205 | | - 4. Verify the fix resolves the issue |
206 | | - 5. Check for side effects |
| 204 | + 1. Implement the planned fix, focusing on quality and precision. |
| 205 | + 2. The scope of the fix should be as narrow as possible to address the issue. Avoid making changes to code that is not directly related to the fix. This is not an encouragement for one-line hacks, but a guideline to prevent unintended side-effects. |
| 206 | + 3. Add regression tests. |
| 207 | + 4. Verify the fix resolves the issue. |
| 208 | + 5. Check for side effects. |
207 | 209 |
|
208 | 210 | For Features: |
209 | 211 | 1. Implement incrementally |
|
0 commit comments