界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

deslop

deslop

【开发与工程】Diff-scoped AI-slop cleanup pass: strip comment slop, defensive-check slop, type-laundering, and style drift from the current branch diff before autoreview.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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

  1. Scope the pass to git diff against origin/main, or the branch merge base when it differs. Never run a repo-wide cleanup.
  2. 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/catch blocks 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.
  3. Make no functional edits. If cleanup could change behavior, leave it alone and report it instead.
  4. Fix a finding inline only when the cleanup is trivial and behavior-neutral. Otherwise note it for the author.
  5. 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.

我的收藏