# Remove AI Slop

> Remove code slop. Use when cleaning up AI-generated code.

- Skill: `latencytdh/remove-ai-slop` (Agent Skill)
- Install (CLI): `npx skillmds@latest add latencytdh/remove-ai-slop`
- Raw SKILL.md: https://api.skillmd.com/api/skills/latencytdh/remove-ai-slop/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: LatencyTDH (https://skillmd.com/u/latencytdh)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/latencytdh/remove-ai-slop

---


Check the changes you've made in this session, and remove all AI generated slop introduced.

This includes:

- Extra comments that a human wouldn't add or is inconsistent with the rest of the file (useful doc comments are good to keep)
- 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
- Variables that are only used a single time right after declaration, preferring inlining the rhs (if inlining isn't too messy).
- Any other style that is inconsistent with the file

Report at the end with only a 1-3 sentence summary of what you changed

