[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFDB70ATNQASXP4BKDYGA6":3,"skill-same:01M7EFDB70ATNQASXP4BKDYGA6":76},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7EFDB70ATNQASXP4BKDYGA6","test-driven-development",null,"Use when implementing logic, fixing a bug, or changing behavior — write the failing test first (RED), then minimal code (GREEN), then refactor. Triggers on \"write the failing test first\", \"Prove-It\", or a bug that needs a reproduction test before the fix.","winter6205\u002Farthurpower","winter6205","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F136674824?v=4","01M7EF9EWNYDKHX9MR3AG5QV7A","01M7EF9EXCC1CNFXQNV6PS3M8B",2,"MIT","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-driven-development\ndescription: Use when implementing logic, fixing a bug, or changing behavior — write the failing test first (RED), then minimal code (GREEN), then refactor. Triggers on \"write the failing test first\", \"Prove-It\", or a bug that needs a reproduction test before the fix.\nbucket: engineering\ntype: discipline\n---\n\n# Test-Driven Development\n\nWrite-time discipline: a failing test before the code that makes it pass. \"Seems right\" is not done.\n\n## When to use\n\n- New logic or behavior\n- Bug fix (Prove-It: reproduction test before the fix)\n- Behavior change that could regress\n\nSkip: pure config\u002Fdocs\u002Fformatting; throwaway spikes (return when code graduates).\n\nBrowser + runtime checks: [`references\u002Fbrowser-testing.md`](references\u002Fbrowser-testing.md).\n\n## Cycle\n\n```\nRED (failing test) → GREEN (minimal code) → REFACTOR (tests stay green)\n```\n\nBug path (Prove-It): reproduction test FAILS → fix → PASSES → full suite.\n\nExamples: [`references\u002Ftdd-cycle-examples.md`](references\u002Ftdd-cycle-examples.md), [`references\u002Fprove-it-example.md`](references\u002Fprove-it-example.md).\nPyramid \u002F writing style \u002F anti-patterns: [`references\u002Ftest-shape.md`](references\u002Ftest-shape.md).\n\n## Procedure\n\n1. **Name the behavior.** One sentence: \"After X, the system does Y.\" Completion: that sentence exists.\n2. **RED — derive the expected result from the spec or a known example, not the implementation; write and run one failing test for one behavior.** Completion: failure output captured.\n3. **GREEN — make the minimum change that passes.** Finish the RED → GREEN loop before writing the next behavior's test. Completion: the new test passes.\n4. **Full suite.** Completion: suite green; no new skips.\n5. **REFACTOR.** Cleanup only; re-run after each edit. Completion: suite still green.\n6. **Commit after the full suite passes.** Completion: no failing tests in the landing diff.\n\nComplex bug, unbiased repro: spawn a writer that sees the bug description **not** the fix; verify RED yourself, then GREEN. Do not hard-wire a host-local persona path.\n\n## Acceptance Criteria\n\n- [ ] Test for the new behavior existed before implementation (RED captured)\n- [ ] Minimal implementation made that test pass (GREEN captured)\n- [ ] Bug fixes include a reproduction test that failed before the fix\n- [ ] Full suite green; no skips added to force green\n- [ ] Test names describe behavior, not implementation\n\n## Rationalization Table\n\n| Excuse                 | Reality                                          |\n| ---------------------- | ------------------------------------------------ |\n| \"Tests after it works\" | Post-hoc tests lock implementation, not behavior |\n| \"Too simple to test\"   | Simple code grows; the test is the spec          |\n| \"I tested it manually\" | Manual does not persist across tomorrow's change |\n| \"Just a prototype\"     | Prototypes ship; debt starts on day one          |\n\nExtended playbook: [`references\u002Frationalizations.md`](references\u002Frationalizations.md).\n\n## Red Flags\n\n- Code with no corresponding test\n- Test passes on first run (may prove nothing)\n- \"All tests pass\" without running them\n- Bug fix without reproduction test\n- Skipping tests to go green\n\n## Verification\n\n```\nSkill type: discipline\nBar level:  discipline\n```\n\n## See Also\n\n- [`references\u002Ftest-shape.md`](references\u002Ftest-shape.md) — pyramid, patterns, anti-patterns\n- [`references\u002Ftesting-patterns.md`](references\u002Ftesting-patterns.md) — code examples\n- [`..\u002Fcode-review\u002Freferences\u002Fspec-as-test.md`](..\u002Fcode-review\u002Freferences\u002Fspec-as-test.md) — S4 review of test evidence against the spec\n- [`references\u002Ftesting-standards.md`](references\u002Ftesting-standards.md) — path conventions\n","# Test-Driven Development\n\nWrite-time discipline: a failing test before the code that makes it pass. \"Seems right\" is not done.\n\n## When to use\n\n- New logic or behavior\n- Bug fix (Prove-It: reproduction test before the fix)\n- Behavior change that could regress\n\nSkip: pure config\u002Fdocs\u002Fformatting; throwaway spikes (return when code graduates).\n\nBrowser + runtime checks: [`references\u002Fbrowser-testing.md`](references\u002Fbrowser-testing.md).\n\n## Cycle\n\n```\nRED (failing test) → GREEN (minimal code) → REFACTOR (tests stay green)\n```\n\nBug path (Prove-It): reproduction test FAILS → fix → PASSES → full suite.\n\nExamples: [`references\u002Ftdd-cycle-examples.md`](references\u002Ftdd-cycle-examples.md), [`references\u002Fprove-it-example.md`](references\u002Fprove-it-example.md).\nPyramid \u002F writing style \u002F anti-patterns: [`references\u002Ftest-shape.md`](references\u002Ftest-shape.md).\n\n## Procedure\n\n1. **Name the behavior.** One sentence: \"After X, the system does Y.\" Completion: that sentence exists.\n2. **RED — derive the expected result from the spec or a known example, not the implementation; write and run one failing test for one behavior.** Completion: failure output captured.\n3. **GREEN — make the minimum change that passes.** Finish the RED → GREEN loop before writing the next behavior's test. Completion: the new test passes.\n4. **Full suite.** Completion: suite green; no new skips.\n5. **REFACTOR.** Cleanup only; re-run after each edit. Completion: suite still green.\n6. **Commit after the full suite passes.** Completion: no failing tests in the landing diff.\n\nComplex bug, unbiased repro: spawn a writer that sees the bug description **not** the fix; verify RED yourself, then GREEN. Do not hard-wire a host-local persona path.\n\n## Acceptance Criteria\n\n- [ ] Test for the new behavior existed before implementation (RED captured)\n- [ ] Minimal implementation made that test pass (GREEN captured)\n- [ ] Bug fixes include a reproduction test that failed before the fix\n- [ ] Full suite green; no skips added to force green\n- [ ] Test names describe behavior, not implementation\n\n## Rationalization Table\n\n| Excuse                 | Reality                                          |\n| ---------------------- | ------------------------------------------------ |\n| \"Tests after it works\" | Post-hoc tests lock implementation, not behavior |\n| \"Too simple to test\"   | Simple code grows; the test is the spec          |\n| \"I tested it manually\" | Manual does not persist across tomorrow's change |\n| \"Just a prototype\"     | Prototypes ship; debt starts on day one          |\n\nExtended playbook: [`references\u002Frationalizations.md`](references\u002Frationalizations.md).\n\n## Red Flags\n\n- Code with no corresponding test\n- Test passes on first run (may prove nothing)\n- \"All tests pass\" without running them\n- Bug fix without reproduction test\n- Skipping tests to go green\n\n## Verification\n\n```\nSkill type: discipline\nBar level:  discipline\n```\n\n## See Also\n\n- [`references\u002Ftest-shape.md`](references\u002Ftest-shape.md) — pyramid, patterns, anti-patterns\n- [`references\u002Ftesting-patterns.md`](references\u002Ftesting-patterns.md) — code examples\n- [`..\u002Fcode-review\u002Freferences\u002Fspec-as-test.md`](..\u002Fcode-review\u002Freferences\u002Fspec-as-test.md) — S4 review of test evidence against the spec\n- [`references\u002Ftesting-standards.md`](references\u002Ftesting-standards.md) — path conventions\n",{"name":5,"type":23,"bucket":24,"description":7},"discipline","engineering","master","1a067ffc9024631d22ca8bf2b47ad81369f28056","arthurpower\u002Fskills\u002Ftest-driven-development",0,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower","https:\u002F\u002Fgithub.com\u002Fwinter6205","2026-10-28 23:46:38",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add winter6205\u002Farthurpower --skill test-driven-development",{"tool":38,"command":39},"bunx","bunx skills add winter6205\u002Farthurpower --skill test-driven-development",{"tool":41,"command":42},"pnpm","pnpm dlx skills add winter6205\u002Farthurpower --skill test-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fbrowser-testing.md","REFERENCE","参考文档",1672,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Fbrowser-testing.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fprove-it-example.md",1379,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Fprove-it-example.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Frationalizations.md",2934,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Frationalizations.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Ftdd-cycle-examples.md",1391,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Ftdd-cycle-examples.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Ftest-shape.md",2280,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Ftest-shape.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Ftesting-patterns.md",3010,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Ftesting-patterns.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Ftesting-standards.md",686,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002Freferences\u002Ftesting-standards.md",[77,84,91,98,105,112],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7EFDX3VT33HSHDA17T9N9JJ","writing-plans","Use when turning a buildable spec into ordered tracer bullets after architecture-change-reviewer. Covers vertical slicing, dependency order, and headroom for the implementer. Triggers on 写计划, 拆任务, 任务分解, 制定方案, 跨文件改动, 计划.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7EFDQV6SGJWDK634DWPFR35","wayfinder","Use when a chunk of work is more than one agent session can hold — plan it as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7EFDM9Y55GKYFGY96088BYB","verification-before-completion","This skill should be used when claiming \"完成\" \u002F \"done\" \u002F \"fixed\" \u002F \"passing\" \u002F \"ready to ship\", before trusting a subagent success report, or when checking \"对照计划\" \u002F \"对照 spec\" — whether this run's delivery matches its basis.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M7EFDFCY4V0JMQHSEE34A2JS","using-agent-skills","Use when starting a new session, switching tasks, or unsure which arthurpower skill applies. Routes incoming work to the matching skill via flowchart before invoking. Activates on phrases like \"which skill should I use\", \"skill check\", \"pre-task skill check\", \"how to start\", \"router\", \"skill routing\", or when multiple competing skills could apply. Does not auto-invoke user-invoked authoring skills (skill-authoring, self-evolving-rules).","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fusing-agent-skills\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7EFD6NPWFG5WSXT0DF07XH1","systematic-debugging","Use when debugging a test failure, build break, unexpected runtime error, flaky test, or hanging process. Triggers on phrases like \"fix this bug\", \"getting an error\", \"failing test\", \"flaky\", \"hanging\", \"halfway through debugging\", \"this used to work\", \"intermittent failure\", \"stack trace shows X\", or any case where behavior does not match expectations. Prevents shotgun debugging.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":18},"01M7EFD2BSFHQYRCNX49CBB9AK","spec-driven-development","Use when the work isn't a spec yet — a one-line ask, multi-file change, ambiguous scope, or architectural decision on the table. Spec-driven-development captures what to build, why, and how to know it's done before any plan or commit. Skip for single-line fixes or bounded bug fixes.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fspec-driven-development\u002FSKILL.md",[],[]]