[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CR5QWWCVBQ2SWM477F0G6J":3,"skill-same:01M7CR5QWWCVBQ2SWM477F0G6J":50},{"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":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CR5QWWCVBQ2SWM477F0G6J","diagnosing-bugs",null,"Use when diagnosing bugs or performance regressions. Requires evidence for the reported symptom and verification against the original scenario.","kwanpham2195\u002Fagent-stuff","kwanpham2195","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89118031?v=4","01M7CR3AJQJ8HHA69PDR24VE22","01M7CR3AKD7SGAQ1M1Z8HAD0BJ",3,"MIT","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdiagnosing-bugs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: diagnosing-bugs\ndescription: \"Use when diagnosing bugs or performance regressions. Requires evidence for the reported symptom and verification against the original scenario.\"\n---\n\nFollow reproduce → investigate → fix when authorized → verify. Revisit an earlier step when evidence changes the hypothesis. Record why a step is blocked or inapplicable rather than silently skipping its evidence.\n\n## 1. Establish the reproduction\n\nRead relevant project context and enough code to reach the user's exact symptom. Choose the shortest practical feedback loop: an existing test, CLI\u002FHTTP invocation, browser interaction, or a small isolated harness. Match the reported environment\u002Fprofile where it affects behavior.\n\nRecord starting conditions, trigger, expected behavior, and actual behavior. An unrelated exception or a check that only asserts “did not crash” is insufficient when the report concerns incorrect output.\n\nMinimize the scenario where practical while retaining the failure. For intermittent bugs, record failures\u002Ftrials and test conditions; a single clean run is not proof of a fix. For performance, use comparable inputs and conditions before and after, recording the measured quantity and baseline.\n\n**Ready to investigate:** the symptom is observed and a repeatable trigger is identified, or the available evidence and reproduction limitation are explicit. If blocked, report attempts and request the missing environment, redacted artifact, or instrumentation authority. Source inspection may narrow the cause but does not establish a reproduced failure.\n\n## 2. Test a falsifiable hypothesis\n\nState a prediction, run a targeted probe, and record its result. Consider alternatives when evidence is ambiguous; do not impose a fixed hypothesis count.\n\n```text\nHypothesis: The retry appends an item already persisted by the first request.\nPrediction: Replaying the same request ID creates a second row.\nProbe: Replay the captured request against an isolated fixture; count matching rows.\nResult: Record the observed count, then retain or reject the hypothesis.\n```\n\nChange one relevant variable at a time where feasible. Use targeted instrumentation and tag temporary logs with a unique prefix for cleanup. If a probe contradicts the hypothesis, revise it; do not keep patching the first plausible explanation.\n\n**Ready to fix:** evidence connects the cause to the reported symptom. A diagnosis-only request ends with findings and uncertainty; it does not authorize implementation.\n\n## 3. Fix through the real failure path\n\nWhen implementation is authorized, add a regression test at the seam that exercises the actual failure when feasible. Observe it fail before the fix and pass afterward. If no suitable seam exists, report the limitation instead of substituting a shallow test. Keep the original reproduction so minimization does not hide the broader scenario.\n\n## 4. Verify and close the investigation\n\nRerun the original scenario and required checks appropriate to the change. For intermittent\u002Fperformance issues, repeat comparable trials or measurements and report residual uncertainty. Remove task-owned temporary instrumentation and account for retained diagnostic artifacts; do not delete shared resources.\n\nUse this compact result shape, inline or in the existing work artifact:\n\n```text\nSymptom \u002F environment:\nReproduction: command or actions; expected → observed\nCause: supporting evidence, or remaining hypothesis\nChange: fix made, or diagnosis-only recommendation\nVerification: actual commands\u002Fresults; original scenario; regression evidence\nRemaining: untested cases, blockers, retained artifacts, next action\n```\n\nKeep credentials in environment variables and redact sensitive output and captured artifacts. Request a redacted artifact if safe handling is uncertain. For a necessary human-operated loop, use `scripts\u002Fhitl-loop.template.sh`. Architecture follow-ups require user interest.\n","Follow reproduce → investigate → fix when authorized → verify. Revisit an earlier step when evidence changes the hypothesis. Record why a step is blocked or inapplicable rather than silently skipping its evidence.\n\n## 1. Establish the reproduction\n\nRead relevant project context and enough code to reach the user's exact symptom. Choose the shortest practical feedback loop: an existing test, CLI\u002FHTTP invocation, browser interaction, or a small isolated harness. Match the reported environment\u002Fprofile where it affects behavior.\n\nRecord starting conditions, trigger, expected behavior, and actual behavior. An unrelated exception or a check that only asserts “did not crash” is insufficient when the report concerns incorrect output.\n\nMinimize the scenario where practical while retaining the failure. For intermittent bugs, record failures\u002Ftrials and test conditions; a single clean run is not proof of a fix. For performance, use comparable inputs and conditions before and after, recording the measured quantity and baseline.\n\n**Ready to investigate:** the symptom is observed and a repeatable trigger is identified, or the available evidence and reproduction limitation are explicit. If blocked, report attempts and request the missing environment, redacted artifact, or instrumentation authority. Source inspection may narrow the cause but does not establish a reproduced failure.\n\n## 2. Test a falsifiable hypothesis\n\nState a prediction, run a targeted probe, and record its result. Consider alternatives when evidence is ambiguous; do not impose a fixed hypothesis count.\n\n```text\nHypothesis: The retry appends an item already persisted by the first request.\nPrediction: Replaying the same request ID creates a second row.\nProbe: Replay the captured request against an isolated fixture; count matching rows.\nResult: Record the observed count, then retain or reject the hypothesis.\n```\n\nChange one relevant variable at a time where feasible. Use targeted instrumentation and tag temporary logs with a unique prefix for cleanup. If a probe contradicts the hypothesis, revise it; do not keep patching the first plausible explanation.\n\n**Ready to fix:** evidence connects the cause to the reported symptom. A diagnosis-only request ends with findings and uncertainty; it does not authorize implementation.\n\n## 3. Fix through the real failure path\n\nWhen implementation is authorized, add a regression test at the seam that exercises the actual failure when feasible. Observe it fail before the fix and pass afterward. If no suitable seam exists, report the limitation instead of substituting a shallow test. Keep the original reproduction so minimization does not hide the broader scenario.\n\n## 4. Verify and close the investigation\n\nRerun the original scenario and required checks appropriate to the change. For intermittent\u002Fperformance issues, repeat comparable trials or measurements and report residual uncertainty. Remove task-owned temporary instrumentation and account for retained diagnostic artifacts; do not delete shared resources.\n\nUse this compact result shape, inline or in the existing work artifact:\n\n```text\nSymptom \u002F environment:\nReproduction: command or actions; expected → observed\nCause: supporting evidence, or remaining hypothesis\nChange: fix made, or diagnosis-only recommendation\nVerification: actual commands\u002Fresults; original scenario; regression evidence\nRemaining: untested cases, blockers, retained artifacts, next action\n```\n\nKeep credentials in environment variables and redact sensitive output and captured artifacts. Request a redacted artifact if safe handling is uncertain. For a necessary human-operated loop, use `scripts\u002Fhitl-loop.template.sh`. Architecture follow-ups require user interest.\n",{"name":5,"description":7},"main","9c1210e1d90382679133cef3600fcfc783e5cfb9","skills\u002Fworkflow\u002Fdiagnosing-bugs",0,"https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff","https:\u002F\u002Fgithub.com\u002Fkwanpham2195","2026-09-15 14:40:43",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add kwanpham2195\u002Fagent-stuff --skill diagnosing-bugs",{"tool":36,"command":37},"bunx","bunx skills add kwanpham2195\u002Fagent-stuff --skill diagnosing-bugs",{"tool":39,"command":40},"pnpm","pnpm dlx skills add kwanpham2195\u002Fagent-stuff --skill diagnosing-bugs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdiagnosing-bugs\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Fhitl-loop.template.sh","SCRIPT","脚本",1319,"https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdiagnosing-bugs\u002Fscripts\u002Fhitl-loop.template.sh",[51,58,65,72,79,86],{"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},"01M7CR6WJNEV9H8GBH2EKXJSNX","writing-for-agents","Use when writing skills, agent instructions, or references consumed by agents.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\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},"01M7CR6S313FZR72HKM51DCB41","write-tbp","Writing technical blog posts about project features and implementation details. Use when creating blog content about how a project solves interesting problems.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tbp\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},"01M7CR6N6BNKGYHQ805AJV16DV","write-pr","Reference standards for writing pull request titles and descriptions, plus the pre-flight comment sweep over the diff. Use as supporting guidance when another skill or workflow needs PR content standards, not as the user-facing create\u002Fupdate PR workflow.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-pr\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},"01M7CR6GGW9PW4X1KWPZPCG0SP","write-issue","Reference standards for writing and maintaining local or remote issues. Use when another skill needs issue title, body, type, or triage guidance.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-issue\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},"01M7CR6D8TD9BCJ96V6A0B9QSW","write-exec-plan","Write or maintain a plan for complex work across phases or PRs. Resolve consequential technical unknowns through prototypes before defining implementation checklists and their evidence.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-exec-plan\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7CR6821CMEQPX6ESPA7WQ18","write-design-doc","Write a design doc that settles hard-to-reverse decisions before anyone builds.","https:\u002F\u002Fgithub.com\u002Fkwanpham2195\u002Fagent-stuff\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-design-doc\u002FSKILL.md",[],[]]