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

檢舉或申請下架