[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6R628SG0HC8YJE5WTJ35W1A":3,"skill-same:01M6R628SG0HC8YJE5WTJ35W1A":66},{"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":17,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":13,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6R628SG0HC8YJE5WTJ35W1A","diagnose",null,"Run a reproduce-minimize-hypothesize-instrument-fix loop. Use when debugging bugs, failures, thrown errors, or performance regressions.","r3dlex\u002Fskills","r3dlex","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F291373160?v=4","01M6PEFNGGBVB7SHAPWXFFX933","01M6R5SDWFHT94734KJFMYE1SX",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002F04-validate-handoff\u002Fdiagnose\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28],"performance","debugging","run","loop","reproduce","fix","use","instrument","errors","bugs","when","2026-11-10 10:12:30",false,"---\nname: diagnose\ndescription: 'Run a reproduce-minimize-hypothesize-instrument-fix loop. Use when debugging bugs, failures, thrown errors, or performance regressions.'\n---\n\n# Diagnose\n\n> **Deprecated alias.** [`diagnosing-bugs`](..\u002Fdiagnosing-bugs\u002FSKILL.md) is the\n> canonical diagnosis loop; this entry is retained for vendored-pin compatibility\n> until the next ai-catapult lock bump removes it from the bundle. Feedback-loop\n> reference material lives canonically in `diagnosing-bugs\u002FFEEDBACK-LOOP.md`.\n\nA discipline for hard bugs. Skip phases only when explicitly justified. Use the project's domain glossary and relevant ADRs before touching code.\n\n## Phase 1 — Build a feedback loop\n\nThis is the skill. First create a fast, deterministic, agent-runnable pass\u002Ffail signal for the bug. Read `feedback-loops.md` when you need loop candidates, flaky-bug tactics, or HITL fallback structure.\n\nDo not proceed to Phase 2 until you have a loop you believe in. If no credible loop is possible, stop and list what access\u002Fartifact\u002Finstrumentation is needed.\n\n## Phase 2 — Reproduce\n\nRun the loop and watch the bug appear.\n\nConfirm:\n\n- [ ] The loop produces the user's failure mode, not a nearby different failure.\n- [ ] The failure reproduces across runs, or at a high enough rate for flaky bugs.\n- [ ] The exact symptom is captured for later fix verification.\n\nDo not proceed until you reproduce the bug.\n\n## Phase 3 — Hypothesise\n\nGenerate 3–5 ranked, falsifiable hypotheses before testing any single idea.\n\nUse this format: \"If `\u003Ccause>` is true, then `\u003Cchange\u002Fprobe>` will make the bug disappear, worsen, or expose `\u003Csignal>`.\"\n\nShow the ranked list to the user when they are present; proceed with your ranking if AFK.\n\n## Phase 4 — Instrument\n\nEach probe must map to one Phase 3 prediction. Change one variable at a time.\n\nTool preference:\n\n1. Debugger\u002FREPL inspection when available.\n2. Targeted boundary logs that distinguish hypotheses.\n3. Never \"log everything and grep\".\n\nTag debug logs with a unique prefix such as `[DEBUG-a4f2]` so cleanup is a single grep. For performance regressions, establish a timing\u002Fprofiler\u002Fquery-plan baseline before fixing.\n\n## Phase 5 — Fix + regression test\n\nWrite the regression test before the fix, but only at a seam that exercises the real bug pattern as it occurs at the call site.\n\nIf no correct seam exists, document that finding; the architecture is preventing reliable regression coverage.\n\nIf a correct seam exists:\n\n1. Turn the minimized repro into a failing test.\n2. Watch it fail.\n3. Apply the fix.\n4. Watch it pass.\n5. Re-run the original Phase 1 loop.\n\n## Phase 6 — Cleanup + post-mortem\n\nRequired before declaring done:\n\n- [ ] Original repro no longer reproduces.\n- [ ] Regression test passes, or absence of seam is documented.\n- [ ] All `[DEBUG-...]` instrumentation removed.\n- [ ] Throwaway prototypes deleted or moved to a marked debug location.\n- [ ] Correct root-cause hypothesis is stated in the commit\u002FPR.\n\nThen ask what would have prevented the bug. If the answer is architectural, hand off to `improve-codebase-architecture` with specifics after the fix is verified.\n","# Diagnose\n\n> **Deprecated alias.** [`diagnosing-bugs`](..\u002Fdiagnosing-bugs\u002FSKILL.md) is the\n> canonical diagnosis loop; this entry is retained for vendored-pin compatibility\n> until the next ai-catapult lock bump removes it from the bundle. Feedback-loop\n> reference material lives canonically in `diagnosing-bugs\u002FFEEDBACK-LOOP.md`.\n\nA discipline for hard bugs. Skip phases only when explicitly justified. Use the project's domain glossary and relevant ADRs before touching code.\n\n## Phase 1 — Build a feedback loop\n\nThis is the skill. First create a fast, deterministic, agent-runnable pass\u002Ffail signal for the bug. Read `feedback-loops.md` when you need loop candidates, flaky-bug tactics, or HITL fallback structure.\n\nDo not proceed to Phase 2 until you have a loop you believe in. If no credible loop is possible, stop and list what access\u002Fartifact\u002Finstrumentation is needed.\n\n## Phase 2 — Reproduce\n\nRun the loop and watch the bug appear.\n\nConfirm:\n\n- [ ] The loop produces the user's failure mode, not a nearby different failure.\n- [ ] The failure reproduces across runs, or at a high enough rate for flaky bugs.\n- [ ] The exact symptom is captured for later fix verification.\n\nDo not proceed until you reproduce the bug.\n\n## Phase 3 — Hypothesise\n\nGenerate 3–5 ranked, falsifiable hypotheses before testing any single idea.\n\nUse this format: \"If `\u003Ccause>` is true, then `\u003Cchange\u002Fprobe>` will make the bug disappear, worsen, or expose `\u003Csignal>`.\"\n\nShow the ranked list to the user when they are present; proceed with your ranking if AFK.\n\n## Phase 4 — Instrument\n\nEach probe must map to one Phase 3 prediction. Change one variable at a time.\n\nTool preference:\n\n1. Debugger\u002FREPL inspection when available.\n2. Targeted boundary logs that distinguish hypotheses.\n3. Never \"log everything and grep\".\n\nTag debug logs with a unique prefix such as `[DEBUG-a4f2]` so cleanup is a single grep. For performance regressions, establish a timing\u002Fprofiler\u002Fquery-plan baseline before fixing.\n\n## Phase 5 — Fix + regression test\n\nWrite the regression test before the fix, but only at a seam that exercises the real bug pattern as it occurs at the call site.\n\nIf no correct seam exists, document that finding; the architecture is preventing reliable regression coverage.\n\nIf a correct seam exists:\n\n1. Turn the minimized repro into a failing test.\n2. Watch it fail.\n3. Apply the fix.\n4. Watch it pass.\n5. Re-run the original Phase 1 loop.\n\n## Phase 6 — Cleanup + post-mortem\n\nRequired before declaring done:\n\n- [ ] Original repro no longer reproduces.\n- [ ] Regression test passes, or absence of seam is documented.\n- [ ] All `[DEBUG-...]` instrumentation removed.\n- [ ] Throwaway prototypes deleted or moved to a marked debug location.\n- [ ] Correct root-cause hypothesis is stated in the commit\u002FPR.\n\nThen ask what would have prevented the bug. If the answer is architectural, hand off to `improve-codebase-architecture` with specifics after the fix is verified.\n",{"name":5,"description":7},"main","037fe34299eb9c4a30b51f1a6bd101eae1c469b1","04-validate-handoff\u002Fdiagnose","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills","https:\u002F\u002Fgithub.com\u002Fr3dlex","2026-10-29 16:22:54",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add r3dlex\u002Fskills --skill diagnose",{"tool":46,"command":47},"bunx","bunx skills add r3dlex\u002Fskills --skill diagnose",{"tool":49,"command":50},"pnpm","pnpm dlx skills add r3dlex\u002Fskills --skill diagnose","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002F04-validate-handoff\u002Fdiagnose\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"feedback-loops.md","REFERENCE","参考文档",1516,"https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002F04-validate-handoff\u002Fdiagnose\u002Ffeedback-loops.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fhitl-loop.template.sh","SCRIPT","脚本",1164,"https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002F04-validate-handoff\u002Fdiagnose\u002Fscripts\u002Fhitl-loop.template.sh",[67,75,83,91,100,123],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":29},"01M6R652E42RZT7M2V3RWW991Z","skill","Fixture.","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcatalog-malformed\u002Fskill\u002FSKILL.md",[],[74],"fixture",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":29},"01M6R64MTPF0FGWHFS4DWP40GR","stable-skill","Fixture stable-skill.","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcatalog-lifecycle\u002Fstable-skill\u002FSKILL.md",[],[82,74],"stable skill",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":29},"01M6R64HD4QVAYM2R0JSYNVDJW","experimental-skill","Fixture experimental-skill.","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcatalog-lifecycle\u002Fexperimental-skill\u002FSKILL.md",[],[90,74],"experimental skill",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":29},"01M6R64FZH05TEJQW75QX1E5XD","deprecated-skill","Fixture deprecated-skill.","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcatalog-lifecycle\u002Fdeprecated-skill\u002FSKILL.md",[],[98,99,74],"deprecated skill","deprecated",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":29},"01M6R64D13X5DC980GREWFSSFQ","karpathy-guidelines","Apply think-before-coding, simplicity, surgical-change, and goal-driven engineering rules. Use when planning, implementing, or reviewing code.","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Freference\u002Fgolden-skills\u002F.agents\u002Fskills\u002Fkarpathy-guidelines\u002FSKILL.md",[],[107,108,109,110,24,111,112,113,114,115,116,117,28,118,119,120,121,122],"karpathy guidelines","karpathy","guidelines","Rules","simplicity","goal","think","driven","reviewing code","implementing","apply","coding","change","code","planning","engineering",{"skillNo":124,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":29},"01M6R640ZS60BRV9P49FT46ZJX","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Fskills\u002Fblob\u002Fmain\u002Freference\u002Fgolden-root\u002F.agents\u002Fskills\u002Fkarpathy-guidelines\u002FSKILL.md",[],[109,107,108,119,114,120,121,122,118,110,24,111,112,113,115,116,117,28]]