Programming · Analysis
systematic-debugging
/systematic-debugging
Four-phase debugging process - root cause first, then fix. Use when encountering bugs or unexpected behavior.
For whom
- Author
- itseffi ↗
- Repository
- agentic-os ↗
- Licence
- MIT
- Last repository change
- 07.10.2026
Assessment and security
100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 07.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Four-phase debugging process - root cause first, then fix. Use when encountering bugs or unexpected behavior.
Original author description
Four-phase debugging process - root cause first, then fix. Use when encountering bugs or unexpected behavior.
How it works
- The Iron Law
- The Four Phases
- Red Flags - STOP and Follow Process
- Quick Reference
- When to Use
- When Not to Use
Original SKILL.md headings · 112 lines, 493 words
SKILL.md preview
--- name: systematic-debugging description: Four-phase debugging process - root cause first, then fix. Use when encountering bugs or unexpected behavior. --- # Systematic Debugging Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes. ## The Iron Law ``` NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST ``` If you haven't completed Phase 1, you cannot propose fixes. ## The Four Phases ### Phase 1: Root Cause Investigation **BEFORE attempting ANY fix:** 1. **Read Error Messages Carefully** - Don't skip past errors or warnings - Read stack traces completely - Note line numbers, file paths, error codes 2. **Reproduce Consistently** - Can you trigger it reliably? - What are the exact steps? - If not reproducible, gather more data 3. **Check Recent Changes** - Git diff, recent commits - New dependencies, config changes - Environmental differences 4. **Trace Data Flow** - Where does bad value originate? - What called this with bad value? - Keep tracing up until you find the source ### Phase 2: Pattern Analysis 1. **Find Working Examples** - Locate similar working code in same codebase 2. **Compare Against References** - Read reference implementation completely - Don't skim - read every line 3. **Identify Differences** - What's different between working and broken? - List every difference, however small ### Phase 3: Hypothesis and Testing 1. **Form Single Hypothesis** - State clearly: "I think X is the root cause because Y" - Write it down 2. **Test Minimally** - Make the SMALLEST possible change - One variable at a time 3. **Verify Before Continuing** - Did it work? Yes -> Phase 4 - Didn't work? Form NEW hypothesis - DON'T add more fixes on top ### Phase 4: Implementation 1. **Create Failing Test Case** - Use the `tdd.md` skill 2. **Implement Single Fix** - ONE change at a time - No "while I'm here" improvements 3. **Verify Fix** - Test passes now? - No other tests broken? 4. **If 3+ Fixes Failed: Question Architecture** - Is this pattern fundamentally sound? - Should we refactor vs continue fixing symptoms? - Discuss before attempting more fixes ## Red Flags - STOP and Follow Process - "Quick fix for now, investigate later" - "Just try changing X and see if it works" - "I don't fully understand but this might work" - Proposing solutions before tracing data flow - "One more fix attempt" (when already tried 2+) **ALL mean: STOP. Return to Phase 1.** ## Quick Reference | Phase | Key Activities | Success Criteria | |-------|---------------|------------------| | 1. Root Cause | Read errors, reproduce, check changes | 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 | ## When to Use Use this skill when the task directly matches the workflow described above. ## When Not to Use Do not use this skill when the request is unrelated, low-stakes, or better handled by a simpler direct response.
Files in this package (2)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · itseffi/agentic-os | 100 | MIT |
| magnus919/agent-skills | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| foryourhealth111-pixel/Vibe-Skills | 100 | Apache-2.0 |
| GanyuanRan/Aegis | 100 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| jkaloger/lazyspec | 100 | MIT |
| innei/ryugi | 100 | MIT |
| yusixian/anjian | 100 | MIT |
Database snapshot: 13.11.2026 · package version 0dc10c32b478 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100debug-systematic
Apply a systematic four-phase debugging workflow when the user asks to debug an issue, investigate a bug, troubleshoot a problem, or find the root cause of unexpected behavior - 100debug
Use when encountering any bug, test failure, build break, or unexpected behavior — runs a 4-phase systematic debugging process before proposing any fix. Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Produces a `.orchestrator/debug/` artifact the fixer agent must reference. - 100code-showcase-systematic-debugging
Four-phase debugging methodology with root cause analysis. Use when investigating bugs, fixing test failures, or troubleshooting unexpected behavior. Emphasizes NO FIXES WITHOUT ROOT CAUSE FIRST. - 100code-showcase-systematic-debugging
Four-phase debugging methodology with root cause analysis. Use when investigating bugs, fixing test failures, or troubleshooting unexpected behavior. Emphasizes NO FIXES WITHOUT ROOT CAUSE FIRST. - 100debug
Systematic debugging workflow: reproduce first, write failing test, then fix. Use when encountering bugs, unexplained errors, or unexpected behavior. - 100codex-systematic-debugging
Use for bugs, test failures, broken behavior, or unexpected results; enforces 4-phase root-cause debugging before fixes.