[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGXARBPMMEWE5KJZSZ731J":3,"skill-same:01M6JGXARBPMMEWE5KJZSZ731J":64},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6JGXARBPMMEWE5KJZSZ731J","systematic-debugging",null,"4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"systematic debugging","debugging","systematic","bug-fix","test","with","error","users","pattern","reports","bug","evidence","use","fix","behavior","verify","hypothesis","monitoring","protocol","2026-11-10 10:12:30",false,"---\nname: systematic-debugging\ndescription: >-\n  4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use\n  when investigating any error, failure, or unexpected behavior, handling\n  bug reports from users or monitoring, or diagnosing test failures with\n  non-obvious causes.\nlicense: MIT\n---\n# Systematic Debugging\n\n4-phase protocol for bug fixing and error investigation. No guess-and-check.\n\n## When to Use\nCode-level root-cause via a failing test — evidence before fixes, no\nguess-and-check. Its sibling for *production* trouble is **incident-response**: a\nlive outage with an on-call \u002F mitigation dimension starts there (stop the\nbleeding first) and only then drops into this protocol for the underlying bug.\nIf there's no running-system urgency, you're in the right place.\n\n## Phase 1: Evidence Gathering\n- Read full stack traces and error logs.\n- Inspect environment state (env vars, active processes, disk space).\n- Map affected files using `rg` and `fd`.\n\n## Phase 2: Pattern Analysis\n- Is this isolated or part of a larger pattern?\n- Identify blast radius: what else could this affect?\n- Check if it's a regression from a recent change (`git log`, `git bisect`).\n\n## Phase 3: Hypothesis & Strategy\n- State a falsifiable hypothesis: \"The error happens because [X] is in state [Y].\"\n- Design a minimal reproduction script or failing test.\n- Only then draft the fix.\n\n## Phase 4: Implementation & Verification\n- Apply minimal, surgical changes.\n- Run the reproduction script to confirm the fix.\n- Run the full test suite for regression check.\n- A task is not done until behavioral correctness is verified.\n\n## Completion\n- Root cause identified and documented\n- Fix applied with minimal surgical changes\n- Reproduction script or failing test confirms the fix\n- Full test suite passes (no regressions)\n\n## Bundled Rules\n\n### Pessimistic Verification\n1. **Anti-Momentum**: Do NOT proceed to the next step until the current one is physically verified (tests, lint, check command).\n2. **Assumption Audit**: Before execution, list assumptions. If testable, test first.\n3. **Foundation First**: When modifying shared components, sanity check after every file modification.\n4. **No Premature Optimization**: Do not clean up unrelated code during a critical fix.\n\n## Anti-Patterns\n- Guess-and-check — changing things randomly hoping it works\n- Fixing symptoms instead of root cause — the bug will return\n- Swallowing the failure, returning a default, or skipping the crashing case, while the cause stays. That handler is not the fix. The fix is the change that makes the failing test green because the cause is gone.\n- Skipping regression check — fix one bug, introduce two more\n","# Systematic Debugging\n\n4-phase protocol for bug fixing and error investigation. No guess-and-check.\n\n## When to Use\nCode-level root-cause via a failing test — evidence before fixes, no\nguess-and-check. Its sibling for *production* trouble is **incident-response**: a\nlive outage with an on-call \u002F mitigation dimension starts there (stop the\nbleeding first) and only then drops into this protocol for the underlying bug.\nIf there's no running-system urgency, you're in the right place.\n\n## Phase 1: Evidence Gathering\n- Read full stack traces and error logs.\n- Inspect environment state (env vars, active processes, disk space).\n- Map affected files using `rg` and `fd`.\n\n## Phase 2: Pattern Analysis\n- Is this isolated or part of a larger pattern?\n- Identify blast radius: what else could this affect?\n- Check if it's a regression from a recent change (`git log`, `git bisect`).\n\n## Phase 3: Hypothesis & Strategy\n- State a falsifiable hypothesis: \"The error happens because [X] is in state [Y].\"\n- Design a minimal reproduction script or failing test.\n- Only then draft the fix.\n\n## Phase 4: Implementation & Verification\n- Apply minimal, surgical changes.\n- Run the reproduction script to confirm the fix.\n- Run the full test suite for regression check.\n- A task is not done until behavioral correctness is verified.\n\n## Completion\n- Root cause identified and documented\n- Fix applied with minimal surgical changes\n- Reproduction script or failing test confirms the fix\n- Full test suite passes (no regressions)\n\n## Bundled Rules\n\n### Pessimistic Verification\n1. **Anti-Momentum**: Do NOT proceed to the next step until the current one is physically verified (tests, lint, check command).\n2. **Assumption Audit**: Before execution, list assumptions. If testable, test first.\n3. **Foundation First**: When modifying shared components, sanity check after every file modification.\n4. **No Premature Optimization**: Do not clean up unrelated code during a critical fix.\n\n## Anti-Patterns\n- Guess-and-check — changing things randomly hoping it works\n- Fixing symptoms instead of root cause — the bug will return\n- Swallowing the failure, returning a default, or skipping the crashing case, while the cause stays. That handler is not the fix. The fix is the change that makes the failing test green because the cause is gone.\n- Skipping regression check — fix one bug, introduce two more\n",{"name":5,"license":15,"description":7},"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsystematic-debugging",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add muratovv\u002Fai-hats --skill systematic-debugging",{"tool":56,"command":57},"bunx","bunx skills add muratovv\u002Fai-hats --skill systematic-debugging",{"tool":59,"command":60},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill systematic-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",true,[],[65,90,96,114,137,151],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":38},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[37,72,73,74,75,76,77,78,79,80,31,81,82,83,84,85,86,87,88,89],"Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":91,"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":92,"categories":93,"keywords":94,"publishedAt":38},"01M6PVF7HATBEX1G7N50E2QT57","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[19,20,21,23,37,36,35,34,33,32,31,30,29,28,27,26,25,24,22,95],"phase",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":38},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[],[103,104,105,106,107,33,108,31,109,27,110,111,112,87,113],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,31,131,132,133,134,135,136],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[144,145,146,147,148,149,31,150,87],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[],[158,159,160,161,124,162,163,164,130,33,31,165,166,85,167,168,169,170,171,172],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]