Remove AI Slop
This prompt will remove a large number of issues commonly associated with AI-generated code. It is one of the most frequently used prompts internally at Cursor [1]
# Remove AI code slop
Check the diff against main, and remove all AI generated slop introduced in this branch.
This includes:
- Extra comments that a human wouldn't add or is inconsistent with the rest of the file
- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
- Casts to any to get around type issues
- Any other style that is inconsistent with the file
[1] https://x.com/ericzakariasson/status/1995671800643297542?s=20
No Comments