360 Secure SkillHub
360 安全技能中心

deslop

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

分类:开发
brianlovin
热度 30.33
最近更新 2026-10-19 02:09:58

安装

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