[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NZ9YX63922VJFTAMEW5033":3,"skill-same:01M6NZ9YX63922VJFTAMEW5033":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":41,"commitSha":57,"skillDirectory":58,"forksCount":13,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M6NZ9YX63922VJFTAMEW5033","code-showcase-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.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fcode-showcase-systematic-debugging\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"debugging","code","systematic debugging","showcase","code showcase systematic debugging","systematic","systematic-debugging","four-phase","fixes","bugs","tree","critical","wed","main","community","debugging methodology","root cause first","use","analysis","license","2026-11-10 10:12:30",false,"---\nname: code-showcase-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.\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FChrisWiles\u002Fclaude-code-showcase\u002Ftree\u002Fmain\u002F.claude\u002Fskills\u002Fsystematic-debugging\nsource_repo: ChrisWiles\u002Fclaude-code-showcase\nsource_type: community\ndate_added: 2026-07-01\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FChrisWiles\u002Fclaude-code-showcase\u002Fblob\u002Fmain\u002FLICENSE\n---\n\n# Systematic Debugging\n## When to Use\n\nUse this skill when you need 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## 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\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n","# Systematic Debugging\n## When to Use\n\nUse this skill when you need 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## 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\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n",{"name":5,"risk":39,"source":53,"license":14,"date_added":54,"description":7,"source_repo":55,"source_type":42,"license_source":56},"https:\u002F\u002Fgithub.com\u002FChrisWiles\u002Fclaude-code-showcase\u002Ftree\u002Fmain\u002F.claude\u002Fskills\u002Fsystematic-debugging",1782864000000,"ChrisWiles\u002Fclaude-code-showcase","https:\u002F\u002Fgithub.com\u002FChrisWiles\u002Fclaude-code-showcase\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fcode-showcase-systematic-debugging","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill code-showcase-systematic-debugging",{"tool":68,"command":69},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill code-showcase-systematic-debugging",{"tool":71,"command":72},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill code-showcase-systematic-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fcode-showcase-systematic-debugging\u002FSKILL.md",true,[],[77,103,127,151,175,198],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":86,"publishedAt":48},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[83],{"categoryNo":84,"categoryName":85,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",[87,88,89,90,91,92,79,93,94,95,96,97,42,41,98,39,99,100,101,102],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","devops-security","access","configure","only","active","scope","scripts","relevant","implementing",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":48},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[110,111,112,113,114,115,116,117,118,119,120,121,122,97,123,42,124,125,39,126],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":48},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[134,135,136,137,138,139,140,47,141,142,143,144,145,42,41,146,147,148,149,150],"transcript","youtube transcript","youtube","safe","github","codex","research","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":164,"publishedAt":48},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[157,160,163],{"categoryNo":158,"categoryName":159,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":161,"categoryName":162,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[134,135,136,165,137,166,138,139,47,167,168,169,170,143,171,42,41,172,173,174],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":185,"publishedAt":48},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[181,184],{"categoryNo":182,"categoryName":183,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":161,"categoryName":162,"taxonomyType":20,"taxonomyTypeDesc":21},[136,186,187,114,137,188,189,190,29,47,169,191,192,193,194,41,195,146,196,197],"youtube notetaker","notetaker","workflow","official","notes","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":205,"publishedAt":48},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[204],{"categoryNo":158,"categoryName":159,"taxonomyType":20,"taxonomyTypeDesc":21},[206,136,207,208,137,166,167,209,210,168,169,170,143,211,171,42,41,172,212,149],"youtube full","full","google","server","dlp","credits","automatic"]