[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F742WB6VSG3GST4Z491ABH":3,"skill-same:01M7F742WB6VSG3GST4Z491ABH":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F742WB6VSG3GST4Z491ABH","debug",null,"alexj11324\u002FMikka","alexj11324","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F183887963?v=4","01M7F72W5NYK4AXQCEH0PZM81E","Zhixuan Jiang","01M7F72W69V101X48H9PZVBB46",87,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: debug\ndescription: Systematic debugging assistant. Always use this skill when investigating a bug, error, crash, unexpected behavior, or failing test, even for seemingly simple issues. Use when the user says \"it's broken\", \"this doesn't work\", \"I'm getting a weird error\", \"why is this failing\", \"help me figure out why X happens\", \"I'm getting a TypeError\u002FNullPointerException\u002F500 error\", or any time the root cause is unknown. Do not attempt to fix code without first reading this skill: frame the problem, form a hypothesis, and narrow scope before touching anything.\n---\n\n# Debug\n\nDebugging is hypothesis-driven investigation, not random exploration. The goal is to find the root cause, not just a fix that makes the symptom disappear.\n\n## Phase 1: Frame the problem\n\nBefore touching any code, establish:\n\n1. **What is the expected behavior?** State it precisely.\n2. **What is the actual behavior?** Include exact error messages, stack traces, or wrong outputs, not summaries.\n3. **What changed recently?** A regression almost always has a cause. Ask if anything was deployed, upgraded, or modified before the symptom appeared.\n4. **Is the problem reproducible?** If yes, under what conditions exactly? If intermittent, what's the pattern?\n\nDon't skip this. Jumping to code before framing the problem wastes time and often leads to fixing the wrong thing.\n\n## Phase 2: Form a hypothesis\n\nState the most likely root cause as a falsifiable claim:\n\n> \"I think X is happening because Y.\"\n\nA good hypothesis is specific enough that you can design a test to disprove it. If you can't think of such a test, the hypothesis is too vague. Narrow it down.\n\nStart with the simplest explanation consistent with the evidence (Occam's razor). Common culprits, roughly in order of likelihood:\n\n- Wrong assumption about input data or state\n- Off-by-one, boundary condition, or null\u002Fundefined\n- Race condition or ordering dependency\n- Config or environment difference between working and broken context\n- A dependency behaving differently than expected (version change, API contract)\n- Logic error in a branch that's rarely exercised\n\n## Phase 3: Narrow the scope\n\n**For regressions**: Binary search the change history. Find the last known-good state, then bisect toward the first-bad commit. `git bisect` is your friend. This is almost always faster than reading code.\n\n**For logic bugs**: Narrow the reproduction case to the smallest possible input that still shows the problem. Each reduction eliminates a whole class of suspects.\n\n**For errors with stack traces**: Read the trace bottom-up (the innermost frame is where the problem actually is). Identify the first frame that's your own code, not library code; that's where to start reading.\n\n**For wrong outputs**: Trace data through the system. Pick a concrete example and follow it from entry point to wrong output. The first place the value diverges from expectation is the bug site.\n\n## Phase 4: Prove it before fixing it\n\nOnce you've identified a suspect, prove the hypothesis before writing any fix:\n\n- Add a targeted log, assertion, or breakpoint at the suspect location\n- Reproduce the bug deliberately with a minimal case\n- Verify you can make it fail reliably, then make it pass reliably\n\nIf you can't reproduce the failure with your hypothesis in place, you have the wrong hypothesis. Go back to Phase 2.\n\n## Phase 5: Fix at the root cause\n\nFix the underlying cause, not the symptom. Ask: \"If I make this change and the root cause is still present, could the bug resurface in a different form?\" If yes, you're treating a symptom.\n\nFixes should be:\n\n- Minimal: change only what's needed to correct the behavior\n- Targeted: don't refactor surrounding code while fixing a bug; that makes it harder to review and introduces risk\n\n## Phase 6: Verify and prevent recurrence\n\nAfter the fix:\n\n1. Confirm the original reproduction case passes\n2. Check for related cases the bug might have affected\n3. Write a test that captures the failure mode: one that would have caught this bug before it shipped\n\nThe test is not optional. If the bug was real, the test proves it's fixed and guards against regression.\n\n## When you're stuck\n\nIf you've been on the same hypothesis for more than ~20 minutes and it's not panning out:\n\n- State your current model of the system out loud; often the error surfaces while explaining it (rubber duck)\n- Ask: what assumption am I making that might be wrong?\n- Try the opposite hypothesis: what if the problem is _not_ in the place I'm looking?\n- Widen the scope: could this be environmental (different OS, different runtime version, different data)?\n\n## What to communicate\n\nWhen reporting progress:\n\n- Say which hypothesis you're testing, not just \"investigating\"\n- When you rule something out, say why; it helps the user understand the system too\n- When you find the root cause, explain the causal chain clearly: what condition led to what behavior\n","# Debug\n\nDebugging is hypothesis-driven investigation, not random exploration. The goal is to find the root cause, not just a fix that makes the symptom disappear.\n\n## Phase 1: Frame the problem\n\nBefore touching any code, establish:\n\n1. **What is the expected behavior?** State it precisely.\n2. **What is the actual behavior?** Include exact error messages, stack traces, or wrong outputs, not summaries.\n3. **What changed recently?** A regression almost always has a cause. Ask if anything was deployed, upgraded, or modified before the symptom appeared.\n4. **Is the problem reproducible?** If yes, under what conditions exactly? If intermittent, what's the pattern?\n\nDon't skip this. Jumping to code before framing the problem wastes time and often leads to fixing the wrong thing.\n\n## Phase 2: Form a hypothesis\n\nState the most likely root cause as a falsifiable claim:\n\n> \"I think X is happening because Y.\"\n\nA good hypothesis is specific enough that you can design a test to disprove it. If you can't think of such a test, the hypothesis is too vague. Narrow it down.\n\nStart with the simplest explanation consistent with the evidence (Occam's razor). Common culprits, roughly in order of likelihood:\n\n- Wrong assumption about input data or state\n- Off-by-one, boundary condition, or null\u002Fundefined\n- Race condition or ordering dependency\n- Config or environment difference between working and broken context\n- A dependency behaving differently than expected (version change, API contract)\n- Logic error in a branch that's rarely exercised\n\n## Phase 3: Narrow the scope\n\n**For regressions**: Binary search the change history. Find the last known-good state, then bisect toward the first-bad commit. `git bisect` is your friend. This is almost always faster than reading code.\n\n**For logic bugs**: Narrow the reproduction case to the smallest possible input that still shows the problem. Each reduction eliminates a whole class of suspects.\n\n**For errors with stack traces**: Read the trace bottom-up (the innermost frame is where the problem actually is). Identify the first frame that's your own code, not library code; that's where to start reading.\n\n**For wrong outputs**: Trace data through the system. Pick a concrete example and follow it from entry point to wrong output. The first place the value diverges from expectation is the bug site.\n\n## Phase 4: Prove it before fixing it\n\nOnce you've identified a suspect, prove the hypothesis before writing any fix:\n\n- Add a targeted log, assertion, or breakpoint at the suspect location\n- Reproduce the bug deliberately with a minimal case\n- Verify you can make it fail reliably, then make it pass reliably\n\nIf you can't reproduce the failure with your hypothesis in place, you have the wrong hypothesis. Go back to Phase 2.\n\n## Phase 5: Fix at the root cause\n\nFix the underlying cause, not the symptom. Ask: \"If I make this change and the root cause is still present, could the bug resurface in a different form?\" If yes, you're treating a symptom.\n\nFixes should be:\n\n- Minimal: change only what's needed to correct the behavior\n- Targeted: don't refactor surrounding code while fixing a bug; that makes it harder to review and introduces risk\n\n## Phase 6: Verify and prevent recurrence\n\nAfter the fix:\n\n1. Confirm the original reproduction case passes\n2. Check for related cases the bug might have affected\n3. Write a test that captures the failure mode: one that would have caught this bug before it shipped\n\nThe test is not optional. If the bug was real, the test proves it's fixed and guards against regression.\n\n## When you're stuck\n\nIf you've been on the same hypothesis for more than ~20 minutes and it's not panning out:\n\n- State your current model of the system out loud; often the error surfaces while explaining it (rubber duck)\n- Ask: what assumption am I making that might be wrong?\n- Try the opposite hypothesis: what if the problem is _not_ in the place I'm looking?\n- Widen the scope: could this be environmental (different OS, different runtime version, different data)?\n\n## What to communicate\n\nWhen reporting progress:\n\n- Say which hypothesis you're testing, not just \"investigating\"\n- When you rule something out, say why; it helps the user understand the system too\n- When you find the root cause, explain the causal chain clearly: what condition led to what behavior\n",{},"main","4ae55457c0230cc1b0d4ab22ba0ac86662b8202d",".claude\u002Fskills\u002Fdebug",11,"https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka","https:\u002F\u002Faspectlylabs.com\u002Fmikka","https:\u002F\u002Fgithub.com\u002Falexj11324","2026-11-15 16:49:24",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add alexj11324\u002FMikka --skill debug",{"tool":37,"command":38},"bunx","bunx skills add alexj11324\u002FMikka --skill debug",{"tool":40,"command":41},"pnpm","pnpm dlx skills add alexj11324\u002FMikka --skill debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug\u002FSKILL.md",true,[],[46,52,58,65,72,79],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7F7DR2H1H14E5BJ8FFG73A3","run-report","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002Flib\u002Fself-improvement\u002Fskills\u002Frun-report\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7F7DN7QRPJM3QGP20AYQHRA","source-checking","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002Fagents\u002Fresearch-example\u002Fskills\u002Fsource-checking\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7F7DHXRSSGKW4CXVRTYTHRC","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7F7DAATWYFV4YFV0NNZ507V","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7F7D3TJ6E75PEFWNVXYREHZ","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7F7CYAB0GYT0R5KXY4SEPR8","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Falexj11324\u002FMikka\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-beats\u002FSKILL.md",[],[]]