360 Secure SkillHub
360 安全技能中心

deslop

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

分类:开发
cursor
热度 52.98
最近更新 2026-10-18 16:52:22

安装

发给 Agent
帮我安装这个技能: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).