360 Secure SkillHub
360 安全技能中心

deslop

检查当前分支相对 main 的代码差异,移除本分支引入的 AI 生成冗余内容,包括多余注释、异常防御性检查、为绕过类型问题而使用的 any 转换,以及与文件不一致的代码风格;完成后仅用 1-3 句话总结改动。

brianlovin
热度 66.01
最近更新 2026-10-19 02:09:58
分类:开发依赖:读写文件应用场景:代码审查

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add brianlovin/agent-config/deslop
Metadata
name
deslop
description
Remove AI-generated code slop from the current branch. Use after writing code to clean up unnecessary comments, defensive checks, and inconsistent style.

Remove AI code slop

Check the diff against main, and remove all AI generated slop introduced in this branch.

This includes:

  • Extra comments that a human wouldn't add or is inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
  • Casts to any to get around type issues
  • Any other style that is inconsistent with the file

Report at the end with only a 1-3 sentence summary of what you changed