Deslop

作者 brianlovin1a9819ebf3fe无许可证376 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6个月前更新

Remove AI-generated code slop from the current branch. Use after writing code to clean up unnecessary comments, defensive checks, and inconsistent style.

AI 生成的概览

对比 main 分支审查差异,清除 AI 生成的代码冗余,如多余注释和防御性检查。

功能
该技能检查当前分支与 main 之间的差异,然后删除它认为属于 AI 生成冗余的内容:人类不会添加的注释、对该代码库而言异常的防御性检查或 try/catch 块、为绕过类型问题而进行的 any 类型转换,以及与该文件不一致的其他风格。最后用一到三句话总结所做的修改。它仅包含说明,不附带脚本。
适用场景
适用于在分支上写完代码之后,希望在评审或合并前清理 AI 生成痕迹的场景。也适合已有既定风格、新改动需要与之保持一致的代码库。
运行要求
需要访问代码仓库及其 git 历史,以便将分支与 main 进行差异对比。不包含脚本、软件包或凭据。

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

来源与署名

来源:brianlovin/agent-config位于skills/deslop提交1a9819e

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架