[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EM50BAF4EWEBKTGXVYBR57":3,"skill-same:01M6EM50BAF4EWEBKTGXVYBR57":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6EM50BAF4EWEBKTGXVYBR57","systematic-debugging",null,"Systematic methodology for debugging bugs, test failures, and unexpected behavior.\nUse when encountering any technical issue before proposing fixes. Covers root cause\ninvestigation, pattern analysis, hypothesis testing, and fix implementation.\nUse ESPECIALLY when under time pressure, \"just one quick fix\" seems obvious, or\nyou've already tried multiple fixes. NOT for exploratory code reading.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"systematic debugging","debugging","systematic","technical","quick fix","pattern","time","issue","implementation","use","fix","behavior","testing","just","investigation","analysis","hypothesis","methodology","code","test","2026-11-10 10:12:30",false,"---\r\nname: systematic-debugging\r\ndescription: |\r\n  Systematic methodology for debugging bugs, test failures, and unexpected behavior.\r\n  Use when encountering any technical issue before proposing fixes. Covers root cause\r\n  investigation, pattern analysis, hypothesis testing, and fix implementation.\r\n  Use ESPECIALLY when under time pressure, \"just one quick fix\" seems obvious, or\r\n  you've already tried multiple fixes. NOT for exploratory code reading.\r\n---\r\n\r\n# Systematic Debugging\r\n\r\nRandom fixes waste time and create new bugs. Quick patches mask underlying issues.\r\n\r\n**Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.\r\n\r\n## The Iron Law\r\n\r\n```\r\nNO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST\r\n```\r\n\r\nIf you haven't completed Phase 1, you cannot propose fixes.\r\n\r\n---\r\n\r\n## The Four Phases\r\n\r\n### Phase 1: Root Cause Investigation\r\n\r\n**BEFORE attempting ANY fix:**\r\n\r\n1. **Read Error Messages Carefully**\r\n   - Don't skip past errors or warnings\r\n   - Read stack traces completely\r\n   - Note line numbers, file paths, error codes\r\n\r\n2. **Reproduce Consistently**\r\n   - Can you trigger it reliably?\r\n   - What are the exact steps?\r\n   - If not reproducible, gather more data - don't guess\r\n\r\n3. **Check Recent Changes**\r\n   - Git diff, recent commits\r\n   - New dependencies, config changes\r\n   - Environmental differences\r\n\r\n4. **Gather Evidence in Multi-Component Systems**\r\n\r\n   When system has multiple components (CI -> build -> signing, API -> service -> database):\r\n\r\n   ```\r\n   For EACH component boundary:\r\n     - Log what data enters component\r\n     - Log what data exits component\r\n     - Verify environment\u002Fconfig propagation\r\n\r\n   Run once to gather evidence showing WHERE it breaks\r\n   THEN analyze to identify failing component\r\n   ```\r\n\r\n5. **Trace Data Flow**\r\n\r\n   See [references\u002Froot-cause-tracing.md](references\u002Froot-cause-tracing.md) for backward tracing technique.\r\n\r\n   Quick version: Where does bad value originate? Keep tracing up until you find the source. Fix at source, not symptom.\r\n\r\n### Phase 2: Pattern Analysis\r\n\r\n1. **Find Working Examples** - Locate similar working code in same codebase\r\n2. **Compare Against References** - Read reference implementations COMPLETELY, don't skim\r\n3. **Identify Differences** - List every difference between working and broken\r\n4. **Understand Dependencies** - What settings, config, environment assumptions?\r\n\r\n### Phase 3: Hypothesis and Testing\r\n\r\n1. **Form Single Hypothesis** - \"I think X is the root cause because Y\"\r\n2. **Test Minimally** - SMALLEST possible change, one variable at a time\r\n3. **Verify Before Continuing** - Worked? Phase 4. Didn't? NEW hypothesis, don't stack fixes\r\n\r\n### Phase 4: Implementation\r\n\r\n1. **Create Failing Test Case** - Simplest reproduction, automated if possible\r\n2. **Implement Single Fix** - ONE change, no \"while I'm here\" improvements\r\n3. **Verify Fix** - Test passes? No regressions?\r\n\r\n4. **If Fix Doesn't Work:**\r\n   - Count: How many fixes have you tried?\r\n   - If \u003C 3: Return to Phase 1, re-analyze\r\n   - **If >= 3: STOP and question the architecture**\r\n\r\n5. **If 3+ Fixes Failed: Question Architecture**\r\n\r\n   Pattern indicating architectural problem:\r\n   - Each fix reveals new shared state\u002Fcoupling\r\n   - Fixes require \"massive refactoring\"\r\n   - Each fix creates new symptoms elsewhere\r\n\r\n   **STOP. Discuss with user before attempting more fixes.**\r\n\r\n---\r\n\r\n## Red Flags - STOP and Follow Process\r\n\r\nIf you catch yourself thinking:\r\n- \"Quick fix for now, investigate later\"\r\n- \"Just try changing X and see\"\r\n- \"Add multiple changes, run tests\"\r\n- \"I'm confident it's X, let me fix that\"\r\n- \"One more fix attempt\" (when already tried 2+)\r\n- Proposing solutions before tracing data flow\r\n\r\n**ALL of these mean: STOP. Return to Phase 1.**\r\n\r\n---\r\n\r\n## Supporting Techniques\r\n\r\n### Defense-in-Depth\r\n\r\nWhen you fix a bug, validate at EVERY layer:\r\n\r\n| Layer | Purpose | Example |\r\n|-------|---------|---------|\r\n| Entry Point | Reject invalid input at API boundary | `if (!dir) throw new Error('dir required')` |\r\n| Business Logic | Ensure data makes sense for operation | Validate before processing |\r\n| Environment Guards | Prevent dangerous ops in specific contexts | Refuse git init outside tmpdir in tests |\r\n| Debug Instrumentation | Capture context for forensics | Log with stack trace before dangerous ops |\r\n\r\nSingle validation feels sufficient, but different code paths bypass it. Make bugs structurally impossible.\r\n\r\n### Condition-Based Waiting\r\n\r\nFlaky tests guess at timing. Wait for actual conditions instead:\r\n\r\n```python\r\n# BAD: Guessing at timing\r\nawait asyncio.sleep(0.05)\r\nresult = get_result()\r\n\r\n# GOOD: Wait for condition\r\nawait wait_for(lambda: get_result() is not None)\r\nresult = get_result()\r\n```\r\n\r\nPattern:\r\n```python\r\nasync def wait_for(condition, timeout_ms=5000):\r\n    start = time.time()\r\n    while True:\r\n        if condition():\r\n            return\r\n        if (time.time() - start) * 1000 > timeout_ms:\r\n            raise TimeoutError(\"Condition not met\")\r\n        await asyncio.sleep(0.01)  # Poll every 10ms\r\n```\r\n\r\n---\r\n\r\n## Common Rationalizations\r\n\r\n| Excuse | Reality |\r\n|--------|---------|\r\n| \"Issue is simple, don't need process\" | Simple issues have root causes too. Process is fast for simple bugs. |\r\n| \"Emergency, no time for process\" | Systematic debugging is FASTER than guess-and-check thrashing. |\r\n| \"Just try this first, then investigate\" | First fix sets the pattern. Do it right from the start. |\r\n| \"I see the problem, let me fix it\" | Seeing symptoms != understanding root cause. |\r\n| \"One more fix attempt\" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |\r\n\r\n---\r\n\r\n## Verification\r\n\r\nRun: `python scripts\u002Fverify.py`\r\n\r\n## References\r\n\r\n- [references\u002Froot-cause-tracing.md](references\u002Froot-cause-tracing.md) - Trace bugs backward through call stack","# Systematic Debugging\r\n\r\nRandom fixes waste time and create new bugs. Quick patches mask underlying issues.\r\n\r\n**Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.\r\n\r\n## The Iron Law\r\n\r\n```\r\nNO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST\r\n```\r\n\r\nIf you haven't completed Phase 1, you cannot propose fixes.\r\n\r\n---\r\n\r\n## The Four Phases\r\n\r\n### Phase 1: Root Cause Investigation\r\n\r\n**BEFORE attempting ANY fix:**\r\n\r\n1. **Read Error Messages Carefully**\r\n   - Don't skip past errors or warnings\r\n   - Read stack traces completely\r\n   - Note line numbers, file paths, error codes\r\n\r\n2. **Reproduce Consistently**\r\n   - Can you trigger it reliably?\r\n   - What are the exact steps?\r\n   - If not reproducible, gather more data - don't guess\r\n\r\n3. **Check Recent Changes**\r\n   - Git diff, recent commits\r\n   - New dependencies, config changes\r\n   - Environmental differences\r\n\r\n4. **Gather Evidence in Multi-Component Systems**\r\n\r\n   When system has multiple components (CI -> build -> signing, API -> service -> database):\r\n\r\n   ```\r\n   For EACH component boundary:\r\n     - Log what data enters component\r\n     - Log what data exits component\r\n     - Verify environment\u002Fconfig propagation\r\n\r\n   Run once to gather evidence showing WHERE it breaks\r\n   THEN analyze to identify failing component\r\n   ```\r\n\r\n5. **Trace Data Flow**\r\n\r\n   See [references\u002Froot-cause-tracing.md](references\u002Froot-cause-tracing.md) for backward tracing technique.\r\n\r\n   Quick version: Where does bad value originate? Keep tracing up until you find the source. Fix at source, not symptom.\r\n\r\n### Phase 2: Pattern Analysis\r\n\r\n1. **Find Working Examples** - Locate similar working code in same codebase\r\n2. **Compare Against References** - Read reference implementations COMPLETELY, don't skim\r\n3. **Identify Differences** - List every difference between working and broken\r\n4. **Understand Dependencies** - What settings, config, environment assumptions?\r\n\r\n### Phase 3: Hypothesis and Testing\r\n\r\n1. **Form Single Hypothesis** - \"I think X is the root cause because Y\"\r\n2. **Test Minimally** - SMALLEST possible change, one variable at a time\r\n3. **Verify Before Continuing** - Worked? Phase 4. Didn't? NEW hypothesis, don't stack fixes\r\n\r\n### Phase 4: Implementation\r\n\r\n1. **Create Failing Test Case** - Simplest reproduction, automated if possible\r\n2. **Implement Single Fix** - ONE change, no \"while I'm here\" improvements\r\n3. **Verify Fix** - Test passes? No regressions?\r\n\r\n4. **If Fix Doesn't Work:**\r\n   - Count: How many fixes have you tried?\r\n   - If \u003C 3: Return to Phase 1, re-analyze\r\n   - **If >= 3: STOP and question the architecture**\r\n\r\n5. **If 3+ Fixes Failed: Question Architecture**\r\n\r\n   Pattern indicating architectural problem:\r\n   - Each fix reveals new shared state\u002Fcoupling\r\n   - Fixes require \"massive refactoring\"\r\n   - Each fix creates new symptoms elsewhere\r\n\r\n   **STOP. Discuss with user before attempting more fixes.**\r\n\r\n---\r\n\r\n## Red Flags - STOP and Follow Process\r\n\r\nIf you catch yourself thinking:\r\n- \"Quick fix for now, investigate later\"\r\n- \"Just try changing X and see\"\r\n- \"Add multiple changes, run tests\"\r\n- \"I'm confident it's X, let me fix that\"\r\n- \"One more fix attempt\" (when already tried 2+)\r\n- Proposing solutions before tracing data flow\r\n\r\n**ALL of these mean: STOP. Return to Phase 1.**\r\n\r\n---\r\n\r\n## Supporting Techniques\r\n\r\n### Defense-in-Depth\r\n\r\nWhen you fix a bug, validate at EVERY layer:\r\n\r\n| Layer | Purpose | Example |\r\n|-------|---------|---------|\r\n| Entry Point | Reject invalid input at API boundary | `if (!dir) throw new Error('dir required')` |\r\n| Business Logic | Ensure data makes sense for operation | Validate before processing |\r\n| Environment Guards | Prevent dangerous ops in specific contexts | Refuse git init outside tmpdir in tests |\r\n| Debug Instrumentation | Capture context for forensics | Log with stack trace before dangerous ops |\r\n\r\nSingle validation feels sufficient, but different code paths bypass it. Make bugs structurally impossible.\r\n\r\n### Condition-Based Waiting\r\n\r\nFlaky tests guess at timing. Wait for actual conditions instead:\r\n\r\n```python\r\n# BAD: Guessing at timing\r\nawait asyncio.sleep(0.05)\r\nresult = get_result()\r\n\r\n# GOOD: Wait for condition\r\nawait wait_for(lambda: get_result() is not None)\r\nresult = get_result()\r\n```\r\n\r\nPattern:\r\n```python\r\nasync def wait_for(condition, timeout_ms=5000):\r\n    start = time.time()\r\n    while True:\r\n        if condition():\r\n            return\r\n        if (time.time() - start) * 1000 > timeout_ms:\r\n            raise TimeoutError(\"Condition not met\")\r\n        await asyncio.sleep(0.01)  # Poll every 10ms\r\n```\r\n\r\n---\r\n\r\n## Common Rationalizations\r\n\r\n| Excuse | Reality |\r\n|--------|---------|\r\n| \"Issue is simple, don't need process\" | Simple issues have root causes too. Process is fast for simple bugs. |\r\n| \"Emergency, no time for process\" | Systematic debugging is FASTER than guess-and-check thrashing. |\r\n| \"Just try this first, then investigate\" | First fix sets the pattern. Do it right from the start. |\r\n| \"I see the problem, let me fix it\" | Seeing symptoms != understanding root cause. |\r\n| \"One more fix attempt\" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |\r\n\r\n---\r\n\r\n## Verification\r\n\r\nRun: `python scripts\u002Fverify.py`\r\n\r\n## References\r\n\r\n- [references\u002Froot-cause-tracing.md](references\u002Froot-cause-tracing.md) - Trace bugs backward through call stack",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging\u002FSKILL.md",true,[67,73,79],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Froot-cause-tracing.md","REFERENCE","参考文档",3449,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging\u002Freferences\u002Froot-cause-tracing.md",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fverify.py","SCRIPT","脚本",1015,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging\u002Fscripts\u002Fverify.py",{"path":80,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":81,"sourceHtmlUrl":82},"skill-report.json",15071,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fsystematic-debugging\u002Fskill-report.json",[84,93,102,111,117,123],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[90,91,92],"model","model hierarchy","model hierarchy skill",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[99,100,101],"MCP","zoom","zoom mcp",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[108,109,110,100],"sdk","zoom apps sdk","apps",{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[119],{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[125]]