[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DEEC2E2RZ5YP3TSE8NHF71":3,"skill-same:01M7DEEC2E2RZ5YP3TSE8NHF71":46},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7DEEC2E2RZ5YP3TSE8NHF71","pigpen-tdd",null,"Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","MichaelKinsy\u002Fpigpen","MichaelKinsy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54590707?v=4","01M7CYQK2FGYV1482DN7VHACJ6","Michael Kinsy","01M7DEAGVENVX1P76H737CT5FX",18,"MIT","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fdev-skills\u002Fskills\u002Fpigpen-tdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pigpen-tdd\ndescription: Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.\n---\n\nAdapted from `skills\u002Fengineering\u002Ftdd\u002FSKILL.md` of mattpocock\u002Fskills at d81f3a1 (MIT). The\nchanges are listed in the Package's CREDITS.md.\n\n# Test-Driven Development\n\nTDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle: consult them before and during the loop, not after.\n\nThis is an explicit test-first mode. Load it when the user asks for TDD or when an accepted plan selects red-green-refactor for a crisp contract.\n\nWhen exploring the codebase, read `GLOSSARY.md` or `CONTEXT.md` (if either exists) so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.\n\n## What a good test is\n\nTests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification: \"user can checkout with valid cart\" tells you exactly what capability exists, and it survives refactors because it doesn't care about internal structure.\n\nA test takes its expected value from an independent oracle: the spec, a worked example, a known-good literal. Never from the code's own computation.\n\n## Seams: where tests go\n\nA **seam** is the public boundary you test at: the interface where you observe behavior without reaching inside. Tests live at seams, never against internals.\n\n**Test only at pre-agreed seams.** Before writing any test, write down the seams under test and confirm them with the user. No test is written at an unconfirmed seam. You can't test everything, so agreeing the seams up front is how testing effort lands on the critical paths and complex logic instead of every edge case. Prefer existing seams, and the highest seam possible.\n\nAsk: \"What's the public interface, and which seams should we test?\"\n\n## Anti-patterns\n\n- **Implementation-coupled**: mocks internal collaborators, tests private methods, or verifies through a side channel (querying the database instead of using the interface). The tell: the test breaks when you refactor but behavior hasn't changed.\n- **Tautological**: the assertion recomputes the expected value the way the code does (`expect(add(a, b)).toBe(a + b)`, a snapshot derived by hand the same way, a constant asserted equal to itself), so it passes by construction and can never disagree with the code. Expected values must come from an independent source of truth: a known-good literal, a worked example, the spec.\n- **Horizontal slicing**: writing all tests first, then all implementation. Bulk tests verify _imagined_ behavior: you test the _shape_ of things rather than user-facing behavior, the tests go insensitive to real changes, and you commit to test structure before understanding the implementation. Work in **vertical slices** instead: one test → one implementation → repeat, each test a **tracer bullet** that responds to what the last cycle taught you.\n\n## Rules of the loop\n\n- **Red before green.** Write the failing test first, then only enough code to pass it. Don't anticipate future tests or add speculative features.\n- **One slice at a time.** One seam, one test, one minimal implementation per cycle.\n- **Refactoring is not part of the loop.** It belongs to the review stage (see the `pigpen-code-review` skill), not the red → green implementation cycle.\n- **Mutation gate.** A test earns its keep only if it could fail. After green, flip one small detail in the code it covers, a comparison or an operator, and confirm the test goes red; restore, and confirm green. A passing test you could not make fail is decoration. Run the smallest slice early and locally; the full suite once at the end.\n- **Cover the edges.** Exercise invalid, empty, boundary, and error-path inputs, not only the happy path.\n- **Never bend a test to get green.** Never weaken, skip, hardcode, or delete a test to force it green. If a test is wrong, say so and fix it in the open.\n","Adapted from `skills\u002Fengineering\u002Ftdd\u002FSKILL.md` of mattpocock\u002Fskills at d81f3a1 (MIT). The\nchanges are listed in the Package's CREDITS.md.\n\n# Test-Driven Development\n\nTDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle: consult them before and during the loop, not after.\n\nThis is an explicit test-first mode. Load it when the user asks for TDD or when an accepted plan selects red-green-refactor for a crisp contract.\n\nWhen exploring the codebase, read `GLOSSARY.md` or `CONTEXT.md` (if either exists) so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.\n\n## What a good test is\n\nTests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification: \"user can checkout with valid cart\" tells you exactly what capability exists, and it survives refactors because it doesn't care about internal structure.\n\nA test takes its expected value from an independent oracle: the spec, a worked example, a known-good literal. Never from the code's own computation.\n\n## Seams: where tests go\n\nA **seam** is the public boundary you test at: the interface where you observe behavior without reaching inside. Tests live at seams, never against internals.\n\n**Test only at pre-agreed seams.** Before writing any test, write down the seams under test and confirm them with the user. No test is written at an unconfirmed seam. You can't test everything, so agreeing the seams up front is how testing effort lands on the critical paths and complex logic instead of every edge case. Prefer existing seams, and the highest seam possible.\n\nAsk: \"What's the public interface, and which seams should we test?\"\n\n## Anti-patterns\n\n- **Implementation-coupled**: mocks internal collaborators, tests private methods, or verifies through a side channel (querying the database instead of using the interface). The tell: the test breaks when you refactor but behavior hasn't changed.\n- **Tautological**: the assertion recomputes the expected value the way the code does (`expect(add(a, b)).toBe(a + b)`, a snapshot derived by hand the same way, a constant asserted equal to itself), so it passes by construction and can never disagree with the code. Expected values must come from an independent source of truth: a known-good literal, a worked example, the spec.\n- **Horizontal slicing**: writing all tests first, then all implementation. Bulk tests verify _imagined_ behavior: you test the _shape_ of things rather than user-facing behavior, the tests go insensitive to real changes, and you commit to test structure before understanding the implementation. Work in **vertical slices** instead: one test → one implementation → repeat, each test a **tracer bullet** that responds to what the last cycle taught you.\n\n## Rules of the loop\n\n- **Red before green.** Write the failing test first, then only enough code to pass it. Don't anticipate future tests or add speculative features.\n- **One slice at a time.** One seam, one test, one minimal implementation per cycle.\n- **Refactoring is not part of the loop.** It belongs to the review stage (see the `pigpen-code-review` skill), not the red → green implementation cycle.\n- **Mutation gate.** A test earns its keep only if it could fail. After green, flip one small detail in the code it covers, a comparison or an operator, and confirm the test goes red; restore, and confirm green. A passing test you could not make fail is decoration. Run the smallest slice early and locally; the full suite once at the end.\n- **Cover the edges.** Exercise invalid, empty, boundary, and error-path inputs, not only the happy path.\n- **Never bend a test to get green.** Never weaken, skip, hardcode, or delete a test to force it green. If a test is wrong, say so and fix it in the open.\n",{"name":5,"description":7},"main","262f2fbc0c721ee470028905399e2cbe1d652847","components\u002Fdev-skills\u002Fskills\u002Fpigpen-tdd",5,"https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen","https:\u002F\u002Fgithub.com\u002FMichaelKinsy","Systems & platform engineer @ HPE | \r\nBSU Alumni 21.              |\r\nBuilding AI\u002Fsoftware infrastructure, tools, and open-source software.","2026-11-15 06:15:23",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add MichaelKinsy\u002Fpigpen --skill pigpen-tdd",{"tool":38,"command":39},"bunx","bunx skills add MichaelKinsy\u002Fpigpen --skill pigpen-tdd",{"tool":41,"command":42},"pnpm","pnpm dlx skills add MichaelKinsy\u002Fpigpen --skill pigpen-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fdev-skills\u002Fskills\u002Fpigpen-tdd\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7DEP7TB04M3XJ8Z0NGKW97X","pigpen-superpowers-writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-writing-skills\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7DEP3W24SKFVMRYWJQB1073","pigpen-superpowers-writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-writing-plans\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7DENZ1ZPD21VGVXBQKE8Z4F","pigpen-superpowers-verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-verification-before-completion\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DENV9CTFN7KAGPA9BEMGQ1","pigpen-superpowers-using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-using-superpowers\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DENQR56MYZJAAWDEX1YEMZ","pigpen-superpowers-using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-using-git-worktrees\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DENFGH1S9583WWJ4EY9RCN","pigpen-superpowers-test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FMichaelKinsy\u002Fpigpen\u002Fblob\u002Fmain\u002Fcomponents\u002Fsuperpowers\u002Fskills\u002Fpigpen-superpowers-test-driven-development\u002FSKILL.md",[],[]]