systematic-debugging
Skill8 starsChanged 6 months agoMITView on GitHub
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
190 other projects use a version of this, 84 of them edited.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXedited, first seen Nov 9, 2026
- chrysogonus/power-agentstheir own version, first seen Nov 8, 2026
- willy92wins/DayZ-Modding-Knowledge-Packtheir own version, first seen Nov 8, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-trioedited, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 20 projects that use this
mjunaidcaSkillbuilding-chatgpt-apps
Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).
Also in 4 projects that use this
mjunaidcaSkillbuilding-chat-interfaces
Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.
Also in 4 projects that use this
- +2 more from Leodorareluctant259
- +5 more from mjunaidca
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 84
- obra/superpowers★ 314k11% same
- openai/plugins★ 7.8k11% same
- farm-fe/farm★ 5.6k10% same
- UniClipboard/UniClipboard★ 2k10% same
- lingyired/status-trio★ 1.8k11% same
- pcvelz/superpowers★ 1.3k11% same
- DemonDamon/AgenticX★ 1k10% same
- coco-research/coco★ 79710% same
- pedronauck/skills★ 64911% same
- involvex/youtube-music-cli★ 47710% same
74 more not listed
Wrote their own version · 106
- NousResearch/hermes-agent★ 262ksame name
- open-metadata/OpenMetadata★ 16ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- ChrisWiles/claude-code-showcase★ 6.1ksame name
- microsoft/FluidFramework★ 4.9ksame name
- compozy/compozy★ 2.9ksame name
- heyitsnoah/claudesidian★ 2.6ksame name
- GanyuanRan/Aegis★ 1.4ksame name
96 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository129 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 2 are common, 4 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 177 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
NOT for: feature design (brainstorming), code review (providing-code-review)
- Common: line 34
Core principle: ALWAYS find root cause before attempting fixes.
- Common: line 42
If you haven't completed Phase 1, you cannot propose fixes.
- Distinctive: line 46
If the human says any of these, STOP immediately:
- Distinctive: line 55
Do not defend the current approach.
- Distinctive: line 61
BEFORE attempting ANY fix:
- Distinctive: line 99
When fixes keep failing, the problem is usually misdiagnosed.
“Common” is measured: kept by at least 6 in 10 of the 177 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Systematic Debugging
When to Use
- Any bug, test failure, or unexpected behavior — before proposing fixes
- Build failures, runtime errors, or flaky tests
- NOT for: feature design (
brainstorming), code review (providing-code-review)
Core principle: ALWAYS find root cause before attempting fixes.
Wrong skill? Feature design →
brainstorming. Code review →providing-code-review.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRSTIf you haven't completed Phase 1, you cannot propose fixes.
Human Partner Signals You're Doing It Wrong
If the human says any of these, STOP immediately:
- "You already tried that"
- "That's not the problem"
- "We've been going in circles"
- "Stop and think about this differently"
- "You're making this too complicated"
- "Let's step back"
Do not defend the current approach. Do not continue it. Acknowledge what they said, ask what they're seeing that you're missing, and restart the investigation from scratch.
The Four Phases
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
- Read Error Messages Carefully — stack traces completely, note line numbers, file paths, error codes
- Reproduce Consistently — exact steps, every time? If not reproducible, gather more data, don't guess
- Check Recent Changes — git diff, recent commits, new dependencies, config changes
- Gather Evidence in Multi-Component Systems — for each component boundary: log what enters, log what exits, verify env/config propagation. Run once to find WHERE it breaks.
- Trace Data Flow — where does bad value originate? Trace up the call stack to find the source. Fix at source, not symptom. See
root-cause-tracing.mdfor complete technique.
Phase 2: Pattern Analysis
- Find working examples in same codebase — what works that's similar to what's broken?
- Compare against references — read reference implementations COMPLETELY, don't skim
- Identify differences — list every difference, don't assume "that can't matter"
- Understand dependencies — components, settings, config, environment, assumptions
Phase 3: Hypothesis and Testing
- Form single hypothesis — "I think X is the root cause because Y"
- Test minimally — smallest possible change, one variable at a time
- Verify — worked → Phase 4. Didn't work → new hypothesis, don't stack fixes.
Phase 4: Implementation
- Create failing test case — use
test-driven-developmentskill - Implement single fix — ONE change, no "while I'm here" improvements
- Verify — test passes, no other tests broken
- Record the refactoring disposition as a
Refactoring-Disposition:line in the fix commit message (or theinvestigation-statenote, if the session has one) — same vocabulary ashotfix-charter:REFACTOR_NOW(the refactor is the fix),PARK(you saw a cleanup worth doing and deliberately deferred it — name what), orNONE(nothing structural worth refactoring) — plus one concrete reason. DefaultNONEfor a clean fix;PARKonly when you actually spotted deferrable structure. This is a wrap-up note, NOT license for a "while I'm here" edit (item 2 still governs: ONE change). - If 2+ fixes failed — STOP. Question the architecture. Each fix revealing new problems in different places = wrong architecture, not wrong fix. Discuss with human before continuing.
Red Flags — STOP, Return to Phase 1
- "Quick fix for now, investigate later"
- "Just try changing X and see"
- Proposing solutions before tracing data flow
- "One more fix attempt" after 2+ failures
Recovery: After 2+ Failed Fix Attempts
When fixes keep failing, the problem is usually misdiagnosed. Don't try a third fix — escalate. If 2 or more distinct approaches have failed, the underlying architecture or assumptions are wrong. Stop adding fixes.
- Invoke
think-twice— verbalize what you've tried and why each failed - Question the layer — are you fixing the right component? Check one layer up and one layer down
- Check assumptions — list every assumption you've made. Test the least-certain one first. Write down what you assumed was true at the start and check each against evidence; the broken assumption is likely the root cause.
- Ask the human — "I've tried X and Y, both failed because Z. My current hypothesis is W — does that match your understanding?"
Common Rationalizations
| Rationalization | Why it fails |
| "I'm almost sure it's X" | Certainty without evidence is bias. Check assumptions first. |
| "Let me try one more thing" | After 2+ failed fixes, trying harder is wrong. Question the premise. |
| "This worked before, so it must still work" | Environments change. Verify don't assume. |
| "The error message says X so it must be X" | Error messages describe symptoms not root causes. |
| "I'll add more logging to find it" | If you're adding logging blindly, you don't have a hypothesis. Form one first. |
| "It's probably the same bug as last time" | Pattern matching skips root cause analysis. Verify. |
| "The tests pass so it must be fixed" | Tests prove the tested path works. Verify the actual failure path. |
| "It's working now, I don't know why" | Non-deterministic fixes will fail again. Find the root cause. |
Failure Modes
| Failure | Symptom | Recovery |
| Wrong layer | Fix works locally but breaks integration | Check one layer up: is the caller sending wrong data? |
| Confirmation bias | Only testing the happy path after fix | Write a test for the original failure case first |
| Environment mismatch | Works on your machine, fails in CI/prod | Compare env vars, dependency versions, OS differences. Don't assume equivalence |
Supporting Techniques
root-cause-tracing.md— trace bugs backward through call stackdefense-in-depth.md— add validation at multiple layerscondition-based-waiting.md— replace arbitrary timeouts with condition polling
Companion Skills
investigation-state— persist debugging context across sessions for multi-day bugsthink-twice— dispatch fresh sub-agent when stuck in a hypothesis loopadversarial-search— search for the WRONG value when symptoms contradict expectationsreceiving-code-review— responding to review feedbackfailure-autopsy— post-mortem on failed approacheshotfix-charter— the mechanically-enforced home of the REFACTOR_NOW/PARK/NONE disposition vocabulary (Phase 4 item 4)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

