Four-phase debugging framework that ensures root cause investigation before attempting fixes. Never jump to solutions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install runesleo-systematic-debugging或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install runesleo-systematic-debugging⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/runesleo-systematic-debugging/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Systematic Debugging description: Four-phase debugging framework that ensures root cause investigation before attempting fixes. Never jump to solutions. when_to_use: when encountering any bug, test failure, or unexpected behavior, before proposing fixes version: 3.0.0 languages: all attribution: Based on obra/superpowers-skills (MIT License). Phase 0 and additional patterns added. ---
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
NO INVESTIGATION WITHOUT CONTEXT RECALL FIRST
If you haven't completed Phase 0, you cannot proceed to Phase 1. If you haven't completed Phase 1, you cannot propose fixes.
Use for ANY technical issue:
Use this ESPECIALLY when:
Don't skip when:
You MUST complete each phase before proceeding to the next.
BEFORE doing ANYTHING else:
- What's the error type? (OOM, timeout, connection, type error...) - What component? (server, browser, API, database...) - What area of the codebase?
- Check project docs, MEMORY files, or past conversations - Search codebase for similar error patterns: grep -r "ErrorType" . - Check git log for related recent changes: git log --oneline -20
- Found relevant experience? -> Apply directly, skip to Phase 4 - Found partial match? -> Use as starting point for Phase 1 - Nothing found? -> Proceed to Phase 1, remember to record solution later
``` Context Recall: - Query: "xxx" - Found: [description of related knowledge] - Action: [apply experience / continue investigation / no match] ```
VIOLATION: Proceeding to Phase 1 without Context Recall output = process failure.
---
BEFORE attempting ANY fix:
- Don't skip past errors or warnings - They often contain the exact solution - Read stack traces completely - Note line numbers, file paths, error codes
- Can you trigger it reliably? - What are the exact steps? - Does it happen every time? - If not reproducible -> gather more data, don't guess
- What changed that could cause this? - Git diff, recent commits - New dependencies, config changes - Environmental differences
WHEN system has multiple components (CI -> build -> signing, API -> service -> database):
BEFORE proposing fixes, add diagnostic instrumentation: ``` For EACH component boundary: - Log what data enters component - Log what data exits component - Verify environment/config propagation - Check state at each layer
Run once to gather evidence showing WHERE it breaks THEN analyze evidence to identify failing component THEN investigate that specific component ```
- Where does bad value originate? - What called this with bad value? - Keep tracing up until you find the source - Fix at source, not at symptom
Find the pattern before fixing:
- Locate similar working code in same codebase - What works that's similar to what's broken?
- If implementing pattern, read reference implementation COMPLETELY - Don't skim - read every line - Understand the pattern fully before applying
- What's different between working and broken? - List every difference, however small - Don't assume "that can't matter"
- What other components does this need? - What settings, config, environment? - What assumptions does it make?
Scientific method:
- State clearly: "I think X is the root cause because Y" - Write it down - Be specific, not vague
- Make the SMALLEST possible change to test hypothesis - One variable at a time - Don't fix multiple things at once
- Did it work? Yes -> Phase 4 - Didn't work? Form NEW hypothesis - DON'T add more fixes on top
- Say "I don't understand X" - Don't pretend to know - Ask for help - Research more
Fix the root cause, not the symptom:
- Simplest possible reproduction - Automated test if possible - One-off test script if no framework - MUST have before fixing
- Address the root cause identified - ONE change at a time - No "while I'm here" improvements - No bundled refactoring
- Test passes now? - No other tests broken? - Issue actually resolved?
- STOP - Count: How many fixes have you tried? - If < 3: Return to Phase 1, re-analyze with new information - If >= 3: STOP and question the architecture (step 5 below) - DON'T attempt Fix #4 without architectural discussion
Pattern indicating architectural problem: - Each fix reveals new shared state/coupling/problem in different place - Fixes require "massive refactoring" to implement - Each fix creates new symptoms elsewhere
STOP and question fundamentals: - Is this pattern fundamentally sound? - Are we "sticking with it through sheer inertia"? - Should we refactor architecture vs. continue fixing symptoms?
Discuss with the user before attempting more fixes.
If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
If 3+ fixes failed: Question the architecture (see Phase 4.5)
...
安装 Systematic Debugging 后,可以对 AI 说这些话来触发它
Help me get started with Systematic Debugging
Explains what Systematic Debugging does, walks through the setup, and runs a quick demo based on your current project
Use Systematic Debugging to four-phase debugging framework that ensures root cause investigatio...
Invokes Systematic Debugging with the right parameters and returns the result directly in the conversation
What can I do with Systematic Debugging in my developer & devops workflow?
Lists the top use cases for Systematic Debugging, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/runesleo-systematic-debugging/ 目录(个人级,所有项目可用),或 .claude/skills/runesleo-systematic-debugging/(项目级)。重启 AI 客户端后,用 /runesleo-systematic-debugging 主动调用,或让 AI 根据上下文自动发现并使用。
Systematic Debugging 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Systematic Debugging 可免费安装使用。请查阅仓库了解许可证信息。
Four-phase debugging framework that ensures root cause investigation before attempting fixes. Never jump to solutions.
Systematic Debugging 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Systematic Debugging
Identifies repetitive steps in your workflow and sets up Systematic Debugging to handle them automatically