Agent Skills
› openclaw/openclaw
› deslop
deslop
GitHub在代码审查前清理当前分支差异中的冗余注释、防御性检查、类型转换和风格漂移,确保行为绝对不变,仅进行非功能性编辑并报告结果。
Trigger Scenarios
执行 autoreview 之前
需要清理当前分支 diff 中的非功能性噪音时
Install
npx skills add openclaw/openclaw --skill deslop -g -y
SKILL.md
Frontmatter
{
"name": "deslop",
"description": "Diff-scoped AI-slop cleanup pass: strip comment slop, defensive-check slop, type-laundering, and style drift from the current branch diff before autoreview."
}
Deslop
Clean only the current branch diff before review. Preserve behavior absolutely.
Checklist
- Scope the pass to
git diffagainstorigin/main, or the branch merge base when it differs. Never run a repo-wide cleanup. - Inspect every changed hunk for:
- comments a human maintainer would not write, including narration, syntax explanation, and prose that merely restates the code;
- defensive checks or
try/catchblocks that are abnormal for the surrounding module or protect only imagined states; - casts that launder types, especially
as any,as unknown as T, and widen-then-assert flows. Oxlint already rejects the latter two patterns in governed code; - redundant intermediate variables or one-use helpers that do not add domain meaning, reduce duplication, or simplify control flow;
- compatibility shims, aliases, retries, and fallback branches without a named shipped contract and removal plan;
- naming, control flow, imports, formatting, and other style that conflicts with the surrounding file.
- Make no functional edits. If cleanup could change behavior, leave it alone and report it instead.
- Fix a finding inline only when the cleanup is trivial and behavior-neutral. Otherwise note it for the author.
- Report the result in 1–3 sentences, including whether anything changed and any non-trivial item left for review.
Run $deslop before $autoreview, never instead of it. Autoreview remains the required correctness and safety review gate.
Version History
- 3374458 Current 2026-08-20 13:28


