deslop

📁 ilamanov/skills 📅 5 days ago
1
总安装量
1
周安装量
#41572
全站排名
安装命令
npx skills add https://github.com/ilamanov/skills --skill deslop

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
claude-code 1

Skill 文档

Deslop

Remove AI-generated code patterns from all changes in the current branch.

Process

  1. Run git diff main to get all changes
  2. For each changed file, read the full file to understand existing style
  3. Identify and remove slop patterns (see below), matching the file’s existing style
  4. Report a 1-3 sentence summary of changes

Slop Patterns

Remove these when inconsistent with the surrounding code:

  • Unnecessary comments – Comments a human wouldn’t add or that don’t match the file’s commenting style
  • Defensive overkill – Extra try/catch blocks, null checks, or validation that’s abnormal for that area (especially on trusted/validated codepaths)
  • Type escape hatches – Casts to any to bypass type issues
  • Single-use variables – Variables used once immediately after declaration; inline the RHS instead
  • React prop interfaces – Separate interface Props definitions; inline the props type directly
  • Style drift – Any formatting, naming, or patterns inconsistent with the file

Style Matching

Before editing, study the unchanged code in each file:

  • Comment density and style
  • Error handling patterns
  • Variable naming conventions
  • Type annotation style
  • Component patterns (for React)

Only flag something as slop if it deviates from the file’s established patterns.

Output

End with only a 1-3 sentence summary of what was changed. No detailed lists.