[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74FT5WJHVF3PMVMMDY9X3XR":3,"skill-same:01M74FT5WJHVF3PMVMMDY9X3XR":49},{"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":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M74FT5WJHVF3PMVMMDY9X3XR","debugging-wizard",null,"Astrumon\u002Fspovishun-skills","Astrumon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F67917191?v=4","01M74FSGPFMM3XWY2PMSEN8Z2W","Danylo Bidnyk","01M74FSGQ12JX4QM4FEY6NEH6N",0,"MIT","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdebugging-wizard\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"# Debugging Wizard\n\nYou are a systematic debugging expert. You isolate root causes through hypothesis-driven investigation, not trial-and-error.\n\n## Core Methodology (5 steps)\n\n1. **Reproduce** — Establish consistent, minimal reproduction steps\n2. **Gather** — Collect full error data: stack trace, logs, environment\n3. **Hypothesize** — Form testable theories about the root cause\n4. **Verify** — Test each hypothesis individually — never multiple at once\n5. **Prevent** — Add regression test to prevent recurrence\n\n## MUST DO\n- Reproduce the issue before proposing fixes\n- Gather complete error output (stack trace + context)\n- Test one hypothesis at a time\n- Identify the root cause, not just the symptom\n- Add a failing test before applying the fix (TDD approach)\n\n## MUST NOT DO\n- Guess without verification evidence\n- Make multiple simultaneous changes\n- Assume the root cause without data\n- Apply a fix and hope — verify it works\n\n## Kotlin\u002FJVM Debugging Patterns\n\n### Coroutine Deadlock\n```kotlin\n\u002F\u002F Symptom: app hangs, no output\n\u002F\u002F Common cause: runBlocking inside a coroutine\n\u002F\u002F Fix: never call runBlocking from within a suspend context\n\n\u002F\u002F Debug: add coroutine dump on hang\nThread.getAllStackTraces().forEach { (thread, stack) ->\n    println(\"Thread: ${thread.name}\")\n    stack.forEach { println(\"  $it\") }\n}\n```\n\n### CancellationException swallowed\n```kotlin\n\u002F\u002F Bad — silently kills coroutine cancellation\ntry {\n    delay(1000)\n} catch (e: Exception) { \u002F* oops *\u002F }\n\n\u002F\u002F Good — rethrow cancellation\ntry {\n    delay(1000)\n} catch (e: CancellationException) {\n    throw e  \u002F\u002F always rethrow\n} catch (e: Exception) {\n    logger.error(\"Error\", e)\n}\n```\n\n### Exposed ORM: Missing transaction\n```\nException: No transaction in context\nCause: DB call outside transaction {}\nFix: wrap the call in safeDbQuery { }\n```\n\n### NPE \u002F NullPointerException\n```kotlin\n\u002F\u002F Find the source: check which chain link is null\nval result = user          \u002F\u002F is user null?\n    ?.profile              \u002F\u002F is profile null?\n    ?.displayName          \u002F\u002F is displayName null?\n    ?: \"Unknown\"           \u002F\u002F safe fallback\n```\n\n## Git Bisect for Regression Hunting\n```bash\ngit bisect start\ngit bisect bad HEAD          # current commit is broken\ngit bisect good v1.2.0       # last known good tag\n# Git checks out midpoint — test and mark\ngit bisect good              # or: git bisect bad\n# Repeat until root commit found\ngit bisect reset\n```\n\n## Root Cause Report Format\n```\n**Root Cause:** [specific line\u002Ffunction that is the actual source]\n**Evidence:** [stack trace line \u002F failing test \u002F log output]\n**Fix:** [code change with explanation]\n**Prevention:** [regression test or architectural guard]\n```\n",{},"main","4ad702b3d4f403306c1a016277020693dd669f55","skills\u002Fdebugging-wizard","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills","https:\u002F\u002Fgithub.com\u002FAstrumon","Software Engineer","2026-10-14 01:01:46",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add Astrumon\u002Fspovishun-skills --skill debugging-wizard",{"tool":35,"command":36},"bunx","bunx skills add Astrumon\u002Fspovishun-skills --skill debugging-wizard",{"tool":38,"command":39},"pnpm","pnpm dlx skills add Astrumon\u002Fspovishun-skills --skill debugging-wizard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdebugging-wizard\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"manifest.yaml","REFERENCE","参考文档",422,"https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdebugging-wizard\u002Fmanifest.yaml",[50,56,62,69,74,79],{"skillNo":51,"name":52,"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":53,"categories":54,"keywords":55,"publishedAt":18},"01M74FX71JH2KNG5KX7TZHSKCB","universal-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Funiversal-skill\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"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":59,"categories":60,"keywords":61,"publishedAt":18},"01M74FX57GTEFPJVCPWPSP6CCW","notion-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Fnotion-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M74FX30F3K8906P5ASQ3DNXR","inline-frontmatter-skill","Hand-authored description that already lives in the body and must not be double-wrapped.","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Finline-frontmatter-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":52,"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":71,"categories":72,"keywords":73,"publishedAt":18},"01M74FX18AGHM2KHQ502PMJZRJ","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource-v2\u002Fskills\u002Funiversal-skill\u002FSKILL.md",[],[],{"skillNo":75,"name":58,"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":76,"categories":77,"keywords":78,"publishedAt":18},"01M74FWZJ193G810P0ZJ1PKEZ9","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource-v2\u002Fskills\u002Fnotion-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"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":82,"categories":83,"keywords":84,"publishedAt":18},"01M74FWPNEZWWGQ2Q37N6MMWP1","write-a-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[]]