360 Secure SkillHub
360 安全技能中心

deslop

该 Skill 对当前分支的 git diff 做限定清理,检查并移除不自然注释、过度防御检查、类型洗白、冗余变量、无契约兼容分支和风格漂移;不做功能性改动,仅内联修复行为中立的琐碎项,并以 1–3 句话报告结果,供后续审查使用。

分类:开发
hillstreet-ph
热度 34.06
最近更新 2026-11-07 14:48:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add hillstreet-ph/deslop
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
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.