[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CFN240F2BQRTH2PDPEJ0N1":3,"skill-same:01M7CFN240F2BQRTH2PDPEJ0N1":60},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CFN240F2BQRTH2PDPEJ0N1","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.","BrianLiDesign\u002Fblidesign-ai-toolkit","BrianLiDesign","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54822500?v=4","01M7CFJ90VGBF0492PJ4E0YB3Y","Brian Li","01M7CFJ91YJ7S88B0YTDDP6A7G",0,"MIT","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-skills\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: 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\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\nWhen exploring the codebase, read `GLOSSARY.md` (if it 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\nSee [tests.md](tests.md) for examples and [mocking.md](mocking.md) for mocking guidelines.\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.\n\nAsk: \"What's the public interface, and which seams should we test?\" Give each proposed seam a one-line note on what it catches and what it misses.\n\nWhen the shape of that interface is itself in question (how deep the module is, where the seam belongs, what the interface should expose), call the Skill tool with \"codebase-design\" for the vocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and locality terms, and it is a reference to consult, not a session to run.\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 `code-review` skill), not the red → green implementation cycle.\n\n\u003C!-- blidesign-toolkit-overlay:start -->\n## Toolkit test evidence\n\nDerive expected behavior from acceptance examples, public contracts, or independently stated\ninvariants. For edge-heavy logic, use the project's property-based tools when they offer useful\ncoverage. Apply targeted mutation testing when checking whether a critical assertion detects a\nregression; coverage percentage alone does not establish test effectiveness. Preserve existing\nauthorization and agreed seams. Use the project-check skill when available to record the focused\nred\u002Fgreen result and the final project gate, including the tested commit and unrun checks.\n\u003C!-- blidesign-toolkit-overlay:end -->\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\nWhen exploring the codebase, read `GLOSSARY.md` (if it 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\nSee [tests.md](tests.md) for examples and [mocking.md](mocking.md) for mocking guidelines.\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.\n\nAsk: \"What's the public interface, and which seams should we test?\" Give each proposed seam a one-line note on what it catches and what it misses.\n\nWhen the shape of that interface is itself in question (how deep the module is, where the seam belongs, what the interface should expose), call the Skill tool with \"codebase-design\" for the vocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and locality terms, and it is a reference to consult, not a session to run.\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 `code-review` skill), not the red → green implementation cycle.\n\n\u003C!-- blidesign-toolkit-overlay:start -->\n## Toolkit test evidence\n\nDerive expected behavior from acceptance examples, public contracts, or independently stated\ninvariants. For edge-heavy logic, use the project's property-based tools when they offer useful\ncoverage. Apply targeted mutation testing when checking whether a critical assertion detects a\nregression; coverage percentage alone does not establish test effectiveness. Preserve existing\nauthorization and agreed seams. Use the project-check skill when available to record the focused\nred\u002Fgreen result and the final project gate, including the tested commit and unrun checks.\n\u003C!-- blidesign-toolkit-overlay:end -->\n",{"name":5,"description":7},"main","b8aa90af52b15176766c4ee334689ce6828a6a38","plugins\u002Fengineering-skills\u002Fskills\u002Ftdd","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit","https:\u002F\u002Fgithub.com\u002FBrianLiDesign","https:\u002F\u002Fbrianlidesign.vercel.app\u002F","Computer Engineer, Designer, Developer, & Student @ California Polytechnic University, San Luis Obispo","2026-11-10 23:39:35",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add BrianLiDesign\u002Fblidesign-ai-toolkit --skill tdd",{"tool":38,"command":39},"bunx","bunx skills add BrianLiDesign\u002Fblidesign-ai-toolkit --skill tdd",{"tool":41,"command":42},"pnpm","pnpm dlx skills add BrianLiDesign\u002Fblidesign-ai-toolkit --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-skills\u002Fskills\u002Ftdd\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",87,"https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-skills\u002Fskills\u002Ftdd\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"mocking.md",1481,"https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-skills\u002Fskills\u002Ftdd\u002Fmocking.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"tests.md",2214,"https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-skills\u002Fskills\u002Ftdd\u002Ftests.md",[61,68,75,82,89,96],{"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},"01M7CFQW0KNR2PJ3RG8Q41JNA2","toolkit-smoke-test","Verify a toolkit update across installed agent hosts using skill discovery, installed versions, MCP startup, and harmless tool calls. Use after installation or for cross-host release checks.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Ftoolkit-smoke-test\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},"01M7CFQS0V2Y73C12GZXYDN06D","security-check","Assess security implications of a software change using project scanners, dependency and secret checks, and changed trust boundaries. Use for requested security checks or changes affecting authentication, permissions, untrusted input, or sensitive data.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Fsecurity-check\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},"01M7CFQJPDV0W6RVFZHRVQNSPY","research-and-recommend","Research an open question or unfamiliar implementation, compare viable approaches against the user's constraints, and recommend the best fit using primary sources and applicable standards. Use when the user wants evidence-backed options and a recommendation; a single documentation lookup belongs to find-docs.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Fresearch-and-recommend\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},"01M7CFQE64C9HEW9PD7YCBKBHK","release-acceptance","Verify a deployed release against public behavior and persistence requirements, recording inspectable evidence and cleaning up owned test data.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Frelease-acceptance\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CFQA2D5G5WAB34KVHX1P1N","project-check","Discover and run a project's verification commands, recording commit-specific results and missing checks. Use to validate a change or establish the repository's verification gate.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Fproject-check\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7CFQ76Z5ZSENWP9NB1TTY7X","pr-closeout","Finish an authorized GitHub PR through review remediation, CI, metadata, merge, and post-merge verification. Use for PR closeout; keep assessment-only requests read-only.","https:\u002F\u002Fgithub.com\u002FBrianLiDesign\u002Fblidesign-ai-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolkit-workflows\u002Fskills\u002Fpr-closeout\u002FSKILL.md",[],[]]