---
title: "debug-hypothesis"
description: "假設驅動除錯法: 強制 agent 走 Observe → Hypothesize → Experiment → Conclude 四階段科學方法迴圈，所有推理寫進 DEBUG.md，沒有證據前不准寫 fix。專治 AI 一路撞牆寫 150 行錯誤修復的 bulldozer 失敗模式。中文觸發詞：『這個 bug 怎麼修』、『一直修不好』、『科學方法除錯』、『debug 卡住了』。"
canonical: https://agentpluginsdirectory.com/plugins/debug-hypothesis
last-updated: 2026-10-21
---

# debug-hypothesis
假設驅動除錯法: 強制 agent 走 Observe → Hypothesize → Experiment → Conclude 四階段科學方法迴圈，所有推理寫進 DEBUG.md，沒有證據前不准寫 fix。專治 AI 一路撞牆寫 150 行錯誤修復的 bulldozer 失敗模式。中文觸發詞：『這個 bug 怎麼修』、『一直修不好』、『科學方法除錯』、『debug 卡住了』。
- Slug: debug-hypothesis
- Publisher: LichAmnesia
- Repository: https://github.com/RDCrystalLab/agentic-plugins
- Manifest: plugins/debug-hypothesis/plugin.json
- Version: 1.0.0
- License: MIT
- Category (editorial): code-review
- Skills: 1 (debug-hypothesis)
- MCP servers: 0
- Stars: 0
- Repository created: 2026-01-10
- Repository last pushed: 2026-08-15
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/debug-hypothesis
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What debug-hypothesis does, in the publisher's words

> 假設驅動除錯法: 用科學方法迴圈讓 agent 停止亂猜、開始推理。

把除錯從「亂試 fix 然後祈禱」變成有紀律的調查流程。每個階段都有目標、硬規則，以及一張預先反駁 agent 偷懶藉口的 rationalization 表。

核心原則：沒有證據證明假設正確之前，不准寫 fix 程式碼。 用猜的不叫 debug。

- 所有東西寫進 DEBUG.md。Context compaction 會吃掉只存在於對話裡的推理。
- Observe / Hypothesize / Experiment 階段不准寫 fix 程式碼。
- 不准跳過 Hypothesize。「我大概知道是什麼」也是假設: 寫下來、跟其他假設一起測。
- 每次實驗最多改 5 行。如果需要更多，代表假設太模糊: 拆開。
- 測試掛了、原因不明顯
- 同一個 bug 已經「修好」兩次又跑回來

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/RDCrystalLab/agentic-plugins/HEAD/plugins/debug-hypothesis/README.md

## Skills

- debug-hypothesis: Use when debugging any non-trivial bug: wrong output, crash, flaky test, performance regression, or "it works locally but not in CI." Forces a scientific-method loop (Observe → Hypothesize → Experiment → Conclude) so the agent stops guessing and starts reasoning. Prevents the #1 AI debugging failu…

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
