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 從公開儲存庫中收錄這些內容。

檢舉或申請下架