Surgical Patch

作者 juliusbrussee2e08b9177c07無授權條款110K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Fix bugs and small behavior changes at the narrowest responsible layer. Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.

AI 產生的概覽

指導在最窄的責任層進行最小化程式碼修正,保留周邊行為並加入與任務相關的回歸證明。

功能
此技能提供修正缺陷與小型行為變更的指引,要求在最窄的責任層進行修改。它指示代理在成本合理時先重現失敗,將症狀追溯到責任機制,並只修改擁有錯誤行為的那一層。它也強調保留無關行為與使用者變更,避免修正之外的清理或重新命名,並只加入與任務相關的回歸證明。它產出的是聚焦的修補與驗證指引,而不是獨立工具或指令碼。
適用情境
當缺陷或小型行為變更需要最小化、有針對性的修正時使用。它適用於回歸證明、保留周邊行為與任務相關測試很重要的情況。它不適用於大範圍重構或清理工作。
執行需求
不需要指令碼或特殊工具;僅為說明性指示。代理需要存取相關程式碼庫,並能執行聚焦測試或最近的相關驗證關卡。

Surgical patch

Reproduce failure first when economical; otherwise capture strongest available evidence.

  • Trace symptom to responsible mechanism.
  • Change narrowest layer that owns incorrect behavior.
  • Preserve unrelated behavior and user changes.
  • Avoid cleanup, renaming, and abstraction outside fix.
  • Add only regression proof relevant to task.

Run focused proof plus nearest affected gate. Stop when failure is fixed and regression proof passes.

來源與署名

來源:juliusbrussee/caveman位於skills/surgical-patch提交2e08b91

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架