Back to .md Directory

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.

May 2, 2026
0 downloads
2 views
ai
View source

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 slop with your own rule name if needed
  • Adjust the summary length from 1-3 sentence to your preferred format

Where it goes

Keep it in your repository where the agent or team that needs it will read it.

Related Documents