Remove AI code slop
Defines a rule for an AI coding assistant to strip boilerplate comments, unnecessary error handling, type casts, and style inconsistencies from code files.
What this file does
Defines a rule for an AI coding assistant to strip boilerplate comments, unnecessary error handling, type casts, and style inconsistencies from code files.
When to use it
- Reviewing a PR that contains AI-generated code
- Cleaning up a file after using an AI code generator
- Enforcing consistent code style across a team
- Auditing a codebase for common AI slop patterns
Remove AI code slop
Check the given files and remove all AI generated slop.
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
Report at the end with only a 1-3 sentence summary of what you changed
What's inside
One rule with a description and four categories of AI slop to remove, plus a reporting instruction.
Change this for your project
- Replace
Remove AI code slopwith your own rule name if needed - Adjust the summary length from
1-3 sentenceto your preferred format
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Related Documents
dbt Core
Defines a complete dbt project setup with layered architecture, SQL style, Jinja best practices, and CI/CD workflow guidance.
HarmonyOS 主题与样式 - Cursor Rules
Defines HarmonyOS theming rules for dark/light mode, page brightness, and screen-on control with code examples.
Cursor Development Environment
Documents a Docker-based dev container setup with test commands and OpenClaw agent configuration for the ClawDrive project.
Journey from Concept to Code: Transforming Cursor into a Devin-like AI Assistant
Documents the creation of aicode.cursorrules, a set of rules that turns Cursor/Windsurf into a Devin-like AI assistant with automated planning and self-evolution.