plugins/workflow/skills/debugging/SKILL.md
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.
npx skillsauth add rbergman/dark-matter-marketplace debuggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 |
development
Initialize a new repository with standard scaffolding - git, gitignore, AGENTS.md, justfile, mise, beads, and timbers. Use when starting a new project or setting up an existing repo for Claude Code workflows.
data-ai
Activate at session start when using Agent Teams for complex multi-agent work. Establishes team lead role with delegation protocols, teammate spawning, model selection, and beads integration. You coordinate the team; teammates implement.
data-ai
Use when creating a worktree, setting up a worktree, starting feature work that needs isolation, or before executing implementation plans. Covers git worktree creation under .worktrees/, gitignore setup, beads integration, and merge guardrails.
data-ai
Activate when you are a delegated subagent (not the orchestrator). Establishes subagent protocol with terse returns, details to history/, file ownership boundaries, and escalation rules. You implement; orchestrator reviews and commits.