debug-issue
Skill1 starsChanged 43 days agoMITView on GitHub
Diagnose an observed software failure systematically, identify the root cause with evidence, apply the smallest justified fix, and verify the failure is resolved without introducing regressions.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- marinvch/Cortextheir own version, first seen Nov 1, 2026
- rumotion/ai-agent-project-templatetheir own version, first seen Nov 1, 2026
- NVIDIA/kumo-enginetheir own version, first seen Oct 20, 2026
- ashvin-to/BaseMemtheir own version, first seen Oct 19, 2026
- rikilamadrid/lorekeeperword for word, first seen Oct 13, 2026
- Arasz/ai-badgertheir own version, first seen Oct 11, 2026
Used with
Projects with it also use explore-codebase, refactor-safely and 5 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.
srclightSkillexplore-codebase
This skill should be used when the user asks to "explore this codebase", "understand this project", "give me an overview", "how does this work", "onboard me", "walk me through the architecture", "map the codebase", or any request to understand a codebase's structure, architecture, or design.
Also in 5 projects that use this
srclightSkillrefactor-safely
This skill should be used when the user asks to "refactor", "rename", "move", "change a function signature", "extract a method", "delete unused code", "clean up", or any modification that could break callers or dependents. Provides a pre-change safety checklist using srclight's graph tools to assess blast radius before touching code.
Also in 5 projects that use this
zbruhnkeSkillrefactor-code
Refactor code to improve clarity and maintainability without changing behavior. Use when improving readability, reducing complexity, or eliminating duplication.
Also in 3 projects that use this
DockerSkillreview-changes
Review uncommitted or recently committed documentation changes for correctness, coherence, and style compliance. Use before creating a PR to catch issues. "review my changes", "review the diff", "check the fix before submitting", "does this look right".
Also in 4 projects that use this
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 4 projects that use this
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 1
- rikilamadrid/lorekeeper★ 1100% same
Edited · 0
None found.
Wrote their own version · 16
- tirth8205/code-review-graph★ 33ksame name
- glowingkitty/OpenMates★ 53same name
- NVIDIA/kumo-engine★ 50same name
- samirpatil2000/skills★ 17same name
- emaraschio/cursor-commands★ 9same name
- phmatray/ai-migration-kit★ 4same name
- phmatray/tagout★ 4same name
- Arasz/ai-badger★ 3same name
- imMamdouhaboammar/get-things-done★ 2same name
- ashvin-to/BaseMem★ 1same name
6 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 repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- blog-post-redactorSkill
- challenge-meSkill
- debate-meSkill
- debug-issueSkill
- handoffSkill
- hooksmithSkill
- kickstart-pathfinderSkill
- learn-codebaseSkill
- learn-featureSkill
- learning-reviewSkill
- map-systemSkill
- orchestrateSkill
- prototypeSkill
- quiz-meSkill
- reflectSkill
- render-artifactSkill
- reverse-engineerSkill
- roleSkill
- setup-trackerSkill
- skillsmithSkill
- teach-architectureSkill
- teach-featureSkill
- ticketSkill
- to-specsSkill
- to-ticketsSkill
- whereamiSkill
- blog-post-redactorSkill
- challenge-meSkill
- debate-meSkill
- handoffSkill
- hooksmithSkill
- kickstart-pathfinderSkill
- learn-codebaseSkill
- learn-featureSkill
- learning-reviewSkill
- map-systemSkill
- orchestrateSkill
- prototypeSkill
- quiz-meSkill
- reflectSkill
- render-artifactSkill
- reverse-engineerSkill
- roleSkill
- setup-trackerSkill
- skillsmithSkill
- teach-architectureSkill
- teach-featureSkill
- ticketSkill
- to-specsSkill
- to-ticketsSkill
- whereamiSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. 0 are common, 25 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
25
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use Debug Issue when there is a concrete unexpected behavior such as:
- Distinctive: line 30
Do not use it merely because implementation work is difficult.
- Very specific: line 32
If the task is planned construction, use /ticket start.
- Very specific: line 34
If the goal is reviewing completed implementation for possible defects, use /ticket review.
- Very specific: line 36
If the real question is broad understanding of the repository, use learn-codebase.
- Distinctive: line 48
Before proposing a fix, define:
- Distinctive: line 58
Prefer the smallest reliable reproduction.
- Distinctive: line 60
If the failure cannot be reproduced, preserve the available evidence and state that limitation explicitly.
- Distinctive: line 62
Do not manufacture certainty.
- Distinctive: line 66
Read only the code, logs, tests, configuration, dependencies, and context relevant to the failure.
- Distinctive: line 70
Do not begin with broad refactoring.
- Distinctive: line 72
Do not change unrelated code while still determining the cause.
- Distinctive: line 85
Prefer hypotheses that explain all known symptoms rather than only one.
- Distinctive: line 87
Do not create a long speculative list.
- Distinctive: line 91
Test the cheapest hypothesis that meaningfully reduces uncertainty.
- Distinctive: line 98
run one targeted test
- Distinctive: line 101
check one dependency or configuration assumption
- Distinctive: line 107
Avoid random edits intended only to "see if it works."
- Distinctive: line 111
Do not call something the root cause merely because changing it makes the symptom disappear.
- Distinctive: line 120
If the evidence only supports a workaround or probable cause, say so.
- Distinctive: line 129
avoid dependency, architecture, schema, security, or workflow changes without required approval
- Distinctive: line 130
prefer a focused regression test when appropriate
- Distinctive: line 132
If the correct fix expands beyond the active feature or approval boundary, stop and explain the decision required.
- Distinctive: line 145
no unrelated behavior changed
- Distinctive: line 147
Do not declare success only because the code compiles or one unrelated test passes.
- Distinctive: line 151
Stop and report rather than thrashing when:
- Distinctive: line 159
When stopping, preserve what has been ruled out so the next attempt does not restart from zero.
- Distinctive: line 195
If unresolved, state the exact next useful investigation step and what should not be repeated.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Debug Issue
Debug an observed failure by reducing uncertainty before changing code.
The goal is not to try fixes until something works.
The goal is to explain the failure well enough that the smallest correct fix becomes justified.
Reproduce before repairing.
When to use
Use Debug Issue when there is a concrete unexpected behavior such as:
- a failing test
- runtime error
- broken feature
- regression
- incorrect output
- integration failure
- environment-specific failure
- intermittent behavior that needs isolation
- production or staging behavior that differs from expectation
Do not use it merely because implementation work is difficult.
If the task is planned construction, use /ticket start.
If the goal is reviewing completed implementation for possible defects, use /ticket review.
If the real question is broad understanding of the repository, use learn-codebase.
Goal
Answer:
What is failing, why is it failing, and what evidence proves the explanation?
Then apply the smallest justified correction and verify the original failure no longer occurs.
1. Establish the failure
Before proposing a fix, define:
- expected behavior
- actual behavior
- where the failure occurs
- how it was observed
- whether it is reproducible
- relevant environment or conditions
- known recent changes when relevant
Prefer the smallest reliable reproduction.
If the failure cannot be reproduced, preserve the available evidence and state that limitation explicitly.
Do not manufacture certainty.
2. Inspect before changing
Read only the code, logs, tests, configuration, dependencies, and context relevant to the failure.
Identify the execution path involved.
Do not begin with broad refactoring.
Do not change unrelated code while still determining the cause.
3. Form hypotheses
Produce a small ranked set of plausible explanations.
For each hypothesis state:
- why it fits the evidence
- what evidence would support it
- what evidence would disprove it
- the cheapest useful test
Prefer hypotheses that explain all known symptoms rather than only one.
Do not create a long speculative list.
4. Test discriminating evidence
Test the cheapest hypothesis that meaningfully reduces uncertainty.
Change one explanatory variable at a time when practical.
Examples:
- inspect a value at the failure boundary
- run one targeted test
- compare working and failing environments
- trace one request
- check one dependency or configuration assumption
- temporarily instrument the relevant path
- isolate one integration
A debugging action should answer a question.
Avoid random edits intended only to "see if it works."
5. Identify the root cause
Do not call something the root cause merely because changing it makes the symptom disappear.
A root-cause claim should explain:
- why the failure occurred
- why it occurred under the observed conditions
- why the evidence supports this explanation
- why competing explanations are less likely
If the evidence only supports a workaround or probable cause, say so.
6. Choose the smallest justified fix
Once the cause is sufficiently established:
- fix the cause rather than only the visible symptom when practical
- preserve existing behavior outside the failure
- avoid unrelated cleanup
- avoid dependency, architecture, schema, security, or workflow changes without required approval
- prefer a focused regression test when appropriate
If the correct fix expands beyond the active feature or approval boundary, stop and explain the decision required.
7. Verify
Verification must include the original failure.
Where relevant also verify:
- the reproduction now passes
- nearby behavior still works
- regression tests pass
- edge/failure states remain correct
- temporary instrumentation is removed
- no unrelated behavior changed
Do not declare success only because the code compiles or one unrelated test passes.
8. Stop conditions
Stop and report rather than thrashing when:
- 2–3 grounded hypotheses have been tested without reducing uncertainty
- necessary evidence or environment access is unavailable
- reproduction is too unstable to support a safe fix
- the likely fix requires an unapproved architectural, dependency, security, data, or destructive change
- the observed behavior conflicts with documented requirements and a human decision is needed
When stopping, preserve what has been ruled out so the next attempt does not restart from zero.
Output
Return:
Failure
Expected vs actual behavior and reproduction status.
Evidence
The relevant observations, logs, tests, or code paths.
Hypotheses tested
What was tested and what each result ruled in or out.
Root cause
The established cause, probable cause, or remaining uncertainty.
Fix
The smallest change made or recommended.
Verification
How the original failure and relevant regression surface were checked.
Residual risk
Anything still uncertain or unverified.
Handoff
If unresolved, state the exact next useful investigation step and what should not be repeated.
Boundaries
debug-issue diagnoses an observed failure.
It does not:
- implement unrelated feature scope
- perform a general repository review
- replace
/ticket review - replace
/ticket complete - silently change architecture or dependencies
- turn debugging into opportunistic refactoring
- hide uncertainty behind a successful-looking workaround
Principles
Reproduce before repairing.
A debugging action should answer a question.
Change one explanatory variable at a time.
Fixes follow evidence, not guesses.
A symptom disappearing is not proof of root cause.
Preserve what has already been ruled out.
Stop when additional attempts are producing activity instead of information.
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.

