[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DH6Q17PM4ESX978QYFV6H6":3,"skill-same:01M7DH6Q17PM4ESX978QYFV6H6":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},"01M7DH6Q17PM4ESX978QYFV6H6","test-driven-development",null,"Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code","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\u002Ftest-driven-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-driven-development\ndescription: Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code\nargument-hint: \"[behaviour to implement]\"\n---\n\n# Test-Driven Development\n\nWrite the test first. Watch it fail for the right reason. Write the least code that passes. If you did not see the test fail, you do not know that it tests anything.\n\n## Input\n\n`$ARGUMENTS`: optional. The behaviour or acceptance criterion to implement.\n\n## Invocation contexts\n\n- **Slash command**: guides the cycle for the named behaviour.\n- **Model-invoked**: the same, before any implementation code is written.\n- **Non-interactive**: the same. Exceptions to test-first (step 0) are never self-granted: without a stated exception in the dispatching prompt, write the test.\n\n## Steps\n\n0. **Scope.** Every feature, bug fix and behaviour change is test-first. The only exceptions (throwaway prototypes, generated code, pure configuration) are agreed with the requester beforehand. Code written before its test is deleted and rewritten from the test.\n\n### 1. Red: write one failing test\n\nOne behaviour per test, named for the behaviour, using real code and faking only what crosses the process boundary.\n\n```go\nfunc TestAdmissionBlocksUnknownBilling(t *testing.T) { \u002F\u002F I02\n\tt.Parallel()\n\tgot := admission.Decide(admission.Input{Billing: admission.BillingUnknown})\n\tif got.Allowed {\n\t\tt.Fatalf(\"Decide(unknown billing).Allowed = true, want false\")\n\t}\n\tif got.Code != admission.CodeBillingUnresolved {\n\t\tt.Errorf(\"Code = %q, want %q\", got.Code, admission.CodeBillingUnresolved)\n\t}\n}\n```\n\nFor several inputs, use a table with a name per case:\n\n```go\ntests := []struct {\n\tname string\n\tin   string\n\twant []string\n}{\n\t{name: \"flag after positional\", in: \"apply run_1 --to-branch x\", want: []string{\"run_1\"}},\n\t{name: \"flag before positional\", in: \"apply --to-branch x run_1\", want: []string{\"run_1\"}},\n}\nfor _, tt := range tests {\n\tt.Run(tt.name, func(t *testing.T) {\n\t\tt.Parallel()\n\t\t\u002F\u002F ...\n\t})\n}\n```\n\nEvery acceptance test covering a JSONL or envelope output must assert the `type` discriminator value (or the schema's equivalent routing field) of each emitted object, not just that the output parses or has the right shape. A test named `*JSONL*` \u002F `*Envelope*` without a discriminator assertion is incomplete.\n\n### 2. Verify red: watch it fail\n\n```bash\ngo test -run '^TestAdmissionBlocksUnknownBilling$' .\u002Finternal\u002Fadmission\u002F\n```\n\n| Result | Valid red? | Action |\n|---|---|---|\n| Assertion failure (`got X, want Y`) | Yes | Go to green |\n| Does not compile (undefined name) | No | Add a stub returning the wrong value (`return Decision{Allowed: true}`), re-run until the assertion fails |\n| Panic, setup failure, timeout | No | Fix the test setup; these say nothing about the behaviour |\n| Passes | No | It tests existing behaviour; fix the test |\n\nThen apply `.claude\u002Frules\u002Fred-first.md`: would the test also fail against a plausible wrong fix?\n\n### 3. Green: the least code that passes\n\nWrite only what the test demands. No options, parameters or branches the tests do not exercise.\n\n### 4. Verify green\n\n```bash\ngo test -race .\u002Finternal\u002Fadmission\u002F\n```\n\nThe new test passes, the package's other tests still pass, and there is no new vet output. If other tests fail, fix them now.\n\n### 5. Refactor\n\nWith tests green: remove duplication, improve names, extract a helper (with `t.Helper()`). Add no behaviour. Re-run after each change.\n\n### 6. Repeat per behaviour\n\nBuild the task one function at a time: test, red, green, run the package's tests, next. Never write all the tests and then all the code; you lose the signal of which change broke what. When the task's behaviours are done, run the full gates (`.claude\u002Fskills\u002Fquality-gates\u002FSKILL.md`).\n\n### Bug fixes\n\nReproduce the bug in a failing test first, then fix. The test stays as the regression test.\n\n### Anti-patterns\n\n| Anti-pattern | Instead |\n|---|---|\n| Asserting only that a fake was called | Assert the output or side effect |\n| Test-only exported functions in production code | An unexported seam, or one guarded by `testing.Testing()` |\n| A fake with a shape the real dependency never produces | Mirror the real shape; take it from a recorded or documented example |\n| Mocking internal packages | Use the real package; fake only external processes, network and time |\n| `time.Sleep` to wait | Wait on the channel, process exit or file; inject the clock |\n| `err == nil` as the only assertion | Assert the value produced |\n\n## Output\n\nFor each behaviour: the test name, the observed red (the failing line) and the observed green (the passing run). These go into the task's completion entry.\n","# Test-Driven Development\n\nWrite the test first. Watch it fail for the right reason. Write the least code that passes. If you did not see the test fail, you do not know that it tests anything.\n\n## Input\n\n`$ARGUMENTS`: optional. The behaviour or acceptance criterion to implement.\n\n## Invocation contexts\n\n- **Slash command**: guides the cycle for the named behaviour.\n- **Model-invoked**: the same, before any implementation code is written.\n- **Non-interactive**: the same. Exceptions to test-first (step 0) are never self-granted: without a stated exception in the dispatching prompt, write the test.\n\n## Steps\n\n0. **Scope.** Every feature, bug fix and behaviour change is test-first. The only exceptions (throwaway prototypes, generated code, pure configuration) are agreed with the requester beforehand. Code written before its test is deleted and rewritten from the test.\n\n### 1. Red: write one failing test\n\nOne behaviour per test, named for the behaviour, using real code and faking only what crosses the process boundary.\n\n```go\nfunc TestAdmissionBlocksUnknownBilling(t *testing.T) { \u002F\u002F I02\n\tt.Parallel()\n\tgot := admission.Decide(admission.Input{Billing: admission.BillingUnknown})\n\tif got.Allowed {\n\t\tt.Fatalf(\"Decide(unknown billing).Allowed = true, want false\")\n\t}\n\tif got.Code != admission.CodeBillingUnresolved {\n\t\tt.Errorf(\"Code = %q, want %q\", got.Code, admission.CodeBillingUnresolved)\n\t}\n}\n```\n\nFor several inputs, use a table with a name per case:\n\n```go\ntests := []struct {\n\tname string\n\tin   string\n\twant []string\n}{\n\t{name: \"flag after positional\", in: \"apply run_1 --to-branch x\", want: []string{\"run_1\"}},\n\t{name: \"flag before positional\", in: \"apply --to-branch x run_1\", want: []string{\"run_1\"}},\n}\nfor _, tt := range tests {\n\tt.Run(tt.name, func(t *testing.T) {\n\t\tt.Parallel()\n\t\t\u002F\u002F ...\n\t})\n}\n```\n\nEvery acceptance test covering a JSONL or envelope output must assert the `type` discriminator value (or the schema's equivalent routing field) of each emitted object, not just that the output parses or has the right shape. A test named `*JSONL*` \u002F `*Envelope*` without a discriminator assertion is incomplete.\n\n### 2. Verify red: watch it fail\n\n```bash\ngo test -run '^TestAdmissionBlocksUnknownBilling$' .\u002Finternal\u002Fadmission\u002F\n```\n\n| Result | Valid red? | Action |\n|---|---|---|\n| Assertion failure (`got X, want Y`) | Yes | Go to green |\n| Does not compile (undefined name) | No | Add a stub returning the wrong value (`return Decision{Allowed: true}`), re-run until the assertion fails |\n| Panic, setup failure, timeout | No | Fix the test setup; these say nothing about the behaviour |\n| Passes | No | It tests existing behaviour; fix the test |\n\nThen apply `.claude\u002Frules\u002Fred-first.md`: would the test also fail against a plausible wrong fix?\n\n### 3. Green: the least code that passes\n\nWrite only what the test demands. No options, parameters or branches the tests do not exercise.\n\n### 4. Verify green\n\n```bash\ngo test -race .\u002Finternal\u002Fadmission\u002F\n```\n\nThe new test passes, the package's other tests still pass, and there is no new vet output. If other tests fail, fix them now.\n\n### 5. Refactor\n\nWith tests green: remove duplication, improve names, extract a helper (with `t.Helper()`). Add no behaviour. Re-run after each change.\n\n### 6. Repeat per behaviour\n\nBuild the task one function at a time: test, red, green, run the package's tests, next. Never write all the tests and then all the code; you lose the signal of which change broke what. When the task's behaviours are done, run the full gates (`.claude\u002Fskills\u002Fquality-gates\u002FSKILL.md`).\n\n### Bug fixes\n\nReproduce the bug in a failing test first, then fix. The test stays as the regression test.\n\n### Anti-patterns\n\n| Anti-pattern | Instead |\n|---|---|\n| Asserting only that a fake was called | Assert the output or side effect |\n| Test-only exported functions in production code | An unexported seam, or one guarded by `testing.Testing()` |\n| A fake with a shape the real dependency never produces | Mirror the real shape; take it from a recorded or documented example |\n| Mocking internal packages | Use the real package; fake only external processes, network and time |\n| `time.Sleep` to wait | Wait on the channel, process exit or file; inject the clock |\n| `err == nil` as the only assertion | Assert the value produced |\n\n## Output\n\nFor each behaviour: the test name, the observed red (the failing line) and the observed green (the passing run). These go into the task's completion entry.\n",{"name":5,"description":7,"argument-hint":24},"[behaviour to implement]","main","6e250ec86158119da148ddc017b960ed3b2bee2b",".claude\u002Fskills\u002Ftest-driven-development",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 test-driven-development",{"tool":39,"command":40},"bunx","bunx skills add turbokast\u002Fmythhelm --skill test-driven-development",{"tool":42,"command":43},"pnpm","pnpm dlx skills add turbokast\u002Fmythhelm --skill test-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-driven-development\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},"01M7DH6GZRM39B4GGV29JVZTKR","task-completion","Authoritative completion format for a spec task — the gates to record first, the tasks.md completion entry (heading marker, Status with the PR, Implementation, Spec deviations, Files modified), the hand-off section, the claim-to-evidence table and the task-report block that ends the implementer's final message","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftask-completion\u002FSKILL.md",[],[]]