[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NF8QPJRET84T624FZFY36":3,"skill-same:01M75NF8QPJRET84T624FZFY36":52},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75NF8QPJRET84T624FZFY36","diagnosing-bugs",null,"Use when behavior is broken, failing, flaky, unexpectedly slow, or otherwise differs from its expected result, before proposing a durable fix.","don-smith\u002Fmyflow","don-smith","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F228761?v=4","01M75NEQQ3GJBN4ARH0S5EFYV2","Don Smith","01M75NEQQVBT5HAYN363PDG334",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Fdiagnosing-bugs\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: diagnosing-bugs\ndescription: Use when behavior is broken, failing, flaky, unexpectedly slow, or otherwise differs from its expected result, before proposing a durable fix.\n---\n\n# Diagnosing Bugs\n\nA durable fix needs evidence: establish a feedback loop, find the source, make the smallest root-cause change, and prove the original scenario is fixed.\n\n## When to use\n\nUse for bugs, test\u002Fbuild\u002Fintegration failures, flakes, and performance regressions. Use `tdd` for planned behavior or a test seam still being designed.\n\n### Incident containment\n\nDuring an active incident, a reversible, narrowly scoped containment action (rollback, failover, or feature flag) may precede diagnosis. Record its scope and risk; it is not the fix. **Before any durable code or policy change, state `Feedback loop: \u003Ccommand>`, run it, and capture its result.** A new retry, timeout, or policy is not a durable fix without that evidence.\n\n## 1. Establish a feedback loop\n\nBefore theorizing or changing production code, run one agent-runnable command that distinguishes the exact symptom from success: a failing test, asserted client script, replay, minimal harness, or fuzz\u002Fdifferential\u002Fbisection loop. For human-only flow, adapt `scripts\u002Fhitl-loop.template.sh`.\n\nMake it fast, deterministic, and symptom-specific. Raise a flake's reproduction rate with repetition, stress, or timing control; measure performance before changing it. Redact sensitive captures.\n\nIf no loop exists, stop durable-fix work; state attempts and ask for environment access, a redacted artifact, or temporary instrumentation.\n\n## 2. Capture and narrow evidence\n\nCapture the error, output, or measurement, then minimise inputs, configuration, data, and steps until they are load-bearing. Check the complete stack trace, recent changes, the data flow back to its trigger, and a comparable working path.\n\nFor multi-component systems, inspect data and configuration at boundaries until the failing component is known. Prefer a debugger; otherwise use targeted, uniquely tagged temporary logs.\n\n## 3. Test hypotheses\n\nList 3–5 ranked, falsifiable hypotheses; each predicts an observable result. Test one prediction and one variable at a time. A disproved hypothesis returns to evidence gathering.\n\nFor a flaky asynchronous test, wait for the observable condition, not a guessed sleep. The wait needs fresh state, a bounded timeout, and a named error; it does not replace root-cause analysis. Fixed delays are only for justified timing behavior.\n\n**Red flags:** “add a retry then investigate,” “increase the sleep,” or “try one quick change” mean: return to the feedback loop.\n\n## 4. Fix and verify\n\nTurn the minimised reproducer into a regression test at a seam exercising the real bug pattern. If no such seam exists, document the architectural limitation rather than adding a misleading shallow test.\n\nApply one minimal change addressing the confirmed source. Run the regression test, original unminimised loop, and relevant broader checks. A failed fix returns to evidence and hypotheses. Repeated failures or a missing test seam warrant an architecture follow-up, not an automatic architectural verdict; use `codebase-design` for a concrete deepening opportunity.\n\n## 5. Close the investigation\n\nRecord the redacted symptom\u002Frepro, cause\u002Fevidence, regression coverage or its absence, original-scenario verification, removed diagnostics, and containment rollback or prevention follow-up. Never present a workaround as the completed fix.\n","# Diagnosing Bugs\n\nA durable fix needs evidence: establish a feedback loop, find the source, make the smallest root-cause change, and prove the original scenario is fixed.\n\n## When to use\n\nUse for bugs, test\u002Fbuild\u002Fintegration failures, flakes, and performance regressions. Use `tdd` for planned behavior or a test seam still being designed.\n\n### Incident containment\n\nDuring an active incident, a reversible, narrowly scoped containment action (rollback, failover, or feature flag) may precede diagnosis. Record its scope and risk; it is not the fix. **Before any durable code or policy change, state `Feedback loop: \u003Ccommand>`, run it, and capture its result.** A new retry, timeout, or policy is not a durable fix without that evidence.\n\n## 1. Establish a feedback loop\n\nBefore theorizing or changing production code, run one agent-runnable command that distinguishes the exact symptom from success: a failing test, asserted client script, replay, minimal harness, or fuzz\u002Fdifferential\u002Fbisection loop. For human-only flow, adapt `scripts\u002Fhitl-loop.template.sh`.\n\nMake it fast, deterministic, and symptom-specific. Raise a flake's reproduction rate with repetition, stress, or timing control; measure performance before changing it. Redact sensitive captures.\n\nIf no loop exists, stop durable-fix work; state attempts and ask for environment access, a redacted artifact, or temporary instrumentation.\n\n## 2. Capture and narrow evidence\n\nCapture the error, output, or measurement, then minimise inputs, configuration, data, and steps until they are load-bearing. Check the complete stack trace, recent changes, the data flow back to its trigger, and a comparable working path.\n\nFor multi-component systems, inspect data and configuration at boundaries until the failing component is known. Prefer a debugger; otherwise use targeted, uniquely tagged temporary logs.\n\n## 3. Test hypotheses\n\nList 3–5 ranked, falsifiable hypotheses; each predicts an observable result. Test one prediction and one variable at a time. A disproved hypothesis returns to evidence gathering.\n\nFor a flaky asynchronous test, wait for the observable condition, not a guessed sleep. The wait needs fresh state, a bounded timeout, and a named error; it does not replace root-cause analysis. Fixed delays are only for justified timing behavior.\n\n**Red flags:** “add a retry then investigate,” “increase the sleep,” or “try one quick change” mean: return to the feedback loop.\n\n## 4. Fix and verify\n\nTurn the minimised reproducer into a regression test at a seam exercising the real bug pattern. If no such seam exists, document the architectural limitation rather than adding a misleading shallow test.\n\nApply one minimal change addressing the confirmed source. Run the regression test, original unminimised loop, and relevant broader checks. A failed fix returns to evidence and hypotheses. Repeated failures or a missing test seam warrant an architecture follow-up, not an automatic architectural verdict; use `codebase-design` for a concrete deepening opportunity.\n\n## 5. Close the investigation\n\nRecord the redacted symptom\u002Frepro, cause\u002Fevidence, regression coverage or its absence, original-scenario verification, removed diagnostics, and containment rollback or prevention follow-up. Never present a workaround as the completed fix.\n",{"name":5,"description":7},"main","d0a5f620d08689e2cb9684ab07b8055854402f57","skills\u002Fdiagnosing-bugs","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow","https:\u002F\u002Fdon-smith.github.io\u002Fmyflow\u002F","https:\u002F\u002Fgithub.com\u002Fdon-smith","attempting the most positive impact possible while trying to figure out what that means","2026-10-23 09:17:14",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add don-smith\u002Fmyflow --skill diagnosing-bugs",{"tool":38,"command":39},"bunx","bunx skills add don-smith\u002Fmyflow --skill diagnosing-bugs",{"tool":41,"command":42},"pnpm","pnpm dlx skills add don-smith\u002Fmyflow --skill diagnosing-bugs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Fdiagnosing-bugs\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"scripts\u002Fhitl-loop.template.sh","SCRIPT","脚本",1319,"https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Fdiagnosing-bugs\u002Fscripts\u002Fhitl-loop.template.sh",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75NGR4SAVDTSN8A11EW8NBH","clean-support","Use when the clean-stage fixture skill needs a supporting skill to reference.","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-structure\u002Fskills\u002Fclean-support\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75NGPM5WW77DHQN07SSGQWG","clean-stage","Use when exercising the structural skill lint against a tree that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-structure\u002Fskills\u002Fclean-stage\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75NGMXP2ANH3WB2QM5XE75Z","verify","Use after Implement to verify an accepted MyFlow plan, collect review evidence, and produce a workstream-aware Verify report.","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75NGHZVYBDA346Q14MH7PRG","technical-writing","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75NGD25AY0E4F8JRY8AT392","tdd","Use during design and planning to shape testable interfaces, seams, and verification strategy; use during implementation when a plan needs a test-first behavior cycle","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"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":19},"01M75NGB6W0G42QCQNZQSZD0CW","story","Tell a repository's artifact-backed story, answer a question with a dated chapter, or refresh stale story pages.","https:\u002F\u002Fgithub.com\u002Fdon-smith\u002Fmyflow\u002Fblob\u002Fmain\u002Fskills\u002Fstory\u002FSKILL.md",[],[]]