[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M786N7WXZ5K4GF2AT1K19D5G":3,"skill-same:01M786N7WXZ5K4GF2AT1K19D5G":43},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M786N7WXZ5K4GF2AT1K19D5G","diagnosing-bugs",null,"Diagnosis loop for hard bugs and performance regressions. Use when a wayfinder ticket is typed as 'bug', or the user says 'diagnose'\u002F'debug this', or reports something broken\u002Fthrowing\u002Ffailing\u002Fslow.","lynchypin\u002Fproject-onboard","lynchypin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F188926056?v=4","01M786MTZ83KEFY14AD3V2RZ7Y","01M786MTZTPSKAVRY9WFHS792H",0,"MIT","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fdiagnosing-bugs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: diagnosing-bugs\ndescription: Diagnosis loop for hard bugs and performance regressions. Use when a wayfinder ticket is typed as 'bug', or the user says 'diagnose'\u002F'debug this', or reports something broken\u002Fthrowing\u002Ffailing\u002Fslow.\n---\n\n# Diagnosing Bugs\n\nA discipline for hard bugs. Skip phases only when explicitly justified.\n\n## Phase 1 — Build a feedback loop\n\nThis is the skill. If you have a tight pass\u002Ffail signal that goes red on\nthe bug, you will find the cause. Without one, no amount of staring at\ncode helps.\n\n**Spend disproportionate effort here. Be aggressive. Be creative. Refuse\nto give up.**\n\nWays to construct a feedback loop (roughly in order of preference):\n\n1. Failing test (unit, integration, e2e)\n2. Curl \u002F HTTP script against a running dev server\n3. CLI invocation with a fixture input, diffing stdout against known-good\n4. Headless browser script (Playwright\u002FPuppeteer)\n5. Replay a captured trace (network request replayed in isolation)\n6. Throwaway harness (minimal subset of system, mocked deps)\n7. Property \u002F fuzz loop (1000 random inputs for \"sometimes wrong\" bugs)\n8. Bisection harness (automate `git bisect run`)\n9. Differential loop (old-version vs new-version, diff outputs)\n10. HITL bash script (last resort — human watches, confirms pass\u002Ffail)\n\nThen **tighten the loop**: make it faster, make the signal sharper\n(assert the specific symptom), make it more deterministic.\n\nFor **non-deterministic bugs**: raise the reproduction rate (loop 100x,\nparallelise, add stress). A 50%-flake is debuggable; 1% is not.\n\n**Completion criterion**: one command that is red-capable, deterministic,\nfast (seconds), and agent-runnable. You must have already run it at\nleast once and pasted the output.\n\n**If you catch yourself reading code to build a theory before this\ncommand exists, STOP.**\n\n## Phase 2 — Reproduce + minimise\n\nRun the loop, confirm it produces the user's exact failure mode. Then\nshrink the repro to the smallest scenario that still goes red — cut\ninputs, callers, config, steps one at a time, re-running after each cut.\n\nDone when every remaining element is load-bearing.\n\n## Phase 3 — Hypothesise (PAUSE FOR USER)\n\nGenerate 3–5 ranked hypotheses before testing any. Each must be\nfalsifiable: \"If [X] is the cause, then [action] will make the bug\ndisappear \u002F worse.\"\n\n**Show the ranked list to the user before testing.** This is the HITL\npause point in the wayfinder flow — the user confirms which hypotheses\nto test first, or adds their own.\n\n## Phase 4 — Instrument\n\nEach probe maps to a specific prediction from Phase 3. Change one\nvariable at a time.\n\nTool preference:\n1. Debugger \u002F REPL\n2. Targeted logs\n3. Never \"log everything and grep\"\n\nTag every debug log with a unique prefix: `[DEBUG-a4f2]`. This makes\ncleanup in Phase 6 trivial.\n\nFor **performance regressions**: measure first (baseline timing \u002F\nprofiler \u002F query plan), then bisect.\n\n## Phase 5 — Fix + regression test\n\n1. Write the regression test before the fix (if a correct seam exists)\n2. Watch it fail\n3. Apply the fix\n4. Watch it pass\n5. Re-run the Phase 1 loop to confirm the original repro is green\n\nIf no correct seam exists for a regression test, that itself is the\nfinding — flag it for architecture improvement (Phase 6).\n\n## Phase 6 — Cleanup + post-mortem\n\nRequired:\n- [ ] Original repro no longer reproduces\n- [ ] Regression test passes (or absence of seam documented)\n- [ ] All `[DEBUG-...]` instrumentation removed (grep the prefix)\n- [ ] Throwaway prototypes\u002Fharnesses deleted\n- [ ] Hypothesis that was correct stated in commit\u002FPR message\n\nThen ask: **\"What would have prevented this bug?\"**\n\nIf the answer is architectural (no good seam, coupling, shallow module),\ncreate a new wayfinder ticket pointing to\n`improve-codebase-architecture` for a deepening review.\n\n## What this skill must never do\n\n- Never skip Phase 1 (the feedback loop) — reading code without a\n  repro is guessing\n- Never test multiple hypotheses simultaneously\n- Never leave debug instrumentation in committed code\n- Never declare \"fixed\" without re-running the original repro command\n","# Diagnosing Bugs\n\nA discipline for hard bugs. Skip phases only when explicitly justified.\n\n## Phase 1 — Build a feedback loop\n\nThis is the skill. If you have a tight pass\u002Ffail signal that goes red on\nthe bug, you will find the cause. Without one, no amount of staring at\ncode helps.\n\n**Spend disproportionate effort here. Be aggressive. Be creative. Refuse\nto give up.**\n\nWays to construct a feedback loop (roughly in order of preference):\n\n1. Failing test (unit, integration, e2e)\n2. Curl \u002F HTTP script against a running dev server\n3. CLI invocation with a fixture input, diffing stdout against known-good\n4. Headless browser script (Playwright\u002FPuppeteer)\n5. Replay a captured trace (network request replayed in isolation)\n6. Throwaway harness (minimal subset of system, mocked deps)\n7. Property \u002F fuzz loop (1000 random inputs for \"sometimes wrong\" bugs)\n8. Bisection harness (automate `git bisect run`)\n9. Differential loop (old-version vs new-version, diff outputs)\n10. HITL bash script (last resort — human watches, confirms pass\u002Ffail)\n\nThen **tighten the loop**: make it faster, make the signal sharper\n(assert the specific symptom), make it more deterministic.\n\nFor **non-deterministic bugs**: raise the reproduction rate (loop 100x,\nparallelise, add stress). A 50%-flake is debuggable; 1% is not.\n\n**Completion criterion**: one command that is red-capable, deterministic,\nfast (seconds), and agent-runnable. You must have already run it at\nleast once and pasted the output.\n\n**If you catch yourself reading code to build a theory before this\ncommand exists, STOP.**\n\n## Phase 2 — Reproduce + minimise\n\nRun the loop, confirm it produces the user's exact failure mode. Then\nshrink the repro to the smallest scenario that still goes red — cut\ninputs, callers, config, steps one at a time, re-running after each cut.\n\nDone when every remaining element is load-bearing.\n\n## Phase 3 — Hypothesise (PAUSE FOR USER)\n\nGenerate 3–5 ranked hypotheses before testing any. Each must be\nfalsifiable: \"If [X] is the cause, then [action] will make the bug\ndisappear \u002F worse.\"\n\n**Show the ranked list to the user before testing.** This is the HITL\npause point in the wayfinder flow — the user confirms which hypotheses\nto test first, or adds their own.\n\n## Phase 4 — Instrument\n\nEach probe maps to a specific prediction from Phase 3. Change one\nvariable at a time.\n\nTool preference:\n1. Debugger \u002F REPL\n2. Targeted logs\n3. Never \"log everything and grep\"\n\nTag every debug log with a unique prefix: `[DEBUG-a4f2]`. This makes\ncleanup in Phase 6 trivial.\n\nFor **performance regressions**: measure first (baseline timing \u002F\nprofiler \u002F query plan), then bisect.\n\n## Phase 5 — Fix + regression test\n\n1. Write the regression test before the fix (if a correct seam exists)\n2. Watch it fail\n3. Apply the fix\n4. Watch it pass\n5. Re-run the Phase 1 loop to confirm the original repro is green\n\nIf no correct seam exists for a regression test, that itself is the\nfinding — flag it for architecture improvement (Phase 6).\n\n## Phase 6 — Cleanup + post-mortem\n\nRequired:\n- [ ] Original repro no longer reproduces\n- [ ] Regression test passes (or absence of seam documented)\n- [ ] All `[DEBUG-...]` instrumentation removed (grep the prefix)\n- [ ] Throwaway prototypes\u002Fharnesses deleted\n- [ ] Hypothesis that was correct stated in commit\u002FPR message\n\nThen ask: **\"What would have prevented this bug?\"**\n\nIf the answer is architectural (no good seam, coupling, shallow module),\ncreate a new wayfinder ticket pointing to\n`improve-codebase-architecture` for a deepening review.\n\n## What this skill must never do\n\n- Never skip Phase 1 (the feedback loop) — reading code without a\n  repro is guessing\n- Never test multiple hypotheses simultaneously\n- Never leave debug instrumentation in committed code\n- Never declare \"fixed\" without re-running the original repro command\n",{"name":5,"description":7},"main","1f0ae11cd93f456cd58d3fd7cd470d1105a00ebf","skills\u002Fdiagnosing-bugs","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard","https:\u002F\u002Fgithub.com\u002Flynchypin","2026-08-05 20:49:36",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add lynchypin\u002Fproject-onboard --skill diagnosing-bugs",{"tool":35,"command":36},"bunx","bunx skills add lynchypin\u002Fproject-onboard --skill diagnosing-bugs",{"tool":38,"command":39},"pnpm","pnpm dlx skills add lynchypin\u002Fproject-onboard --skill diagnosing-bugs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fdiagnosing-bugs\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M786SAS70MSPYGGFVG7SNH8J","wayfinder","The orchestration hub for all work. Creates a map of investigation tickets (grilling, research, prototype, task, bug), resolves them one at a time with strict grilling discipline, manages risk posture pauses during implementation, and hands off to to-spec when the map is complete. Use for any work regardless of size — a trivial task has a small map, a large migration has many tickets.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M786S1VW2DFFP7SGGVYYEN45","to-tickets","Break the spec into small, independently-implementable tracer-bullet vertical slices. No checkpoint gate — hands off directly to wayfinder for implementation orchestration.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M786RHCR9MPJP7MKN1T98FAD","to-spec","Synthesize a specification from the completed wayfinder map. Never runs its own interview — it only writes down what wayfinder's grilling tickets already established, at a depth proportional to the project's documentation tier.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fto-spec\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M786R5N3VQCWWDN3CWB4A01S","tdd","Reference material for test-driven development discipline. Red before green, one slice at a time. Use as reference during implementation, not as a step-by-step procedure.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M786QPV9NMXZ4Y6HF1X7MHVF","start-session","Orient a new session in any project directory. Detects empty directory, existing codebase, or resume state, gathers cheap signals, and routes to wayfinder. The only user-invoked entry point.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fstart-session\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M786QAH76026WCTPAVYJAZ79","setup","Configures the issue tracker. Called by start-session during first orient. Model-invoked — runs automatically as part of the flow, not user-triggered.","https:\u002F\u002Fgithub.com\u002Flynchypin\u002Fproject-onboard\u002Fblob\u002Fmain\u002Fskills\u002Fsetup\u002FSKILL.md",[],[]]