以證據驅動的缺陷修復

重現故障,沿真實執行路徑定位首先被破壞的規則,再驗證獲授權範圍內的最小修復。

Tink1.0.02026年10月23日MIT
取得 Skill

使用需求

面向具備倉庫及文件訪問能力的 Codex 類智能體。說明文件不提供瀏覽器、測試工具、憑據、項目數據或修改外部系統的權限;其他宿主可能需要適配。

  • 故障入口、輸入、預期與實際結果,以及環境和版本
  • 相關代碼及日誌訪問能力;症狀涉及界面時需真實瀏覽器或目標應用
  • 如需修改代碼,須有明確修復授權

快速開始

  1. 下載後先檢查包內說明,再將 ZIP 解壓至暫存目錄。
  2. 安裝合集時,將六個 Skill 文件夾及同級 shared 文件夾複製到項目的 .agents/skills/ 或個人的 ~/.agents/skills/。保持相對目錄結構,不要把合集外層目錄當成一個 Skill 安裝。
  3. 安裝單獨 ZIP 時,將其中的同名文件夾放入所選 Skills 目錄,並保留其內部 shared 資源。覆蓋前備份同名 Skill,避免重複安裝。
  4. 在 Codex 中使用準確的 $bug-fixing 調用;未被發現時可重啟宿主。任務需要流程交接時,另行安裝相應配套 Skill。

適用場景

  • 有明確失敗輸入或可重現用戶操作的迴歸問題
  • 界面、API 與數據不一致,刷新後舊數據回現,或間歇性異步故障

使用步驟

  1. 調用 $bug-fixing,提供症狀、重現步驟及允許範圍。
  2. 建立能準確捕捉症狀的失敗信號,追蹤真實路徑,同時排查同一原因的其他影響及同類代碼位置。
  3. 獲准修復後,在規則所屬層修改,避免無關重構;歷史數據修復需單獨具備授權。
  4. 重跑原始完整失敗路徑及受影響路徑,審查最終差異,並報告證據、缺口及回滾方式。

交付內容

  • 與失敗證據對應的根因說明
  • 實際改動、迴歸證據、未驗證風險及回滾說明

局限

  • 僅要求診斷不等於授權修改產品。
  • 無法重現時只能給出暫定根因並說明證據缺口;修復仍須有有效迴歸信號。
  • 質疑者按需使用,缺少獨立審查時必須說明。

示例提示詞,非實際執行案例

使用 $bug-fixing 診斷個人資料保存顯示成功、刷新後卻恢復舊值的原因。按原始瀏覽器步驟操作,將請求與讀回結果對應。不要修改代碼或歷史數據,只報告原因、證據和修復建議。

本指南說明包內工作流程,不代表已驗證跨模型可靠性,也不是實際驗收運行報告。

Skill 內部
SKILL.md
---
name: bug-fixing
license: MIT
description: >-
  Reproduce failures, regressions, and data/UI inconsistencies; trace the real execution path to the root cause, make a minimal authorized repair, and verify related paths.
  Scale evidence collection, testing, and challenge to actual risk. Not for new-feature planning or test design alone.
---

# Evidence-Driven Bug Fixing

Find the first boundary on the actual failure path that violates the correct rule. Fix the entire defect class at the layer responsible for that rule, and demonstrate recovery with the original failing input and related paths. Reduce redundant process, not causal evidence or applicable checks.

Do not change product code when only diagnosis was requested. When repair is already authorized, continue within scope without asking again. For a new product decision, expanded scope, changed data/permission/security semantics, or an unauthorized external action, complete independent investigation and a concrete proposal first, then ask only for the missing decision. Check command side effects too. For a growing incident, existing authorization may permit reversible containment while preserving original evidence; containment is not a root-cause fix.

## Select Work for the Actual Situation
包含檔案 · 7
bug-fixing/LICENSE
bug-fixing/MANIFEST.json
bug-fixing/README.md
bug-fixing/SKILL.md
bug-fixing/agents/challenger.md
bug-fixing/agents/openai.yaml
bug-fixing/references/web-data-diagnosis.md