Agent Skills
› nicknisi/claude-plugins
› de-slopify
de-slopify
GitHub用于清理当前分支中由AI生成的冗余代码。对比指定分支(默认main),移除多余注释、异常防御性检查、any类型转换及不一致风格,并输出简短变更摘要。
Trigger Scenarios
用户要求清理AI生成的代码垃圾
需要移除分支中的冗余注释或防御性代码
修复与项目风格不一致的代码
Install
npx skills add nicknisi/claude-plugins --skill de-slopify -g -y
SKILL.md
Frontmatter
{
"name": "de-slopify",
"description": "Remove code slop from the current branch",
"disable-model-invocation": true
}
Remove AI code slop
The branch to diff against is $1. If no branch was provided, default to main.
Check the diff against the branch, 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 (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
- Any other style that is inconsistent with the file
Report at the end with only a 1-3 sentence summary of what you changed
Version History
- c3164c9 Current 2026-07-24 21:10


