Agent Skills
› sediman-agent/OpenSkynet
› deslop
deslop
GitHub该技能用于审查代码差异,移除AI生成的冗余注释、防御性检查、any类型转换及深层嵌套等不规范代码,在保持行为不变的前提下优化代码风格与结构。
触发场景
需要清理AI生成代码的冗余和风格问题
审查分支差异以移除不一致的代码模式
安装
npx skills add sediman-agent/OpenSkynet --skill deslop -g -y
SKILL.md
Frontmatter
{
"name": "deslop",
"description": "Remove AI-generated code slop and clean up code style"
}
Remove AI code slop
Check the diff against main and remove AI-generated slop introduced in the branch.
Focus Areas
- Extra comments that are unnecessary or inconsistent with local style
- Defensive checks or try/catch blocks that are abnormal for trusted code paths
- Casts to
anyused only to bypass type issues - Deeply nested code that should be simplified with early returns
- Other patterns inconsistent with the file and surrounding codebase
Guardrails
- Keep behavior unchanged unless fixing a clear bug.
- Prefer minimal, focused edits over broad rewrites.
- Keep the final summary concise (1-3 sentences).
版本历史
- c9d8953 当前 2026-07-05 19:51


