debugging-methodology
minagayid/Agents/skills/library/debugging-methodology/SKILL.md
Debug a failing program systematically — reproduce, isolate, hypothesize, fix, verify. Use when the user reports a bug, a crash, a failing test, or unexpected behavior.
Skill1 starsChanged 3 months ago
What's in it
- Debugging Methodology
- Loop
- Heuristics
- Guidelines
--- name: debugging-methodology description: Debug a failing program systematically — reproduce, isolate, hypothesize, fix, verify. Use when the user reports a bug, a crash, a failing test, or unexpected behavior. --- # Debugging Methodology Find root causes by evidence, not by guessing. ## Loop 1. **Reproduce reliably.** Get the exact steps, inputs, environment, and error/stack trace. A bug you can't reproduce, you can't confirm fixed. 2. **Isolate.** Shrink to the smallest failing case. Binary-search the space: comment out halves, `git bisect` across commits, or narrow the input until the failure flips. 3. **Read the actual error.** Stack traces and messages usually point near the cause — start there. 4. **Form one hypothesis** about the root cause and make a **prediction** you can test. 5. **Test it.** Add a targeted log/assert/breakpoint, inspect the real state, confirm or reject. Change one variable at a time. 6. **Fix the root cause**, not the symptom. Then verify the original repro passes. 7. **Prevent regression.** Add a test that fails without the fix and passes with it. ## Heuristics - Question assumptions: verify what the code *actually* does vs. what you think it does. - "It worked before" → check what changed (deps, config, data, recent commits). - Heisenbugs (timing/order-dependent) → suspect concurrency, shared state, or reliance on undefined ordering. - If truly stuck, explain the problem out loud step by step — the gap often surfaces itself. ## Guidelines - Keep a short log of what you tried and what you observed; don't re-test the same thing. - Don't ship a fix you can't explain — understand *why* it works.
More agent context in minagayid/Agents
25 other files this repository gives its agents.
Skill
- agent-project-scaffoldskills/agent-project-scaffold/SKILL.md
- accessibility-auditskills/library/accessibility-audit/SKILL.md
- changelog-keeperskills/library/changelog-keeper/SKILL.md
- code-review-checklistskills/library/code-review-checklist/SKILL.md
- conventional-commitsskills/library/conventional-commits/SKILL.md
- data-cleaningskills/library/data-cleaning/SKILL.md
- dependency-auditskills/library/dependency-audit/SKILL.md
- dockerfile-authorskills/library/dockerfile-author/SKILL.md
- exploratory-data-analysisskills/library/exploratory-data-analysis/SKILL.md
- github-actions-ciskills/library/github-actions-ci/SKILL.md
- incident-postmortemskills/library/incident-postmortem/SKILL.md
- kubernetes-manifestskills/library/kubernetes-manifest/SKILL.md
- pr-descriptionskills/library/pr-description/SKILL.md
- prompt-engineeringskills/library/prompt-engineering/SKILL.md
- react-componentskills/library/react-component/SKILL.md
- readme-generatorskills/library/readme-generator/SKILL.md
- refactoringskills/library/refactoring/SKILL.md
- rest-api-designerskills/library/rest-api-designer/SKILL.md
- secure-coding-reviewskills/library/secure-coding-review/SKILL.md
- sql-optimizerskills/library/sql-optimizer/SKILL.md
- technical-writingskills/library/technical-writing/SKILL.md
- terraform-moduleskills/library/terraform-module/SKILL.md
- threat-modelskills/library/threat-model/SKILL.md
- unit-test-writerskills/library/unit-test-writer/SKILL.md
- web-performanceskills/library/web-performance/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

