debugging-mastery
Structured debugging methodology, root cause analysis, logging strategies, and troubleshooting workflows
npx skills add cosmicstack-labs/mercury-agent-skills --skill debugging-mastery --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Debugging Mastery A structured approach to finding and fixing bugs systematically — from initial symptom to permanent resolution. ## Core Principles ### 1. Understand Before You Fix The biggest debugging mistake is applying a fix before understanding the root cause. Correlation is not causation. Always prove you understand *why* a bug happens before changing code. ### 2. Isolate Before You Investigate Narrow the search space. A bug that manifests in 100 lines is harder to find than one isolated to 10 lines. Binary search the code, the data, and the environment. ### 3. Fix the Root Cause, Not the Symptom Patching symptoms creates technical debt. Firefighting is necessary, but it should always be followed by a permanent fix that addresses the underlying systemic issue. ### 4. Make It Reproducible First If you can't reproduce a bug reliably, you can't fix it. Invest in reproduction before investigation. A failing test is worth a thousand log statements. --- ## Debugging Maturity Model | Level | Approach | Tools | Prevention | |-------|----------|-------|------------| | **1: Reactive** | Random printf guessing | console.log, print statements | No prevention | | **2: Basic** | Increme
- Core Principles
- 1. Understand Before You Fix
- 2. Isolate Before You Investigate
- 3. Fix the Root Cause, Not the Symptom
- 4. Make It Reproducible First
- Debugging Maturity Model
- Actionable Guidance
- The Scientific Method of Debugging
- The Debugging Toolkit
- Root Cause Analysis (RCA)
- Troubleshooting Workflows
- Debugging by Category
- Building Reproducible Test Cases
- Common Mistakes
What does the debugging-mastery skill do?
Structured debugging methodology, root cause analysis, logging strategies, and troubleshooting workflows
How do I install it?
Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill debugging-mastery --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From cosmicstack-labs/mercury-agent-skills, a repository with 364 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.