{"data":{"slug":"discovered-6d6fff71de07e61f81580fd2ea64bff8bcf6f1ab43d4644b","title":"Systematic Debugger","summary":"Diagnose and resolve bugs, crashes, flaky tests, runtime errors, build failures, or unexpected behavior in code by identifying and proving the root cause before applying fixes.","url":"https:\/\/skillshunter.net\/skills\/discovered-6d6fff71de07e61f81580fd2ea64bff8bcf6f1ab43d4644b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-6d6fff71de07e61f81580fd2ea64bff8bcf6f1ab43d4644b","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-6d6fff71de07e61f81580fd2ea64bff8bcf6f1ab43d4644b.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-6d6fff71de07e61f81580fd2ea64bff8bcf6f1ab43d4644b\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before using this skill, ensure you have the exact error message, full stack trace, environment details, and minimal reproduction steps. Prepare to read the code along the execution path from entry point to failure point.","instructions":"---\nname: systematic-debugger\ndescription: >-\n  Use this skill when diagnosing bugs, crashes, flaky tests, runtime errors, build failures,\n  or unexpected behavior in code. K\u00edch ho\u1ea1t khi ng\u01b0\u1eddi d\u00f9ng y\u00eau c\u1ea7u s\u1eeda l\u1ed7i, debug, t\u00ecm nguy\u00ean nh\u00e2n\n  l\u1ed7i ch\u01b0\u01a1ng tr\u00ecnh, ph\u00e2n t\u00edch stack trace ho\u1eb7c kh\u1eafc ph\u1ee5c s\u1ef1 c\u1ed1 ph\u1ea7n m\u1ec1m.\n---\n\n# Systematic Debugger\n\nEliminate guesswork. Never apply blind trial-and-error edits before identifying and proving the root cause.\n\n## Workflow\n\n1. **Reproduce Reliably**\n   - Capture the exact error message, full stack trace, environment details, and minimal reproduction steps.\n   - Confirm whether the failure is deterministic, environment-specific, or timing\/state-dependent.\n2. **Isolate & Form Hypotheses**\n   - Read the exact code along the execution path from entry point to failure point.\n   - Form 1\u20133 ranked hypotheses about the root cause (e.g., invalid state, race condition, wrong assumption, dependency mismatch, config\/env issue).\n3. **Verify Root Cause with Evidence**\n   - Gather targeted evidence (inspect logs, run a minimal test, check git diff \/ recent changes, print boundary inputs\/outputs).\n   - Confirm *why* the bug happens\u2014not just *where* it surfaces.\n4. **Implement a Minimal, Safe Fix**\n   - Fix the root cause rather than masking symptoms (avoid bare `try\/catch` swallowing errors or arbitrary delays).\n   - Check adjacent call sites for the same bug pattern.\n5. **Prove the Fix & Prevent Regressions**\n   - Add or update an automated test that fails before the fix and passes after.\n   - Re-run the original reproduction steps and the relevant test suite.\n\n## Output Format\n\n- **Root Cause**: Clear explanation with file and line references.\n- **Fix Applied**: Minimal diff summary and why it is safe.\n- **Verification**: Exact commands run and observed results.\n","use_cases":["Diagnose and fix runtime errors in software","Investigate and resolve flaky tests","Analyze stack traces to identify root causes","Debug build failures and unexpected behavior in code","Implement safe fixes based on verified root causes"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thanhn08502-cmd\/ai-skills-dev\/blob\/af74c372e97d85cb399661fdda66320b15c4eaa5\/skills\/systematic-debugger\/SKILL.md","source_commit":"af74c372e97d85cb399661fdda66320b15c4eaa5","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T09:03:58.000000Z","updated_at":"2026-12-02T09:15:52.000000Z","seo_title":"Systematic Debugger for Code Diagnostics and Root Cause Analysis","seo_description":"Use the Systematic Debugger skill to eliminate guesswork in debugging by identifying and proving the root cause of bugs, crashes, and unexpected behavior in code before\u5b9e\u65bd","seo_keywords":["systematic debugging","root cause analysis","code diagnostics","bug resolution","software debugging","debugging workflow","error investigation","test failure analysis"]}}