| 1 | --- |
| 2 | name: deslop |
| 3 | description: Remove AI-generated code slop and clean up code style |
| 4 | --- |
| 5 | |
| 6 | # Remove AI code slop |
| 7 | |
| 8 | Check the diff against main and remove AI-generated slop introduced in the branch. |
| 9 | |
| 10 | ## Focus Areas |
| 11 | |
| 12 | - Extra comments that are unnecessary or inconsistent with local style |
| 13 | - Defensive checks or try/catch blocks that are abnormal for trusted code paths |
| 14 | - Casts to `any` used only to bypass type issues |
| 15 | - Deeply nested code that should be simplified with early returns |
| 16 | - Other patterns inconsistent with the file and surrounding codebase |
| 17 | |
| 18 | ## Guardrails |
| 19 | |
| 20 | - Keep behavior unchanged unless fixing a clear bug. |
| 21 | - Prefer minimal, focused edits over broad rewrites. |
| 22 | - Keep the final summary concise (1-3 sentences). |