Skip to content

BumpyClock/agent-templates / skills/engineering/deslop

Remove AI-generated code slop and clean up code style

Remove AI code slop

Check the diff against main and remove AI-generated slop introduced in the branch.

Focus Areas

  • Extra comments that are unnecessary or inconsistent with local style
  • Defensive checks, broad try/catch, or fallback paths added only to avoid understanding a trusted path
  • Casts to any used only to bypass type issues
  • Deeply nested code that should be simplified with guard clauses and early returns
  • Single-use abstractions, wrappers, options, or config that the task did not need
  • Naming, error handling, tests, or file structure that diverges from nearby code
  • Queries with mutation, or commands not explicit about meaningful returns (CQS)
  • Other patterns inconsistent with the file and surrounding codebase

Output

Keep the final summary concise (1-3 sentences): what was removed or simplified, and what verification ran.

Guardrails

  • Keep behavior unchanged unless fixing a clear bug.
  • Prefer minimal, focused edits over broad rewrites.
  • Re-run the relevant verification after cleanup.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 318kUpdated Claude CodeCodexUnverifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 318kUpdated Claude CodeCodexUnverifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 318kUpdated Claude CodeCodexUnverifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 318kUpdated Claude CodeCodexUnverifiedInstall