360 Secure SkillHub
360 安全技能中心

deslop

该 Skill 用于审查代码分支相对 main 的 diff,移除 AI 生成的冗余注释、异常防御、any 类型绕过、过深嵌套等不一致模式,并优先做最小化修改、保持行为不变,最终给出 1-3 句总结。未声明具体 Git 命令、语言范围或自动验证流程。

cursor
热度 0.00
最近更新 2026-10-18 16:52:22
分类:开发依赖:读写文件应用场景:代码审查

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add cursor/plugins/deslop
Metadata
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 any used 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).