360 Secure SkillHub
360 安全技能中心

Deslop

该 Skill 审查分支相对基线的 git diff,识别新增行中不一致的注释、防御性检查、类型转换和调试残留,结合文件上下文与本地风格逐项判断,仅删除冗余部分并保留行为与信任边界保护,最后运行项目检查并报告变更文件和保留项。

brennerspear
brennerspear
热度 88.10
最近更新 2026-05-11 17:27:12
分类:开发依赖:代码执行 / 读写文件应用场景:代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deslop
Metadata
name
deslop
description
Remove AI-style code slop from a branch by reviewing diffs, deleting inconsistent defensive noise, and preserving behavior and local style.
allowed-tools
["Bash"]

When to use this skill

Use when asked to:

  • "remove AI slop"
  • "clean up generated code style"
  • "review branch diff for weird comments/defensive checks/casts"

Workflow

  1. Set comparison base (default main) and inspect git diff <base>...HEAD.
  2. Build a candidate list using rg over added lines (comments, catches, casts, lint ignores, placeholders, debug leftovers).
  3. Review each candidate in full file context and compare with nearby local patterns.
  4. Remove only inconsistent slop; keep behavior and domain-valid guards.
  5. Re-run project checks (bun check, bun typecheck) and fix regressions.
  6. Report exact files changed and what slop was removed vs intentionally kept.

Slop checklist

Read and apply: references/slop-heuristics.md

Guardrails

  • Do not remove protections at trust boundaries (user input, auth, network, db, file I/O).
  • Do not replace real typing with weaker typing.
  • Prefer minimal edits over broad rewrites.
  • Keep project conventions (hooks/query style, component patterns, naming).