Agent Skills
› sanity-io/sanity
› deslop
deslop
GitHub移除分支中由AI生成的冗余代码和风格问题,包括多余注释、防御性检查、any类型转换及深层嵌套,保持行为不变并简化代码。
Trigger Scenarios
审查包含AI生成代码的Git diff
清理不符合项目风格的代码
Install
npx skills add sanity-io/sanity --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).
Version History
- a94b3d8 Current 2026-08-28 22:14


