[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DH30FZ5NXXH8CC8H47JWHF":3,"skill-same:01M7DH30FZ5NXXH8CC8H47JWHF":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7DH30FZ5NXXH8CC8H47JWHF","investigating-failures",null,"Diagnose before fixing — use on any test failure, build or vet error, lint finding, race report, CI failure or runtime crash during implementation","turbokast\u002Fmythhelm","turbokast","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F335585049?v=4","01M7DGYYSHNA1BW1Y9GJFN6DVC","TurboKast","01M7DGYYT6GTPCFADDKS5ZXM1Y",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Finvestigating-failures\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: investigating-failures\ndescription: Diagnose before fixing — use on any test failure, build or vet error, lint finding, race report, CI failure or runtime crash during implementation\nargument-hint: \"[failing command or test name]\"\n---\n\n# Investigating Failures\n\nWhen something breaks, understand the failure before changing code. Speculative edits cause cascading damage: each one changes the state the next hypothesis is tested against.\n\n## Input\n\n`$ARGUMENTS`: optional. The failing command, test name or CI job.\n\n## Invocation contexts\n\n- **Slash command**: runs the loop and reports.\n- **Model-invoked**: the same, whenever a gate or test fails.\n- **Non-interactive**: the same; the \"When to stop\" report (an escalation step) is returned to the dispatcher instead of asking.\n\n## Steps\n\n### The loop\n\n```text\nREAD THE ERROR -> FORM ONE HYPOTHESIS -> VERIFY IT -> MAKE ONE CHANGE -> RE-RUN\n```\n\n1. **Read** the full output: the first error, not the last; the whole stack or race report. Re-run the single failing test in isolation (`go test -run '^TestName$' .\u002Fpkg\u002F...`) to get a clean signal.\n2. **Hypothesise** one mechanism that explains every symptom.\n3. **Verify** it with a cheap check before editing: a print, a narrower test, or the same test run against `origin\u002Fmain` in a separate worktree (`git worktree add \u002Ftmp\u002F\u003Cdir> origin\u002Fmain`; never `git stash`).\n4. **Change one thing**, re-run, and revert it if it did not fix the failure before trying the next hypothesis.\n\n### Decision trees\n\n**Build or vet error**\n\n- In your code: read the line; check names, types, imports and build tags.\n- In a package you did not touch: your change broke a caller. Search for uses of what you changed (`grep -rn 'Name(' --include='*.go'`) and fix the callers, or revert the interface change.\n- Only on one OS in CI: a platform file is missing its counterpart or a build constraint is wrong. Reproduce with `GOOS=\u003Cos> go vet .\u002F...`.\n\n**Test assertion failure**\n\n- A test you just wrote failing as expected: that is red; go to green.\n- An existing test: check whether it tests intended behaviour against the spec's acceptance criteria. If yes, the code is wrong: fix the code. If the behaviour changed on purpose, update the test and record why in the completion entry.\n- Never weaken an assertion (`== 42` to `!= 0`) to pass.\n\n**Timeout or hang**\n\n- A goroutine waiting on a channel nobody sends to, a missing `cancel()`, a child process whose pipe is never drained, a lock taken twice. Run with `-timeout 30s` to get the goroutine dump and read it.\n- Never raise the timeout as the first fix: a timeout is a structural problem.\n\n**Race detector report**\n\n- Read both stacks: the write and the conflicting access. Find the shared variable and decide which single mechanism guards it (a mutex, a channel, confinement to one goroutine). Never silence the detector.\n\n**Flaky failure**\n\n- Follow `.claude\u002Frules\u002Fagent-behavioral-posture.md` §7: record failing and passing values; a constant failing value is a structural quantum, not load.\n\n**Lint finding** (`go vet`, `golangci-lint`, `shellcheck`)\n\n- Read the rule's documentation and fix the code. A `\u002F\u002Fnolint` or `# shellcheck disable` needs the specific rule and a reason on the same line.\n\n**CI-only failure**\n\n- Read the job log (`gh run view \u003Cid> --log-failed`). Compare the environment: OS, Go version, `-race`, working directory, file permissions, path separators, line endings. Reproduce the difference locally before changing code.\n\n**Runtime crash**\n\n- Read the full stack; identify the function and its inputs. A nil dereference or index out of range means data of an unexpected shape reached code that trusted it: fix the boundary that let it in, not the symptom.\n\n### Anti-patterns\n\n| Anti-pattern | Instead |\n|---|---|\n| Several changes at once | One change, one re-run |\n| Weakening an assertion | Make the code produce the expected value |\n| Recovering a panic to hide it | Fix the input or the caller |\n| Raising a timeout | Find the blocked goroutine |\n| Assuming the test is wrong | Check the acceptance criteria first |\n| A fourth guess after three failures | Stop and report |\n\n### When to stop\n\nAfter three honest attempts on the same failure (escalation step):\n\n1. Stop changing code.\n2. Report: the failure (quoted), each attempt and its result, the current hypothesis, the files modified, and what evidence would distinguish the remaining hypotheses.\n3. Ask for guidance; in a non-interactive run, return the report to the dispatcher and stop.\n\n## Output\n\nEither the fix with the re-run output that shows it passing, or the \"When to stop\" report.\n","# Investigating Failures\n\nWhen something breaks, understand the failure before changing code. Speculative edits cause cascading damage: each one changes the state the next hypothesis is tested against.\n\n## Input\n\n`$ARGUMENTS`: optional. The failing command, test name or CI job.\n\n## Invocation contexts\n\n- **Slash command**: runs the loop and reports.\n- **Model-invoked**: the same, whenever a gate or test fails.\n- **Non-interactive**: the same; the \"When to stop\" report (an escalation step) is returned to the dispatcher instead of asking.\n\n## Steps\n\n### The loop\n\n```text\nREAD THE ERROR -> FORM ONE HYPOTHESIS -> VERIFY IT -> MAKE ONE CHANGE -> RE-RUN\n```\n\n1. **Read** the full output: the first error, not the last; the whole stack or race report. Re-run the single failing test in isolation (`go test -run '^TestName$' .\u002Fpkg\u002F...`) to get a clean signal.\n2. **Hypothesise** one mechanism that explains every symptom.\n3. **Verify** it with a cheap check before editing: a print, a narrower test, or the same test run against `origin\u002Fmain` in a separate worktree (`git worktree add \u002Ftmp\u002F\u003Cdir> origin\u002Fmain`; never `git stash`).\n4. **Change one thing**, re-run, and revert it if it did not fix the failure before trying the next hypothesis.\n\n### Decision trees\n\n**Build or vet error**\n\n- In your code: read the line; check names, types, imports and build tags.\n- In a package you did not touch: your change broke a caller. Search for uses of what you changed (`grep -rn 'Name(' --include='*.go'`) and fix the callers, or revert the interface change.\n- Only on one OS in CI: a platform file is missing its counterpart or a build constraint is wrong. Reproduce with `GOOS=\u003Cos> go vet .\u002F...`.\n\n**Test assertion failure**\n\n- A test you just wrote failing as expected: that is red; go to green.\n- An existing test: check whether it tests intended behaviour against the spec's acceptance criteria. If yes, the code is wrong: fix the code. If the behaviour changed on purpose, update the test and record why in the completion entry.\n- Never weaken an assertion (`== 42` to `!= 0`) to pass.\n\n**Timeout or hang**\n\n- A goroutine waiting on a channel nobody sends to, a missing `cancel()`, a child process whose pipe is never drained, a lock taken twice. Run with `-timeout 30s` to get the goroutine dump and read it.\n- Never raise the timeout as the first fix: a timeout is a structural problem.\n\n**Race detector report**\n\n- Read both stacks: the write and the conflicting access. Find the shared variable and decide which single mechanism guards it (a mutex, a channel, confinement to one goroutine). Never silence the detector.\n\n**Flaky failure**\n\n- Follow `.claude\u002Frules\u002Fagent-behavioral-posture.md` §7: record failing and passing values; a constant failing value is a structural quantum, not load.\n\n**Lint finding** (`go vet`, `golangci-lint`, `shellcheck`)\n\n- Read the rule's documentation and fix the code. A `\u002F\u002Fnolint` or `# shellcheck disable` needs the specific rule and a reason on the same line.\n\n**CI-only failure**\n\n- Read the job log (`gh run view \u003Cid> --log-failed`). Compare the environment: OS, Go version, `-race`, working directory, file permissions, path separators, line endings. Reproduce the difference locally before changing code.\n\n**Runtime crash**\n\n- Read the full stack; identify the function and its inputs. A nil dereference or index out of range means data of an unexpected shape reached code that trusted it: fix the boundary that let it in, not the symptom.\n\n### Anti-patterns\n\n| Anti-pattern | Instead |\n|---|---|\n| Several changes at once | One change, one re-run |\n| Weakening an assertion | Make the code produce the expected value |\n| Recovering a panic to hide it | Fix the input or the caller |\n| Raising a timeout | Find the blocked goroutine |\n| Assuming the test is wrong | Check the acceptance criteria first |\n| A fourth guess after three failures | Stop and report |\n\n### When to stop\n\nAfter three honest attempts on the same failure (escalation step):\n\n1. Stop changing code.\n2. Report: the failure (quoted), each attempt and its result, the current hypothesis, the files modified, and what evidence would distinguish the remaining hypotheses.\n3. Ask for guidance; in a non-interactive run, return the report to the dispatcher and stop.\n\n## Output\n\nEither the fix with the re-run output that shows it passing, or the \"When to stop\" report.\n",{"name":5,"description":7,"argument-hint":24},"[failing command or test name]","main","6e250ec86158119da148ddc017b960ed3b2bee2b",".claude\u002Fskills\u002Finvestigating-failures",1,"https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm","https:\u002F\u002Fgithub.com\u002Fturbokast","https:\u002F\u002Fturbokast.com","2026-11-10 17:37:03",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add turbokast\u002Fmythhelm --skill investigating-failures",{"tool":39,"command":40},"bunx","bunx skills add turbokast\u002Fmythhelm --skill investigating-failures",{"tool":42,"command":43},"pnpm","pnpm dlx skills add turbokast\u002Fmythhelm --skill investigating-failures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Finvestigating-failures\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DH77QH78C95S7A5V1GFKKF","mythhelm-deliver-backlog","Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.grok\u002Fskills\u002Fmythhelm-deliver-backlog\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DH748EXYG9RVBWPBJ73M27","mythhelm-bootstrap","Orient a Grok Build session in the MYTHHELM repository before task or spec work.","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.grok\u002Fskills\u002Fmythhelm-bootstrap\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DH70XJE0DZA4T5DYR1TWKZ","vendor-consult","Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fvendor-consult\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DH6X9HSQ308P5FNDSKYR5R","update-docs","Bring README, docs\u002F, knowledge\u002F, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DH6T82XR40XQFNRTN4AHGN","triage","Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DH6Q17PM4ESX978QYFV6H6","test-driven-development","Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]