[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78GYVE71DN5EZ5ZFWTGFHZ2":3,"skill-same:01M78GYVE71DN5EZ5ZFWTGFHZ2":54},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78GYVE71DN5EZ5ZFWTGFHZ2","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.","sergehas\u002Fganttee","sergehas","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55877559?v=4","01M78GWP103XC9MZP2826NNTF3","01M78GWP22QVFBQNG8FAPPHE7Z",1,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tdd\ndescription:\n  Test-driven development. Use when the user wants to build features or fix bugs test-first,\n  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\nkeeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every\nsection 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\nvocabulary 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\nentirely; tests shouldn't. A good test reads like a specification: \"user can checkout with valid\ncart\" tells you exactly what capability exists, and it survives refactors because it doesn't care\nabout 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\nreaching 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\nconfirm them with the user. No test is written at an unconfirmed seam. You can't test everything, so\nagreeing the seams up front is how testing effort lands on the critical paths and complex logic\ninstead of every edge case.\n\nAsk: \"What's the public interface, and which seams should we test?\" Give each proposed seam a\none-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\nbelongs, what the interface should expose), call the Skill tool with \"codebase-design\" for the\nvocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and\nlocality 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\n  through a side channel (querying the database instead of using the interface). The tell: the test\n  breaks when you refactor but behavior hasn't changed.\n- **Tautological**: the assertion recomputes the expected value the way the code does\n  (`expect(add(a, b)).toBe(a + b)`, a snapshot derived by hand the same way, a constant asserted\n  equal to itself), so it passes by construction and can never disagree with the code. Expected\n  values must come from an independent source of truth: a known-good literal, a worked example, the\n  spec.\n- **Horizontal slicing**: writing all tests first, then all implementation. Bulk tests verify\n  _imagined_ behavior: you test the _shape_ of things rather than user-facing behavior, the tests go\n  insensitive to real changes, and you commit to test structure before understanding the\n  implementation. Work in **vertical slices** instead: one test → one implementation → repeat, each\n  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\n  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`\n  skill), not the red → green implementation cycle.\n","# Test-Driven Development\n\nTDD is the red → green loop. This skill is the reference that makes that loop produce tests worth\nkeeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every\nsection 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\nvocabulary 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\nentirely; tests shouldn't. A good test reads like a specification: \"user can checkout with valid\ncart\" tells you exactly what capability exists, and it survives refactors because it doesn't care\nabout 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\nreaching 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\nconfirm them with the user. No test is written at an unconfirmed seam. You can't test everything, so\nagreeing the seams up front is how testing effort lands on the critical paths and complex logic\ninstead of every edge case.\n\nAsk: \"What's the public interface, and which seams should we test?\" Give each proposed seam a\none-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\nbelongs, what the interface should expose), call the Skill tool with \"codebase-design\" for the\nvocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and\nlocality 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\n  through a side channel (querying the database instead of using the interface). The tell: the test\n  breaks when you refactor but behavior hasn't changed.\n- **Tautological**: the assertion recomputes the expected value the way the code does\n  (`expect(add(a, b)).toBe(a + b)`, a snapshot derived by hand the same way, a constant asserted\n  equal to itself), so it passes by construction and can never disagree with the code. Expected\n  values must come from an independent source of truth: a known-good literal, a worked example, the\n  spec.\n- **Horizontal slicing**: writing all tests first, then all implementation. Bulk tests verify\n  _imagined_ behavior: you test the _shape_ of things rather than user-facing behavior, the tests go\n  insensitive to real changes, and you commit to test structure before understanding the\n  implementation. Work in **vertical slices** instead: one test → one implementation → repeat, each\n  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\n  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`\n  skill), not the red → green implementation cycle.\n",{"name":5,"description":7},"develop","3656175f11e1e311838b52d29a39d3173c74e3d8",".github\u002Fskills\u002Ftdd",0,"https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee","https:\u002F\u002Fgithub.com\u002Fsergehas","2026-11-08 07:43:24",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add sergehas\u002Fganttee --skill tdd",{"tool":36,"command":37},"bunx","bunx skills add sergehas\u002Fganttee --skill tdd",{"tool":39,"command":40},"pnpm","pnpm dlx skills add sergehas\u002Fganttee --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Ftdd\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"mocking.md","REFERENCE","参考文档",1482,"https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Ftdd\u002Fmocking.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"tests.md",2214,"https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Ftdd\u002Ftests.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M78GZ7BMMQP5DJ1AQ6355P0K","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M78GZ5SJJ8G7SB4VPERDM1B7","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M78GZ16YCV8G87V26BVTJZ2H","ux-css-layout","VS Code (and so Ganttee) CSS conventions, file organization, class naming, standard sizes, scrollable content, responsive layout, and text overflow\u002Fellipsis patterns. Use when writing CSS, building layouts, or fixing text truncation issues.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fux-css-layout\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M78GYYTPF0Z3SY412PCND261","to-questionnaire","Turn a decision you can't fully answer into a questionnaire for someone else to fill in.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fto-questionnaire\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M78GYQFC5GFHC544FYDZBVYV","spec-router","Detect which spec-lifecycle agent a request needs (drafting, reviewing, implementing, or test planning a feature spec) and suggest the handoff — never acts without confirmation. Use whenever a message mentions a spec\u002Ffeature-spec file, a roadmap status, or spec review\u002Fimplementation\u002F draft\u002Ftest-plan intent, even without an explicit @agent mention.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fspec-router\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M78GYMM6QVMVC505BNVTB1WB","setup-skills","Configure this repo for the engineering skills: set up its issue tracker and domain doc layout. Run once before first use of the other engineering skills.","https:\u002F\u002Fgithub.com\u002Fsergehas\u002Fganttee\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fsetup-skills\u002FSKILL.md",[],[]]