用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SimHacker/moollm --skill debugging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | debugging |
| description | Systematic bug investigation with hypothesis tracking |
| license | MIT |
| tier | 2 |
| allowed-tools | ["read_file","write_file","list_dir","search_replace","run_terminal_cmd","grep"] |
| related | ["adventure","sniffable-python","scratchpad","research-notebook","sister-script","session-log","self-repair","play-learn-lift","constructionism"] |
| tags | ["moollm","development","investigation","hypothesis","testing"] |
| inputs | {"symptom":{"type":"string","required":true,"description":"What's the observable problem?"},"context":{"type":"string","required":false,"description":"When/where does it happen?"},"expected":{"type":"string","required":false,"description":"What should happen instead?"}} |
| outputs | ["DEBUG.yml","HYPOTHESES.md","TESTS.md","ROOT_CAUSE.md"] |
| templates | ["DEBUG.yml.tmpl"] |
"Hypothesize, test, learn, repeat."
Debug problems methodically. Track hypotheses, test systematically, converge on root causes.
Debug problems methodically. Track hypotheses, document tests, record what you learn, and converge on root causes.
OBSERVE → HYPOTHESIZE → TEST → LEARN → (repeat or) → FIX
FIX — Bug resolvedWONTFIX — Intentional behaviorDEFER — Not addressing nowBefore guessing, gather facts:
observation:
symptom: "What's the observable problem?"
context: "When does it happen?"
expected: "What should happen instead?"
evidence:
- "Error message (exact text)"
- "Logs showing the issue"
- "Steps to reproduce"
constraints:
- "What we know for sure"
- "What we've already ruled out"
hypothesis:
id: "hyp-001"
claim: "The bug is caused by X"
confidence: "high|medium|low"
if_true:
- "We would expect to see..."
test:
id: "test-001"
hypothesis: "hyp-001"
action: "What we did"
before:
state: "System state before test"
after:
state: "System state after test"
result: "confirmed|refuted|inconclusive"
learned: "What we now know"
| Field | Required | Purpose |
|---|---|---|
symptom | ✓ | Observable problem |
expected | ✓ | What should happen |
error_message | Exact error text | |
logs | Relevant log entries | |
steps_to_reproduce | How to trigger | |
constraints | Known facts | |
ruled_out | Eliminated possibilities |
| Field | Required | Purpose |
|---|---|---|
id | ✓ | Unique identifier |
claim | ✓ | What you think is wrong |
test | ✓ | How to validate |
confidence | high/medium/low | |
if_true | Expected observations | |
result | Test outcome | |
learned | Insight gained |
| Field | Required | Purpose |
|---|---|---|
id | ✓ | Unique identifier |
hypothesis | ✓ | Which hypothesis |
action | ✓ | What was tried |
result | ✓ | confirmed/refuted/inconclusive |
before | State before | |
after | State after | |
learned | Insight |
| File | Purpose |
|---|---|
DEBUG.yml | Current debugging session |
HYPOTHESES.md | All hypotheses and their status |
TESTS.md | Test log |
ROOT_CAUSE.md | Final analysis |
| Command | Action |
|---|---|
DEBUG [symptom] | Start debugging session |
OBSERVE [fact] | Record observation |
HYPOTHESIZE [claim] | Propose hypothesis |
TEST [action] | Document test |
LEARN [insight] | Record what you learned |
ROOT-CAUSE [explanation] | Document root cause |
Narrow down where the bug lives. Use when the bug is somewhere in a large space.
technique: binary_search
steps:
- "Find a known good state"
- "Find a known bad state"
- "Check the middle"
- "Repeat until found"
Explain the problem in detail. Use when stuck and need fresh perspective. Write detailed observation in DEBUG.yml — forces you to articulate assumptions.
Simplify until bug is isolated. Use when complex system with unclear cause.
Find the commit that introduced bug. Use when bug is a regression.
Add logging to trace execution. Use when you need to understand flow.
Always include in context:
DEBUG.ymlHYPOTHESES.md| Direction | Skill | Relationship |
|---|---|---|
| ← | play-learn-lift | Debugging IS learning |
| → | session-log | Log all debugging activities |
| → | research-notebook | Complex bugs need research |
| → | honest-forget | Compress debugging wisdom |
| ↔ | adventure | Debugging IS adventure |
| ↔ | room | Debug sessions are rooms |
| ↔ | card | Git Goblin 🧌, Index Owl 🦉 companions |