deslop
GitHub用于审查代码变更,识别并移除 AI 生成的冗余注释、防御性检查及类型绕过等不规范代码,同时简化嵌套逻辑以符合本地编码风格,保持行为不变。
Trigger Scenarios
审查包含 AI 生成代码的 PR
清理不符合项目风格的代码
Install
npx skills add FuturixAI-and-Quantum-Works/Prism-Legal-OS --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
- fdb81bc Current 2026-10-18 15:43


