systematic-debugging
Skill1 starsChanged 15 days agoApache-2.0View on GitHub
Diagnose a reproducible bug, test failure, build failure, integration failure, performance regression, or other unexpected behavior by finding its root cause before proposing or implementing a fix. Do not use for planned feature work without an observed failure.
190 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, 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-triotheir own version, 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 · 0
None found.
Wrote their own version · 190
- obra/superpowers★ 314ksame name
- 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
- openai/plugins★ 7.8ksame name
- ChrisWiles/claude-code-showcase★ 6.1ksame name
- farm-fe/farm★ 5.6ksame name
- microsoft/FluidFramework★ 4.9ksame name
180 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-pr-reviewSkill
- ai-slop-detectorSkill
- architecture-reviewSkill
- codebase-orientationSkill
- code-reviewSkill
- dependency-upgradeSkill
- documentation-reviewSkill
- frontend-quality-reviewSkill
- git-github-workflowSkill
- harness-adaptationSkill
- implementation-planningSkill
- parallel-multi-agentSkill
- quality-hardeningSkill
- reduce-code-sizeSkill
- repository-guidance-authoringSkill
- requirements-and-designSkill
- review-feedback-resolutionSkill
- rules-and-skills-auditSkill
- security-reviewSkill
- skill-authoringSkill
- skill-discoverySkill
- skill-optimizerSkill
- skill-reviewerSkill
- threat-modelingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 177 edited versions we read keep these.
13
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
- Distinctive: line 22
Side effects: read-only investigation first.
- Distinctive: line 46
Treat history traversal as temporary diagnostic state, not as the new working state.
- Distinctive: line 49
Before git bisect, checking out an older revision, or otherwise moving HEAD:
- Distinctive: line 52
Do not begin history traversal in a dirty working tree if the operation could mix, hide, or overwrite those changes.
- Distinctive: line 58
Always leave the repository in the starting state when the diagnostic experiment ends.
- Distinctive: line 61
Before applying a fix, verify that HEAD, branch, and working-tree state are the intended implementation state rather than an intermediate …
- Distinctive: line 70
Treat historical revisions as untrusted executable code.
- Distinctive: line 95
If the hypothesis fails, record what the evidence ruled out and return to investigation.
- Distinctive: line 104
Run reproductions in an isolated scratch workspace or with clean test fixtures.
- Very specific: line 106
Verify that local caches, build artifacts (.pyc, build outputs), and environment variables are reset between reproduction attempts to …
- Distinctive: line 109
Do not hide an unknown behind a catch-all fallback, retry loop, delay, or broad refactor.
- Distinctive: line 111
Do not print credentials, tokens, private data, or sensitive production payloads while gathering evidence.
- Distinctive: line 113
If the failure depends on an unavailable external system, document the attempted reproduction, the missing evidence, and the safest local …
- Distinctive: line 127
Stop before changing code when the failure is not reproducible, the evidence supports multiple unresolved causes, the next action has …
“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
Contract
- Input: an observed failure, expected behavior, current state, and the evidence available from the repository or runtime.
- Output: a reproducible diagnosis, one evidence-backed root-cause hypothesis, the smallest safe correction, and verification evidence—or a bounded blocked report when the cause cannot be established.
- Owner: investigation and repair of an observed failure.
- Non-goals: general code review, speculative redesign, production intervention without authority, or stacking unrelated cleanup into a fix.
- Side effects: read-only investigation first; edits, commands with external effects, and commits follow the user's authority and repository rules.
Workflow
- Confirm that an observed failure exists. If the request is a general review,
planned feature, or quality pass without failing behavior, route it to
code-review,quality-hardening, or the ordinary implementation workflow instead of inventing a reproduction or root cause. - Preserve the failure. Read the complete error, stack trace, warning, or failing assertion. Record the exact command, inputs, environment, and expected versus observed result.
Reproduce it with the smallest reliable case. If it is intermittent, narrow the conditions and gather more evidence before guessing. For timing or concurrency failures, wait on an observable condition with a bounded timeout instead of adding an arbitrary sleep or retry-until-green loop.
For regressions and intermittent failures:
- Regression bisection: For regressions after recent changes, inspect git commit history and diffs across the failing subsystem. Reproduce the test on the last known-working commit to confirm that the failure is a genuine regression rather than an environment issue.
git bisect(with a run script) is the preferred deterministic tool for isolating the regressing commit; use it instead of manual history scanning for non-trivial histories.- Intermittent / CI-only failures: Compare environment differences (OS, architecture, lockfiles, timezone, concurrency). Execute the reproduction under a stress loop (20–50 iterations) to establish an empirical baseline failure rate before testing fixes.
Repository-state safety during history debugging
Treat history traversal as temporary diagnostic state, not as the new working state.
Before git bisect, checking out an older revision, or otherwise moving HEAD:
- Record the starting branch or commit and
git status --short. - Do not begin history traversal in a dirty working tree if the operation could mix, hide, or overwrite those changes. Prefer an isolated worktree for non-trivial investigations.
- Record any environment, fixture, dependency, or generated-state change needed to reproduce older revisions; a checkout alone does not prove the historical environment is equivalent.
- Always leave the repository in the starting state when the diagnostic
experiment ends. For
git bisect, rungit bisect reseteven after an error, timeout, or successful identification of the culprit. - Before applying a fix, verify that HEAD, branch, and working-tree state are the intended implementation state rather than an intermediate diagnostic revision.
A correctly identified regressing commit does not justify leaving the caller's repository in detached HEAD, bisect mode, or a modified diagnostic state.
Historical-execution safety
Treat historical revisions as untrusted executable code. Before an automated
bisect, inspect the fixed driver and the historical build or test entrypoint it
invokes. Prefer a disposable worktree, container, or VM with no ambient
credentials, a minimal environment, constrained write access, and network disabled
when feasible. Keep the bisect driver outside the changing checkout. If historical
revisions cannot be executed safely, use read-only history inspection or report the
automated bisect as BLOCKED; worktree isolation alone is not process isolation.
- Establish the change and data path. Inspect the relevant diff, recent changes, configuration, dependencies, and a known-working neighboring path. Trace the bad value or state backward to its first incorrect origin.
- State one falsifiable hypothesis: “X is the root cause because Y.” Run the smallest diagnostic or test that can distinguish it from the alternatives. For performance regressions, keep commit, input data, environment, dependency state, and load comparable; include appropriate warm-up and repeated measurements. Choose a metric and distribution appropriate to the system and use the project's supported profiler when attribution is needed. A single timing sample is not sufficient evidence. Record measurement commands and relevant tool versions, distinguish signal from variance, and do not generate production load without explicit authority. Change one variable at a time and do not bundle multiple fixes into the experiment.
- Once the cause is confirmed, add or update the smallest regression test or repeatable reproduction at the failing seam. Apply the minimal root-cause correction, then run the focused test, the original reproduction, and the repository's relevant complete gate.
- If the hypothesis fails, record what the evidence ruled out and return to investigation. Continue only while the next experiment can add discriminating evidence. If repeated attempts leave the same uncertainty, stop and discuss whether the architecture, available evidence, or problem framing is wrong.
Boundaries and gotchas
- Prohibit the "null-check bandage": Never fix a crash by merely suppressing the symptom at the crash site (e.g., adding
if obj is None: return, default fallbacks, ortry/except: pass) unless the component contract explicitly dictates that null/empty input is valid at that layer. Always trace upstream to find why the invariant was violated at the data origin. - Maintain diagnostic environment hygiene:
- Run reproductions in an isolated scratch workspace or with clean test fixtures.
- Cleanly remove all temporary debug prints, logging probes, and diagnostic mocks before finalizing the root-cause fix.
- Verify that local caches, build artifacts (
.pyc, build outputs), and environment variables are reset between reproduction attempts to prevent Heisenbugs.
- A passing health check, linter, retry, or timeout does not establish root cause; verify the failing behavior itself.
- Do not hide an unknown behind a catch-all fallback, retry loop, delay, or broad refactor.
- Do not print credentials, tokens, private data, or sensitive production payloads while gathering evidence. Redact examples and minimize scope.
- If the failure depends on an unavailable external system, document the attempted reproduction, the missing evidence, and the safest local check; do not claim the fix is verified.
Report and stop condition
Report:
- observed behavior and exact reproduction;
- evidence collected and the confirmed root cause;
- correction and regression protection;
- focused and complete verification results;
- residual uncertainty, environment limits, or follow-up work.
Stop before changing code when the failure is not reproducible, the evidence supports multiple unresolved causes, the next action has external side effects without authority, or further attempts cannot add meaningful evidence.
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.

