systematic-debugging
Skill1 starsChanged 13 days agoMITView on GitHub
Use when encountering any bug, test failure, build or CI failure, crash, performance problem or unexpected behavior, before proposing a fix
191 other projects use a version of this.
Adopted by
Most recently taken up by
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- Dannykkh/skill-olympustheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- MorningStar0709/trae-agent-enhancementstheir own version, first seen Nov 29, 2026
- genfeedai/genfeed.aitheir own version, first seen Nov 29, 2026
Used with
Projects with it also use chinese-git-workflow, chinese-code-review 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-git-workflow
适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖
Also in 9 projects that use this
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
SethGammonSkillascii-diagram
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.
Also in 4 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 versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- obra/superpowers★ 314ksame name
- NousResearch/hermes-agent★ 267ksame name
- open-metadata/OpenMetadata★ 16ksame name
- mdiri-ai/SoduWork★ 9.1ksame name
- jnMetaCode/superpowers-zh★ 8.6ksame name
- openai/plugins★ 8.4ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- ChrisWiles/claude-code-showcase★ 6.1ksame name
- farm-fe/farm★ 5.6ksame name
181 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 repository36 other files it gives its agents.
- skills/writing-skills/references/agents.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- backend-servicesSkill
- brainstormingSkill
- changing-legacy-codeSkill
- choosing-a-stackSkill
- ci-quality-gatesSkill
- database-changesSkill
- desktop-developmentSkill
- dispatching-parallel-agentsSkill
- docsSkill
- executing-plansSkill
- finishSkill
- git-workflowSkill
- implementSkill
- kit-initSkill
- mobile-developmentSkill
- new-taskSkill
- observabilitySkill
- onboarding-existing-codebaseSkill
- payments-and-moneySkill
- pos-systemsSkill
- publishing-documentsSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-reviewSkill
- test-driven-developmentSkill
- ui-motionSkill
- updating-dependenciesSkill
- using-skillsSkill
- verification-before-completionSkill
- verifySkill
- web-frontendSkill
- writing-documentationSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Reproduce it reliably: Write down the exact steps.
- Distinctive: line 21
Read the telemetry first: when it happens outside your machine: a bounded, read-only query of logs and traces by request or trace id …
- Distinctive: line 35
Write a failing test that reproduces the bug (test-driven-development).
- Distinctive: line 37
Verify: the new test passes, the full suite passes, and the original symptom is gone (verification-before-completion).
- Distinctive: line 38
If three fixes have failed, stop: When each fix reveals a new problem somewhere else, the architecture is wrong, not the hypothesis.
“Common” is measured: kept by at least 6 in 10 of the 178 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
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRSTA fix for a symptom is a failure. The pressure to guess is highest under time pressure, so that is exactly when to follow the process.
Phase 1: Root cause
- Read the whole error: the stack trace, codes, file and line numbers, and warnings above the error.
- Reproduce it reliably. Write down the exact steps. If you can't reproduce it, gather more data; don't guess. A failure that no longer reproduces is not evidence that it's gone.
- Check what changed:
git log/git diff, dependency bumps, config, environment, data, OS or device version. That is the trigger. Keep it apart from the cause: why that change makes it fail. - Run a control. Only
git log <base>..HEADis a branch's own work; older commits came with the base (usuallymain). On a branch, before changing anything, run the failing test, build or job ongit merge-base HEAD <base>(stash and switch, or a worktree). If it fails there too, it's inherited: report that with the run as evidence, never adjust the assertion, and fix it only at a proven cause, in its own commit. Choosing controls, testing hypotheses:references/failure-evidence.md. - Read the telemetry first when it happens outside your machine: a bounded, read-only query of logs and traces by request or trace id (observability).
- Instrument the boundaries. In multi-component systems (UI → API → service → DB; CI → build → signing; POS → fiscal device), log what enters and leaves each boundary once. That shows where it breaks.
- Trace backwards from the bad value to where it first appears (
references/root-cause-tracing.md). Fix at the source.
Phase 2: Pattern
Find similar code that works in this repo. Read the reference implementation completely. List every difference, however small, and every dependency or assumption involved.
Phase 3: Hypothesis
State one hypothesis: "X is the cause because Y." Test it with the smallest change, changing one variable at a time. If it's wrong, form a new hypothesis; don't stack fixes. If you don't understand something, say so and research or ask.
Phase 4: Fix
- Write a failing test that reproduces the bug (test-driven-development).
- Make one fix at the root cause. No "while I'm here" changes.
- Verify: the new test passes, the full suite passes, and the original symptom is gone (verification-before-completion).
- If three fixes have failed, stop. When each fix reveals a new problem somewhere else, the architecture is wrong, not the hypothesis. Present what you learned and discuss with the user before a fourth attempt.
If the cause really is external (network, vendor, timing), document what you investigated and handle it at the boundary in the product code, on the current version: a timeout, a retry with idempotency or a clear error, with a test for it. Keep a workaround narrow and easy to remove (a pin to the last good release counts when the upstream report proves the regression), link that report, and add logging for next time. Tests themselves never retry (test-standard, "Retries"). Most "no root cause" conclusions are incomplete investigations.
Symptom remedies are not fixes
Without a proven cause, these make the symptom go away and leave the defect in place:
- a raised timeout, or an added retry, wait or sleep;
- a rollback, downgrade or pinned version;
- a skipped, quarantined or re-run test, or a weaker assertion;
- an error caught and dropped, or filtered out of logs and alerts;
- a looser validation, type or lint rule.
Use one only when the user asks for it (report it as a remedy, with the unproven cause in Follow-ups), or when a rollback, confirmed by whoever owns the release, mitigates a live incident and the defect is still fixed on the current version. A timeout or limit set by the requirements is a requirement, not a remedy. When the evidence shows one of these is the real fix (a timeout below the measured normal latency), say so and show the measurement.
Signals you're off track
The user asks "is that actually happening?", "stop guessing", or "we're stuck?". You catch yourself thinking "quick fix now, investigate later", "let's try changing X", or listing fixes before tracing data. Go back to Phase 1.
| Excuse | Reality |
| "It's obviously X" | Seeing a symptom isn't understanding the cause. Prove it. |
| "Several fixes at once saves time" | Then you can't tell which one worked, and they cause new bugs. |
| "One more attempt" (after 2+) | That's an architecture question. Stop. |
| "Flaky, just rerun it" | Flaky means there's a race or shared state. Find it, and fix it by test-standard's "Flaky tests" criteria. |
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.

