From ddd-workflow
Systematically diagnoses and fixes bugs with a four-phase workflow: root cause investigation, pattern analysis, test-first repair, and wrap-up. Produces a tri-fold works.md. Triggers: fix bug, bugfix, hotfix.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ddd-workflow:ddd.fixbugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
系統性診斷與修復 bug。參考 Superpowers systematic-debugging 方法論,強制四階段流程,禁止跳過根因分析直接猜修。
系統性診斷與修復 bug。參考 Superpowers systematic-debugging 方法論,強制四階段流程,禁止跳過根因分析直接猜修。
Main agent 直接修——bug 修復是探索性任務,需要與使用者即時討論假設與發現,且通常小而急,派工開銷不值得。這是唯一 main agent 直接寫 code 的 skill。
定位:例外的快速解,與 /ddd.xreview 互斥。xreview findings 的修正屬於正式流程,由 /ddd.xreview 收集決策後派 ddd-developer 執行,不進入本 skill。
釐清問題
重現
定位根因
git log、git blame)寫預期行為測試
最小改動修復
驗證
失敗處理
更新文件
docs/ 下建 <序號>-hotfix-<簡述>/works.md(序號接續既有 docs 編號)回報使用者
獨立 hotfix 不走 spec/tasks 流程,改用一份三合一的 works.md 記錄完整脈絡:
# Hotfix: <簡述>
## 問題描述
- **症狀**:<使用者觀察到的現象>
- **預期行為**:<應該怎樣>
- **影響範圍**:<哪些功能/使用者受影響>
## 根因分析
- **根因**:<一句話根因>
- **定位過程**:<怎麼找到的,排除了哪些假設>
- **受影響的檔案**:<列出修改的檔案>
## 修復內容
- **修了什麼**:<具體改動>
- **測試**:<新增或修改了哪些測試>
- **驗證結果**:<測試執行結果>
修復完成、測試通過、使用者確認 commit 後結束。
npx claudepluginhub applepig/ddd-workflowStep-by-step bug fix workflow: diagnose root cause, implement minimal fix, write regression test. Use when fixing bugs or working on bug report issues.
Root cause based one-shot bug fix. Runs a full investigation pipeline: debugger diagnosis, gap analysis, requirements generation, execution, and verification. Includes QA suggestions after successful fix.