Skill
4
Agent
All Skills
Search
Tools
中文
|
EN
Explore
Loading...
Back to Details
deslop
Compare original and translation side by side
🇺🇸
Original
English
🇨🇳
Translation
Chinese
Remove AI Code Slop
移除AI生成的冗余代码
Check the diff against main and remove all AI-generated slop introduced in this branch.
对比main分支的差异,移除当前分支中所有AI生成的冗余代码。
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
人类不会添加的额外注释,或者与文件其余部分风格不一致的注释
代码库该区域中不符合常规的额外防御性检查或try/catch块(尤其是在受信任/已验证的代码路径调用时)
为绕过类型问题而使用的
any
类型转换
Python中的内联导入(移至文件顶部与其他导入放在一起)
任何与文件风格不一致的其他内容
Process
操作流程
Get the diff against main:
git diff main...HEAD
Review each changed file for slop patterns
Remove identified slop while preserving legitimate changes
Report a 1-3 sentence summary of what was changed
获取与main分支的差异:
git diff main...HEAD
检查每个已修改文件中的冗余模式
移除已识别的冗余代码,同时保留合理的修改
提交1-3句话的修改总结