AgentSkillsCN

deslop

从当前分支中移除由AI生成的冗余代码。在编写代码后使用此功能,可清理不必要的注释、防御性检查以及风格不统一的代码。

SKILL.md
--- frontmatter
name: deslop
description: Remove AI-generated code slop from the current branch. Use after writing code to clean up unnecessary comments, defensive checks, and inconsistent style.

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
  • Unnecessary type annotations on obvious types
  • Over-verbose variable names
  • Redundant null checks when TypeScript already guarantees non-null
  • Console.log statements left for debugging
  • Commented-out code blocks

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