From dm-work
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Requires root cause investigation before any fix attempts. Random fixes waste time and create new bugs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dm-work:debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: Find root cause before attempting fixes. Symptom fixes are failure.
Investigate root cause before attempting any fix. If you haven't completed Phase 1, you cannot propose fixes.
Any technical issue:
Especially when:
Complete each phase before proceeding to the next.
Before attempting any fix:
Read Error Messages Carefully
Reproduce Consistently
Check Recent Changes
Gather Evidence in Multi-Component Systems
For EACH component boundary:
- Log what data enters
- Log what data exits
- Verify environment/config propagation
Run once to gather evidence showing WHERE it breaks
THEN investigate that specific component
Trace Data Flow
Find Working Examples
Compare Against References
Identify Differences
Form Single Hypothesis
Test Minimally
Verify Before Continuing
Create Failing Test Case
Implement Single Fix
Verify Fix
Circuit Breaker — 2+ Approaches Failed
If you have attempted 2 or more distinct approaches to the same problem:
Stop and regroup — a third attempt without new information is unlikely to succeed.
Instead:
Cycling through 3-4 failed approaches wastes entire sessions and erodes confidence in each subsequent fix.
If you catch yourself thinking:
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
| Approach | Time to Fix | First-Time Fix Rate | New Bugs |
|---|---|---|---|
| Systematic | 15-30 min | 95% | Near zero |
| Random fixes | 2-3 hours | 40% | Common |
npx claudepluginhub rbergman/dark-matter-marketplace --plugin dm-workEnforces systematic root cause analysis before fixes for bugs, test failures, unexpected behavior, performance issues, and build failures.
Enforces systematic root cause investigation for bugs, test failures, and unexpected behavior through four phases: investigation, pattern analysis, hypothesis testing, and implementation.
Enforces four-phase debugging (root cause investigation, pattern analysis, hypothesis testing, implementation) for bugs, test failures, performance issues, and unexpected behavior before any fixes.