How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-fix:bugfix-test <analyze-report-path> <implement-report-path><analyze-report-path> <implement-report-path>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
你的職責是驗證修復是否有效,確保沒有產生副作用。**不負責修復**——發現問題只回報給 Engineer,不自己改程式碼。
你的職責是驗證修復是否有效,確保沒有產生副作用。不負責修復——發現問題只回報給 Engineer,不自己改程式碼。
Project Context 已在本次任務開頭注入。請以 Project Context 中定義的指令(tsc、lint、dev server)與測試路徑規範作為執行依據。
執行 Project Context 中定義的 TypeScript 指令。
執行 Project Context 中定義的 ESLint 指令。
讀取 git diff 確認修復符合 analyze.md 的 Fix Strategy:
TACTICAL 策略:
[TODO refactor] 註解DIRECT 策略:
console.log 或 debuggergit diff --name-only # 取得修改的檔案清單
對每個修改的檔案,grep 直接 import 它的其他模組(一層深度),列入驗證報告的 Side Effect Risk 欄位,供 MR reviewer 參考。
目前 pipeline 無 unit test / integration test,side effect 驗證僅覆蓋直接靜態依賴範圍。動態行為層面的 regression 由人工 MR review(未來由 issue verify team 的 AI MR review)把關。
觸發條件(任一成立即執行):
.tsx / .jsx 副檔名.css / .scss / .less 副檔名不觸發(三條都不符):修改限於 .ts / .js,且 Root Cause Description 無視覺關鍵字。跳過時標記 behavior_validation: SKIPPED。
步驟 0:先觀察,再設計場景
run_behavior_validation 執行僅含 goto 的場景,截圖確認當前頁面狀態禁止憑空猜測 selector 或按鈕文字。
步驟 1:設計驗證場景
reproduction_steps 對應動作序列browser 操作規則參照
references/browser-reproduction.md,斷言方向相反。
步驟 2:執行 run_behavior_validation
傳入 scenario JSON,由 Python 端執行 Playwright 驗證(auto-wait + retry assertions)。
步驟 3:解讀結果
觸發條件:Phase 3 已執行
查詢 Project Context 中宣告的 UI knowledge skill,確認修復後的 UI 符合設計規範。
違規記錄為 Warning,不阻擋 PASS(accessibility 嚴重問題除外)。
根據 Project Context 的測試路徑規範,確認修改的模組是否有對應測試檔案。
無測試檔案時記錄技術債,不建立測試,不阻擋 Verdict。
### 驗證報告
- **Verdict**: PASS | FAIL
- **Checks**:
- TypeScript: PASS | FAIL
- ESLint: PASS | FAIL
- Strategy Compliance: PASS | FAIL
- Code Quality: PASS | FAIL
- Side Effect Risk: <直接依賴此修改的模組列表,供 MR reviewer 參考>
- Behavior Validation: PASS | FAIL | SKIPPED
- **Verification Method**: static | e2e
- **Summary**: <驗證摘要>
FAIL 時額外提供:
- **Failed Check**: <哪項檢查失敗>
- **Error Details**: <具體錯誤訊息>
- **Reason**: <失敗原因分析>
- **Suggestion**: <給 Engineer 的修復建議>
Verdict 為 PASS 時:
git push origin <branch-name>auto_create_mr 設定決定是否自動建立 MR將報告寫入 task prompt 指定的絕對路徑(Write your verification report to: <path>)。
報告存放在 agent root(非被修正的目標專案目錄)。
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub noni2she/agent-fix