W Deslop

blockmatic/basilic-skills/skills/workflow/w-deslop

作者 blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635无许可证1 个星标收录于 2026年10月9日更新于 2026年10月9日仓库6天前更新

Remove AI-generated slop introduced on this branch relative to main.

AI 生成的概览

通过与 main 对比,移除分支上 AI 生成的代码冗余。

功能
将当前分支与 main 进行对比,覆盖所有变更文件(包括被修改的已有文件),识别 AI 生成的冗余内容,例如多余注释、可信路径上异常的 try/catch、对 any 的强制类型转换,以及与文件风格不一致的写法。它会移除这些内容,但不重写无关结构,并对涉及的文件运行最小的现有检查。当行为或命令发生变化时,还会指向文档相关技能。
适用场景
适用于分支中包含 AI 生成代码、需要在评审或合并前清理的情况。也适合注释、防御性噪声或 any 类型转换混入代码、需要在不改动其余代码的前提下清除的场景。
运行要求
需要访问代码仓库及其 main 分支以进行对比,并能够运行项目现有的检查。不附带脚本,仅为说明性指令。

Diff this branch against main and remove comments, defensive noise, and any casts that do not match the surrounding file.

  1. Diff against main for every file this branch changed, including existing files it modified, not only files it added.
  2. Identify slop: extra comments a human would not add, abnormal try/catch on trusted paths, casts to any, style inconsistent with the file.
  3. Remove it. Do not rewrite unrelated structure. Run the smallest existing check for the touched files.
  4. Docs: /w-docs if behavior or commands changed.

来源与署名

来源:blockmatic/basilic-skills位于skills/workflow/w-deslop提交7e05e2a

许可证: 无许可证

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

举报或申请下架