[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ENX51SGFMNJ97F5MERZ5W2":3,"skill-same:01M6ENX51SGFMNJ97F5MERZ5W2":71},{"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":23,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6ENX51SGFMNJ97F5MERZ5W2","systematic-debugging",null,"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.","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\u002Fchriswiles\u002Fsystematic-debugging\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36],"systematic debugging","debugging","systematic","test","root cause analysis","methodology","first","analysis","troubleshooting","behavior","use","root cause first","debugging methodology","2026-11-10 10:12:30",false,"---\nname: systematic-debugging\ndescription: 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.\n---\n\n# Systematic Debugging\n\n## Core Principle\n\n**NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.**\n\nNever apply symptom-focused patches that mask underlying problems. Understand WHY something fails before attempting to fix it.\n\n## The Four-Phase Framework\n\n### Phase 1: Root Cause Investigation\n\nBefore touching any code:\n\n1. **Read error messages thoroughly** - Every word matters\n2. **Reproduce the issue consistently** - If you can't reproduce it, you can't verify a fix\n3. **Examine recent changes** - What changed before this started failing?\n4. **Gather diagnostic evidence** - Logs, stack traces, state dumps\n5. **Trace data flow** - Follow the call chain to find where bad values originate\n\n**Root Cause Tracing Technique:**\n```\n1. Observe the symptom - Where does the error manifest?\n2. Find immediate cause - Which code directly produces the error?\n3. Ask \"What called this?\" - Map the call chain upward\n4. Keep tracing up - Follow invalid data backward through the stack\n5. Find original trigger - Where did the problem actually start?\n```\n\n**Key principle:** Never fix problems solely where errors appear—always trace to the original trigger.\n\n### Phase 2: Pattern Analysis\n\n1. **Locate working examples** - Find similar code that works correctly\n2. **Compare implementations completely** - Don't just skim\n3. **Identify differences** - What's different between working and broken?\n4. **Understand dependencies** - What does this code depend on?\n\n### Phase 3: Hypothesis and Testing\n\nApply the scientific method:\n\n1. **Formulate ONE clear hypothesis** - \"The error occurs because X\"\n2. **Design minimal test** - Change ONE variable at a time\n3. **Predict the outcome** - What should happen if hypothesis is correct?\n4. **Run the test** - Execute and observe\n5. **Verify results** - Did it behave as predicted?\n6. **Iterate or proceed** - Refine hypothesis if wrong, implement if right\n\n### Phase 4: Implementation\n\n1. **Create failing test case** - Captures the bug behavior\n2. **Implement single fix** - Address root cause, not symptoms\n3. **Verify test passes** - Confirms fix works\n4. **Run full test suite** - Ensure no regressions\n5. **If fix fails, STOP** - Re-evaluate hypothesis\n\n**Critical rule:** If THREE or more fixes fail consecutively, STOP. This signals architectural problems requiring discussion, not more patches.\n\n## Red Flags - Process Violations\n\nStop immediately if you catch yourself thinking:\n\n- \"Quick fix for now, investigate later\"\n- \"One more fix attempt\" (after multiple failures)\n- \"This should work\" (without understanding why)\n- \"Let me just try...\" (without hypothesis)\n- \"It works on my machine\" (without investigating difference)\n\n## Warning Signs of Deeper Problems\n\n**Consecutive fixes revealing new problems in different areas** indicates architectural issues:\n\n- Stop patching\n- Document what you've found\n- Discuss with team before proceeding\n- Consider if the design needs rethinking\n\n## Common Debugging Scenarios\n\n### Test Failures\n\n```\n1. Read the FULL error message and stack trace\n2. Identify which assertion failed and why\n3. Check test setup - is the test environment correct?\n4. Check test data - are mocks\u002Ffixtures correct?\n5. Trace to the source of unexpected value\n```\n\n### Runtime Errors\n\n```\n1. Capture the full stack trace\n2. Identify the line that throws\n3. Check what values are undefined\u002Fnull\n4. Trace backward to find where bad value originated\n5. Add validation at the source\n```\n\n### \"It worked before\"\n\n```\n1. Use git bisect to find the breaking commit\n2. Compare the change with previous working version\n3. Identify what assumption changed\n4. Fix at the source of the assumption violation\n```\n\n### Intermittent Failures\n\n```\n1. Look for race conditions\n2. Check for shared mutable state\n3. Examine async operation ordering\n4. Look for timing dependencies\n5. Add deterministic waits or proper synchronization\n```\n\n## Debugging Checklist\n\nBefore claiming a bug is fixed:\n\n- [ ] Root cause identified and documented\n- [ ] Hypothesis formed and tested\n- [ ] Fix addresses root cause, not symptoms\n- [ ] Failing test created that reproduces bug\n- [ ] Test now passes with fix\n- [ ] Full test suite passes\n- [ ] No \"quick fix\" rationalization used\n- [ ] Fix is minimal and focused\n\n## Success Metrics\n\nSystematic debugging achieves ~95% first-time fix rate vs ~40% with ad-hoc approaches.\n\nSigns you're doing it right:\n- Fixes don't create new bugs\n- You can explain WHY the bug occurred\n- Similar bugs don't recur\n- Code is better after the fix, not just \"working\"\n\n## Integration with Other Skills\n\n- **testing-patterns**: Create test that reproduces the bug before fixing\n","# Systematic Debugging\n\n## Core Principle\n\n**NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.**\n\nNever apply symptom-focused patches that mask underlying problems. Understand WHY something fails before attempting to fix it.\n\n## The Four-Phase Framework\n\n### Phase 1: Root Cause Investigation\n\nBefore touching any code:\n\n1. **Read error messages thoroughly** - Every word matters\n2. **Reproduce the issue consistently** - If you can't reproduce it, you can't verify a fix\n3. **Examine recent changes** - What changed before this started failing?\n4. **Gather diagnostic evidence** - Logs, stack traces, state dumps\n5. **Trace data flow** - Follow the call chain to find where bad values originate\n\n**Root Cause Tracing Technique:**\n```\n1. Observe the symptom - Where does the error manifest?\n2. Find immediate cause - Which code directly produces the error?\n3. Ask \"What called this?\" - Map the call chain upward\n4. Keep tracing up - Follow invalid data backward through the stack\n5. Find original trigger - Where did the problem actually start?\n```\n\n**Key principle:** Never fix problems solely where errors appear—always trace to the original trigger.\n\n### Phase 2: Pattern Analysis\n\n1. **Locate working examples** - Find similar code that works correctly\n2. **Compare implementations completely** - Don't just skim\n3. **Identify differences** - What's different between working and broken?\n4. **Understand dependencies** - What does this code depend on?\n\n### Phase 3: Hypothesis and Testing\n\nApply the scientific method:\n\n1. **Formulate ONE clear hypothesis** - \"The error occurs because X\"\n2. **Design minimal test** - Change ONE variable at a time\n3. **Predict the outcome** - What should happen if hypothesis is correct?\n4. **Run the test** - Execute and observe\n5. **Verify results** - Did it behave as predicted?\n6. **Iterate or proceed** - Refine hypothesis if wrong, implement if right\n\n### Phase 4: Implementation\n\n1. **Create failing test case** - Captures the bug behavior\n2. **Implement single fix** - Address root cause, not symptoms\n3. **Verify test passes** - Confirms fix works\n4. **Run full test suite** - Ensure no regressions\n5. **If fix fails, STOP** - Re-evaluate hypothesis\n\n**Critical rule:** If THREE or more fixes fail consecutively, STOP. This signals architectural problems requiring discussion, not more patches.\n\n## Red Flags - Process Violations\n\nStop immediately if you catch yourself thinking:\n\n- \"Quick fix for now, investigate later\"\n- \"One more fix attempt\" (after multiple failures)\n- \"This should work\" (without understanding why)\n- \"Let me just try...\" (without hypothesis)\n- \"It works on my machine\" (without investigating difference)\n\n## Warning Signs of Deeper Problems\n\n**Consecutive fixes revealing new problems in different areas** indicates architectural issues:\n\n- Stop patching\n- Document what you've found\n- Discuss with team before proceeding\n- Consider if the design needs rethinking\n\n## Common Debugging Scenarios\n\n### Test Failures\n\n```\n1. Read the FULL error message and stack trace\n2. Identify which assertion failed and why\n3. Check test setup - is the test environment correct?\n4. Check test data - are mocks\u002Ffixtures correct?\n5. Trace to the source of unexpected value\n```\n\n### Runtime Errors\n\n```\n1. Capture the full stack trace\n2. Identify the line that throws\n3. Check what values are undefined\u002Fnull\n4. Trace backward to find where bad value originated\n5. Add validation at the source\n```\n\n### \"It worked before\"\n\n```\n1. Use git bisect to find the breaking commit\n2. Compare the change with previous working version\n3. Identify what assumption changed\n4. Fix at the source of the assumption violation\n```\n\n### Intermittent Failures\n\n```\n1. Look for race conditions\n2. Check for shared mutable state\n3. Examine async operation ordering\n4. Look for timing dependencies\n5. Add deterministic waits or proper synchronization\n```\n\n## Debugging Checklist\n\nBefore claiming a bug is fixed:\n\n- [ ] Root cause identified and documented\n- [ ] Hypothesis formed and tested\n- [ ] Fix addresses root cause, not symptoms\n- [ ] Failing test created that reproduces bug\n- [ ] Test now passes with fix\n- [ ] Full test suite passes\n- [ ] No \"quick fix\" rationalization used\n- [ ] Fix is minimal and focused\n\n## Success Metrics\n\nSystematic debugging achieves ~95% first-time fix rate vs ~40% with ad-hoc approaches.\n\nSigns you're doing it right:\n- Fixes don't create new bugs\n- You can explain WHY the bug occurred\n- Similar bugs don't recur\n- Code is better after the fix, not just \"working\"\n\n## Integration with Other Skills\n\n- **testing-patterns**: Create test that reproduces the bug before fixing\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fchriswiles\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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging",{"tool":57,"command":58},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill systematic-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchriswiles\u002Fsystematic-debugging\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"skill-report.json","REFERENCE","参考文档",11041,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchriswiles\u002Fsystematic-debugging\u002Fskill-report.json",[72,84,94,103,109,116],{"skillNo":73,"name":74,"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":75,"categories":76,"keywords":80,"publishedAt":37},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[77],{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[81,82,83],"model","model hierarchy","model hierarchy skill",{"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":90,"publishedAt":37},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[89],{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},[91,92,93],"MCP","zoom","zoom mcp",{"skillNo":95,"name":96,"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":97,"categories":98,"keywords":99,"publishedAt":37},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[100,101,102,92],"sdk","zoom apps sdk","apps",{"skillNo":104,"name":105,"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":106,"categories":107,"keywords":108,"publishedAt":37},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"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":112,"categories":113,"keywords":115,"publishedAt":37},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[114],{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},[111],{"skillNo":117,"name":118,"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":119,"categories":120,"keywords":121,"publishedAt":37},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]