金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

deslop

deslop 是面向测试与安全、效率工具、开发运维的 Agent Skill,来自 davila7/claude-code-templates。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Remove AI-generated code slop from a branch. Use when cleaning up AI-generated code, removing unnecessary comments, defensive checks, or type casts. Checks diff against main and fixes style inconsistencies.

SKILL.md

下载 MD ↓
namedeslop
descriptionRemove AI-generated code slop from a branch. Use when cleaning up AI-generated code, removing unnecessary comments, defensive checks, or type casts. Checks diff against main and fixes style inconsistencies.

Remove AI Code Slop

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

What to Remove

  • Extra comments that a human wouldn't add or are 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
  • Inline imports in Python (move to top of file with other imports)
  • Any other style that is inconsistent with the file

Process

  1. Get the diff against main: git diff main...HEAD
  2. Review each changed file for slop patterns
  3. Remove identified slop while preserving legitimate changes
  4. Report a 1-3 sentence summary of what was changed

来源:davila7/claude-code-templates · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本