[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EBXADAR0CHYZWG5HBR3RST":3,"skill-same:01M6EBXADAR0CHYZWG5HBR3RST":175},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6EBXADAR0CHYZWG5HBR3RST","tdd",null,"Enforces Test-Driven Development (Red-Green-Refactor). Use when writing unit tests, implementing TDD, or improving test coverage for any feature.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Ftdd\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"dart","unit","feature","tests","green","red-green-refactor","test coverage","use","coverage","write","testing","quality","refactor","java","development","unit tests","test","go","writing","2026-11-10 10:12:30",false,"---\nname: tdd\ndescription: Enforces Test-Driven Development (Red-Green-Refactor). Use when writing unit tests, implementing TDD, or improving test coverage for any feature.\nmetadata:\n  labels: [tdd, testing, quality, red-green-refactor]\n  triggers:\n    files:\n      [\n        '**\u002F*.test.ts',\n        '**\u002F*.spec.ts',\n        '**\u002F*_test.go',\n        '**\u002F*Test.java',\n        '**\u002F*_test.dart',\n        '**\u002F*_spec.rb',\n      ]\n    keywords:\n      [\n        tdd,\n        unit test,\n        write test,\n        red green refactor,\n        failing test,\n        test coverage,\n      ]\n---\n\n# Test-Driven Development (TDD)\n\n## **Priority: P1 (OPERATIONAL)**\n\n## **The Iron Law**\n\n> **NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.**\n> Code written before the test must be deleted. Start over.\n\n## **The TDD Cycle**\n\n1. **RED**: Write a minimal failing test. **Verify failure** (Expected error, not typo).\n2. **GREEN**: Write simplest code to pass. **Verify pass**.\n3. **REFACTOR**: Clean up code while staying green.\n\n## **AAA Structure (Mandatory)**\n\nEvery test must follow Arrange-Act-Assert:\n\n- **Arrange**: Set up inputs, stubs, mocks, and expected values.\n- **Act**: Call the single unit under test.\n- **Assert**: Verify output and side effects. One logical assertion per test.\n  **(See [AAA Example](references\u002Faaa_example.md) for code structure)**.\n\n## **Coverage Thresholds**\n\n- **Minimum**: 80% (Statements, Functions, Lines), 75% (Branches).\n- **Target**: 90% (Statements, Functions, Lines), 85% (Branches).\n- Configure in test runner config (e.g. `jest.config.ts`, `vitest.config.ts`). Coverage below minimum is a build-gate failure.\n\n## **Test Runner Commands**\n\n| Language      | Runner            | Watch Mode                  | Coverage                     |\n| ------------- | ----------------- | --------------------------- | ---------------------------- |\n| TypeScript\u002FJS | `jest` \u002F `vitest` | `vitest --watch`            | `vitest run --coverage`      |\n| Go            | `go test`         | `go test -v .\u002F... -count=1` | `go test -cover .\u002F...`       |\n| Java          | JUnit 5 + Maven   | `mvn test`                  | `mvn verify -P coverage`     |\n| Kotlin        | JUnit 5 + Kotest  | `.\u002Fgradlew test`            | `.\u002Fgradlew jacocoTestReport` |\n| Dart\u002FFlutter  | `flutter test`    | `flutter test --watch`      | `flutter test --coverage`    |\n\n## **Core Principles**\n\n- **Watch it Fail**: Prove the test works.\n- **Minimalism**: Don't add features\u002Foptions beyond current test (YAGNI).\n- **Real Over Mock**: Prefer real dependencies unless slow\u002Fflaky.\n- **One Reason to Fail**: Test one behavior per test.\n- **Descriptive Names**: e.g. `should_returnError_when_emailIsInvalid`.\n\n## **When to Use Mocks vs Real Dependencies**\n\n- **Database**: Real DB (test container) or in-memory; mock as last resort.\n- **HTTP\u002FExternal APIs**: Always mock.\n- **Filesystem**: Use temp dir; mock for unit isolation.\n- **Time\u002FDates**: Always mock\u002Fcontrol.\n- **Internal services**: Real if fast (\u003C200ms); mock if cross-network.\n\n## **Verification Checklist**\n\n- [ ] Every new function\u002Fmethod has a failing test first?\n- [ ] Failure message was expected?\n- [ ] Minimal code implemented passed?\n- [ ] AAA structure followed?\n- [ ] Coverage thresholds met?\n\n## **Expert References**\n\n- [AAA Example](references\u002Faaa_example.md)\n- [TDD Patterns](references\u002Ftdd_patterns.md)\n- [Testing Anti-Patterns](references\u002Ftesting_anti_patterns.md)\n\n","# Test-Driven Development (TDD)\n\n## **Priority: P1 (OPERATIONAL)**\n\n## **The Iron Law**\n\n> **NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.**\n> Code written before the test must be deleted. Start over.\n\n## **The TDD Cycle**\n\n1. **RED**: Write a minimal failing test. **Verify failure** (Expected error, not typo).\n2. **GREEN**: Write simplest code to pass. **Verify pass**.\n3. **REFACTOR**: Clean up code while staying green.\n\n## **AAA Structure (Mandatory)**\n\nEvery test must follow Arrange-Act-Assert:\n\n- **Arrange**: Set up inputs, stubs, mocks, and expected values.\n- **Act**: Call the single unit under test.\n- **Assert**: Verify output and side effects. One logical assertion per test.\n  **(See [AAA Example](references\u002Faaa_example.md) for code structure)**.\n\n## **Coverage Thresholds**\n\n- **Minimum**: 80% (Statements, Functions, Lines), 75% (Branches).\n- **Target**: 90% (Statements, Functions, Lines), 85% (Branches).\n- Configure in test runner config (e.g. `jest.config.ts`, `vitest.config.ts`). Coverage below minimum is a build-gate failure.\n\n## **Test Runner Commands**\n\n| Language      | Runner            | Watch Mode                  | Coverage                     |\n| ------------- | ----------------- | --------------------------- | ---------------------------- |\n| TypeScript\u002FJS | `jest` \u002F `vitest` | `vitest --watch`            | `vitest run --coverage`      |\n| Go            | `go test`         | `go test -v .\u002F... -count=1` | `go test -cover .\u002F...`       |\n| Java          | JUnit 5 + Maven   | `mvn test`                  | `mvn verify -P coverage`     |\n| Kotlin        | JUnit 5 + Kotest  | `.\u002Fgradlew test`            | `.\u002Fgradlew jacocoTestReport` |\n| Dart\u002FFlutter  | `flutter test`    | `flutter test --watch`      | `flutter test --coverage`    |\n\n## **Core Principles**\n\n- **Watch it Fail**: Prove the test works.\n- **Minimalism**: Don't add features\u002Foptions beyond current test (YAGNI).\n- **Real Over Mock**: Prefer real dependencies unless slow\u002Fflaky.\n- **One Reason to Fail**: Test one behavior per test.\n- **Descriptive Names**: e.g. `should_returnError_when_emailIsInvalid`.\n\n## **When to Use Mocks vs Real Dependencies**\n\n- **Database**: Real DB (test container) or in-memory; mock as last resort.\n- **HTTP\u002FExternal APIs**: Always mock.\n- **Filesystem**: Use temp dir; mock for unit isolation.\n- **Time\u002FDates**: Always mock\u002Fcontrol.\n- **Internal services**: Real if fast (\u003C200ms); mock if cross-network.\n\n## **Verification Checklist**\n\n- [ ] Every new function\u002Fmethod has a failing test first?\n- [ ] Failure message was expected?\n- [ ] Minimal code implemented passed?\n- [ ] AAA structure followed?\n- [ ] Coverage thresholds met?\n\n## **Expert References**\n\n- [AAA Example](references\u002Faaa_example.md)\n- [TDD Patterns](references\u002Ftdd_patterns.md)\n- [Testing Anti-Patterns](references\u002Ftesting_anti_patterns.md)\n\n",{"name":5,"metadata":43,"description":7},{"labels":44,"triggers":45},[5,29,30,24],{"files":46,"keywords":53},[47,48,49,50,51,52],"**\u002F*.test.ts","**\u002F*.spec.ts","**\u002F*_test.go","**\u002F*Test.java","**\u002F*_test.dart","**\u002F*_spec.rb",[5,54,55,56,57,25],"unit test","write test","red green refactor","failing test","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Ftdd",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill tdd",{"tool":73,"command":74},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill tdd",{"tool":76,"command":77},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Ftdd\u002FSKILL.md",true,[81,87,91,95,99,103,107,111,117,123,127,131,135,139,143,147,151,155,159,163,167,171],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"core\u002Fcolor_palettes.py","SCRIPT","脚本",8724,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fcolor_palettes.py",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"core\u002Feasing.py",6289,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Feasing.py",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"core\u002Fframe_composer.py",14468,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fframe_composer.py",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"core\u002Fgif_builder.py",9565,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fgif_builder.py",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"core\u002Ftypography.py",10761,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Ftypography.py",{"path":104,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":105,"sourceHtmlUrl":106},"core\u002Fvalidators.py",8225,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fvalidators.py",{"path":108,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":109,"sourceHtmlUrl":110},"core\u002Fvisual_effects.py",14862,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fvisual_effects.py",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"LICENSE.txt","LICENSE","许可证",11357,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt",{"path":118,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":121,"sourceHtmlUrl":122},"requirements.txt","REFERENCE","参考文档",66,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Frequirements.txt",{"path":124,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":125,"sourceHtmlUrl":126},"templates\u002Fbounce.py",3055,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fbounce.py",{"path":128,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":129,"sourceHtmlUrl":130},"templates\u002Fexplode.py",11259,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fexplode.py",{"path":132,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":133,"sourceHtmlUrl":134},"templates\u002Ffade.py",10143,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Ffade.py",{"path":136,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":137,"sourceHtmlUrl":138},"templates\u002Fflip.py",9458,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fflip.py",{"path":140,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":141,"sourceHtmlUrl":142},"templates\u002Fkaleidoscope.py",6349,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fkaleidoscope.py",{"path":144,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":145,"sourceHtmlUrl":146},"templates\u002Fmorph.py",11241,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fmorph.py",{"path":148,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":149,"sourceHtmlUrl":150},"templates\u002Fmove.py",9395,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fmove.py",{"path":152,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":153,"sourceHtmlUrl":154},"templates\u002Fpulse.py",8638,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fpulse.py",{"path":156,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":157,"sourceHtmlUrl":158},"templates\u002Fshake.py",3737,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fshake.py",{"path":160,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":161,"sourceHtmlUrl":162},"templates\u002Fslide.py",9367,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fslide.py",{"path":164,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":165,"sourceHtmlUrl":166},"templates\u002Fspin.py",9096,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fspin.py",{"path":168,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":169,"sourceHtmlUrl":170},"templates\u002Fwiggle.py",10060,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fwiggle.py",{"path":172,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":173,"sourceHtmlUrl":174},"templates\u002Fzoom.py",10111,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fslack-gif-creator\u002Ftemplates\u002Fzoom.py",[176,185,194,203,209,215],{"skillNo":177,"name":178,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[182,183,184],"model","model hierarchy","model hierarchy skill",{"skillNo":186,"name":187,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[191,192,193],"MCP","zoom","zoom mcp",{"skillNo":195,"name":196,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[200,201,202,192],"sdk","zoom apps sdk","apps",{"skillNo":204,"name":205,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[205],{"skillNo":210,"name":211,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[211],{"skillNo":216,"name":217,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":218,"categories":219,"keywords":220,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[217]]