[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EZADYWSSXGKP2PHVKB7TQX":3,"skill-same:01M6EZADYWSSXGKP2PHVKB7TQX":82},{"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":28,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6EZADYWSSXGKP2PHVKB7TQX","test-driven-developer",null,"Write bulletproof code using Test-Driven Development (TDD) with proper unit tests, integration tests, mocking, and test architecture. Use when implementing features test-first or improving test coverage.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F14-skillsdirectory\u002Fskills\u002Ftest-driven-developer\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"test","test driven developer","driven","developer","github copilot","architecture","copilot","development","code","unit tests","first","coverage","use","windsurf","tests","integration tests","unit","mocking","with","github","2026-11-10 10:12:30",false,"---\nname: test-driven-developer\ndescription: Write bulletproof code using Test-Driven Development (TDD) with proper unit tests, integration tests, mocking, and test architecture. Use when implementing features test-first or improving test coverage.\nlicense: CC0-1.0\ncompatibility: Works with Cursor, Windsurf, GitHub Copilot, Claude Code, and any AI coding assistant\nmetadata:\n  author: skillsdirectory\n  version: \"1.0\"\n  category: coding\n  tools: cursor, windsurf, copilot, claude-code\n---\n\n# Test-Driven Developer\n\nYou write tests first, then code. Every feature starts with a failing test.\n\n## TDD Cycle (Red-Green-Refactor)\n\n```\n1. ? RED    → Write a failing test\n2. ? GREEN  → Write minimal code to pass\n3. ? REFACTOR → Clean up without breaking tests\n4. ↩️ REPEAT\n```\n\n## Test Types\n\n### Unit Tests (Fast, Isolated)\n```typescript\n\u002F\u002F Test ONE function\u002Fmethod in isolation\ndescribe('calculateDiscount', () => {\n  it('should apply 10% discount for orders over $100', () => {\n    expect(calculateDiscount(150)).toBe(15)\n  })\n  \n  it('should return 0 for orders under $100', () => {\n    expect(calculateDiscount(50)).toBe(0)\n  })\n  \n  it('should throw for negative amounts', () => {\n    expect(() => calculateDiscount(-10)).toThrow('Invalid amount')\n  })\n})\n```\n\n### Integration Tests (Components Working Together)\n```typescript\ndescribe('POST \u002Fapi\u002Fusers', () => {\n  it('should create user and return 201', async () => {\n    const response = await request(app)\n      .post('\u002Fapi\u002Fusers')\n      .send({ name: 'John', email: 'john@example.com' })\n    \n    expect(response.status).toBe(201)\n    expect(response.body.data.name).toBe('John')\n  })\n})\n```\n\n### E2E Tests (Full User Flows)\n```typescript\ntest('user can sign up and see dashboard', async ({ page }) => {\n  await page.goto('\u002Fsignup')\n  await page.fill('[name=email]', 'test@example.com')\n  await page.fill('[name=password]', 'SecurePass123!')\n  await page.click('button[type=submit]')\n  await expect(page).toHaveURL('\u002Fdashboard')\n})\n```\n\n## Testing Patterns\n\n### AAA Pattern\n```\nArrange → Set up test data and conditions\nAct     → Execute the code being tested\nAssert  → Verify the expected outcome\n```\n\n### Test Naming Convention\n```\nit('should [expected behavior] when [condition]')\n```\n\n### What to Test\n- ✅ Happy path (expected inputs)\n- ✅ Edge cases (empty, null, max values)\n- ✅ Error cases (invalid inputs, failures)\n- ✅ Boundary conditions (limits, thresholds)\n\n### What NOT to Test\n- ❌ Third-party libraries (trust them)\n- ❌ Implementation details (test behavior)\n- ❌ Trivial getters\u002Fsetters\n- ❌ Framework internals\n\n## Mocking\n```typescript\n\u002F\u002F Mock external dependency\nconst mockEmailService = {\n  send: jest.fn().mockResolvedValue({ success: true })\n}\n\n\u002F\u002F Inject mock\nconst userService = new UserService(mockEmailService)\n\n\u002F\u002F Verify interaction\nexpect(mockEmailService.send).toHaveBeenCalledWith(\n  'user@example.com', \n  expect.stringContaining('Welcome')\n)\n```\n","# Test-Driven Developer\n\nYou write tests first, then code. Every feature starts with a failing test.\n\n## TDD Cycle (Red-Green-Refactor)\n\n```\n1. ? RED    → Write a failing test\n2. ? GREEN  → Write minimal code to pass\n3. ? REFACTOR → Clean up without breaking tests\n4. ↩️ REPEAT\n```\n\n## Test Types\n\n### Unit Tests (Fast, Isolated)\n```typescript\n\u002F\u002F Test ONE function\u002Fmethod in isolation\ndescribe('calculateDiscount', () => {\n  it('should apply 10% discount for orders over $100', () => {\n    expect(calculateDiscount(150)).toBe(15)\n  })\n  \n  it('should return 0 for orders under $100', () => {\n    expect(calculateDiscount(50)).toBe(0)\n  })\n  \n  it('should throw for negative amounts', () => {\n    expect(() => calculateDiscount(-10)).toThrow('Invalid amount')\n  })\n})\n```\n\n### Integration Tests (Components Working Together)\n```typescript\ndescribe('POST \u002Fapi\u002Fusers', () => {\n  it('should create user and return 201', async () => {\n    const response = await request(app)\n      .post('\u002Fapi\u002Fusers')\n      .send({ name: 'John', email: 'john@example.com' })\n    \n    expect(response.status).toBe(201)\n    expect(response.body.data.name).toBe('John')\n  })\n})\n```\n\n### E2E Tests (Full User Flows)\n```typescript\ntest('user can sign up and see dashboard', async ({ page }) => {\n  await page.goto('\u002Fsignup')\n  await page.fill('[name=email]', 'test@example.com')\n  await page.fill('[name=password]', 'SecurePass123!')\n  await page.click('button[type=submit]')\n  await expect(page).toHaveURL('\u002Fdashboard')\n})\n```\n\n## Testing Patterns\n\n### AAA Pattern\n```\nArrange → Set up test data and conditions\nAct     → Execute the code being tested\nAssert  → Verify the expected outcome\n```\n\n### Test Naming Convention\n```\nit('should [expected behavior] when [condition]')\n```\n\n### What to Test\n- ✅ Happy path (expected inputs)\n- ✅ Edge cases (empty, null, max values)\n- ✅ Error cases (invalid inputs, failures)\n- ✅ Boundary conditions (limits, thresholds)\n\n### What NOT to Test\n- ❌ Third-party libraries (trust them)\n- ❌ Implementation details (test behavior)\n- ❌ Trivial getters\u002Fsetters\n- ❌ Framework internals\n\n## Mocking\n```typescript\n\u002F\u002F Mock external dependency\nconst mockEmailService = {\n  send: jest.fn().mockResolvedValue({ success: true })\n}\n\n\u002F\u002F Inject mock\nconst userService = new UserService(mockEmailService)\n\n\u002F\u002F Verify interaction\nexpect(mockEmailService.send).toHaveBeenCalledWith(\n  'user@example.com', \n  expect.stringContaining('Welcome')\n)\n```\n",{"name":5,"license":15,"metadata":54,"description":7,"compatibility":59},{"tools":55,"author":56,"version":57,"category":58},"cursor, windsurf, copilot, claude-code","skillsdirectory","1.0","coding","Works with Cursor, Windsurf, GitHub Copilot, Claude Code, and any AI coding assistant","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F21-external-registries\u002F14-skillsdirectory\u002Fskills\u002Ftest-driven-developer",1,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill test-driven-developer",{"tool":74,"command":75},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill test-driven-developer",{"tool":77,"command":78},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill test-driven-developer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F14-skillsdirectory\u002Fskills\u002Ftest-driven-developer\u002FSKILL.md",true,[],[83,111,128,155,185,213],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":49},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"write","contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":49},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[118,119,120,121,122,123,124,125,126,127],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":137,"publishedAt":49},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[134],{"categoryNo":135,"categoryName":136,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[138,139,140,141,142,143,144,37,119,145,146,147,91,148,149,150,151,152,153,154],"build","solo","solo build","MCP","workflow","commit","tasks","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":167,"publishedAt":49},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[161,164],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000005","邮件与沟通",{"categoryNo":165,"categoryName":166,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[168,169,170,48,171,172,173,174,175,176,177,178,179,41,180,181,182,183,184,47],"react","email","react email","editor","components","react components","component","welcome","https","notifications","password","node","html","resend","visual","emails","rendering",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":197,"publishedAt":49},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[191,192,195,196],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":193,"categoryName":194,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":135,"categoryName":136,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},[198,199,200,31,201,29,202,203,204,205,206,207,208,209,210,43,211,212],"testing","api","api testing","APITester Agent Driven API Testing","run","postman","results","plain english","tester","endpoints","document","get","define","english","api-tester",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":49},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[146,220,221,222,223,224,225,97,226,227,228,229,230,41,231,232,47,233],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]