[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M719G792C1W620Z3S3NAD8K4":3,"skill-same:01M719G792C1W620Z3S3NAD8K4":60},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M719G792C1W620Z3S3NAD8K4","phase-gated-debugging",null,"Use when debugging any bug. Enforces a 5-phase protocol where code edits are blocked until root cause is confirmed. Prevents premature fix attempts.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fphase-gated-debugging\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"debugging","gated","phase gated debugging","phase","safe","code","protocol","fix","use","bug","community","root","root cause","when","2026","2026-11-10 10:12:30",false,"---\nname: phase-gated-debugging\ndescription: \"Use when debugging any bug. Enforces a 5-phase protocol where code edits are blocked until root cause is confirmed. Prevents premature fix attempts.\"\nrisk: safe\nsource: community\ndate_added: \"2026-03-28\"\n---\n\n# Phase-Gated Debugging\n\n## Overview\n\nAI coding agents see an error and immediately edit code. They guess at fixes, get it wrong, and spiral. This skill enforces a strict 5-phase protocol where you CANNOT edit source code until the root cause is identified and confirmed.\n\nBased on [claude-debug](https:\u002F\u002Fgithub.com\u002Fkrabat-l\u002Fclaude-debug) (full plugin with PreToolUse hook enforcement).\n\n## When to Use\n\nUse this skill when:\n\n- a bug keeps getting \"fixed\" without resolving the underlying issue\n- you need to slow an agent down and force disciplined debugging before code edits\n- the failure is intermittent, a regression, performance-related, or otherwise hard to isolate\n- you want an explicit user confirmation checkpoint before any fix is applied\n\n## The Protocol\n\n### Phase 1: REPRODUCE\nRun the failing command\u002Ftest. Capture the exact error. Run 2-3 times for consistency.\n- Do NOT read source code\n- Do NOT hypothesize\n- Do NOT edit any files\n\n### Phase 2: ISOLATE\nRead code. Add diagnostic logging marked `\u002F\u002F DEBUG`. Re-run with diagnostics. Binary search to narrow down.\n- Only `\u002F\u002F DEBUG` marked logging is allowed\n- Do NOT fix the bug even if you see it\n\n### Phase 3: ROOT CAUSE\nAnalyze WHY at the isolated location. Use \"5 Whys\" technique. Remove debug logging.\n\nState: \"This is my root cause analysis: [explanation]. Do you agree, or should I investigate further?\"\n\n**WAIT for user confirmation. Do NOT proceed without it.**\n\n### Phase 4: FIX\nRemove all `\u002F\u002F DEBUG` lines. Apply minimal change addressing confirmed root cause.\n- Only edit files related to root cause\n- Do NOT refactor unrelated code\n\n### Phase 5: VERIFY\nRun original failing test — must pass. Run related tests. For intermittent bugs, run 5+ times.\nIf verification fails: root cause was wrong, go back to Phase 2.\n\n## Bug-Type Strategies\n\n| Type | Technique |\n|------|-----------|\n| Crash\u002FPanic | Stack trace backward — trace the bad value to its source |\n| Wrong Output | Binary search — log midpoint, halve search space each iteration |\n| Intermittent | Compare passing vs failing run logs — find ordering divergence |\n| Regression | `git bisect` — find the offending commit |\n| Performance | Timing at stage boundaries — find the bottleneck |\n\n## Key Rules\n\n1. NEVER edit source code in phases 1-3 (except `\u002F\u002F DEBUG` in phase 2)\n2. NEVER proceed past phase 3 without user confirmation\n3. ALWAYS reproduce before investigating\n4. ALWAYS verify after fixing\n","# Phase-Gated Debugging\n\n## Overview\n\nAI coding agents see an error and immediately edit code. They guess at fixes, get it wrong, and spiral. This skill enforces a strict 5-phase protocol where you CANNOT edit source code until the root cause is identified and confirmed.\n\nBased on [claude-debug](https:\u002F\u002Fgithub.com\u002Fkrabat-l\u002Fclaude-debug) (full plugin with PreToolUse hook enforcement).\n\n## When to Use\n\nUse this skill when:\n\n- a bug keeps getting \"fixed\" without resolving the underlying issue\n- you need to slow an agent down and force disciplined debugging before code edits\n- the failure is intermittent, a regression, performance-related, or otherwise hard to isolate\n- you want an explicit user confirmation checkpoint before any fix is applied\n\n## The Protocol\n\n### Phase 1: REPRODUCE\nRun the failing command\u002Ftest. Capture the exact error. Run 2-3 times for consistency.\n- Do NOT read source code\n- Do NOT hypothesize\n- Do NOT edit any files\n\n### Phase 2: ISOLATE\nRead code. Add diagnostic logging marked `\u002F\u002F DEBUG`. Re-run with diagnostics. Binary search to narrow down.\n- Only `\u002F\u002F DEBUG` marked logging is allowed\n- Do NOT fix the bug even if you see it\n\n### Phase 3: ROOT CAUSE\nAnalyze WHY at the isolated location. Use \"5 Whys\" technique. Remove debug logging.\n\nState: \"This is my root cause analysis: [explanation]. Do you agree, or should I investigate further?\"\n\n**WAIT for user confirmation. Do NOT proceed without it.**\n\n### Phase 4: FIX\nRemove all `\u002F\u002F DEBUG` lines. Apply minimal change addressing confirmed root cause.\n- Only edit files related to root cause\n- Do NOT refactor unrelated code\n\n### Phase 5: VERIFY\nRun original failing test — must pass. Run related tests. For intermittent bugs, run 5+ times.\nIf verification fails: root cause was wrong, go back to Phase 2.\n\n## Bug-Type Strategies\n\n| Type | Technique |\n|------|-----------|\n| Crash\u002FPanic | Stack trace backward — trace the bad value to its source |\n| Wrong Output | Binary search — log midpoint, halve search space each iteration |\n| Intermittent | Compare passing vs failing run logs — find ordering divergence |\n| Regression | `git bisect` — find the offending commit |\n| Performance | Timing at stage boundaries — find the bottleneck |\n\n## Key Rules\n\n1. NEVER edit source code in phases 1-3 (except `\u002F\u002F DEBUG` in phase 2)\n2. NEVER proceed past phase 3 without user confirmation\n3. ALWAYS reproduce before investigating\n4. ALWAYS verify after fixing\n",{"name":5,"risk":23,"source":29,"date_added":39,"description":7},"2026-03-28","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fglobal\u002Fphase-gated-debugging","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill phase-gated-debugging",{"tool":52,"command":53},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill phase-gated-debugging",{"tool":55,"command":56},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill phase-gated-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fphase-gated-debugging\u002FSKILL.md",true,[],[61,71,78,86,92,100],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":72,"name":73,"nameZh":6,"description":74,"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":77,"publishedAt":70},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":70},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":87,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":70},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":70},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]