[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M714RXH8CFFC85QX4943VG3F":3,"skill-same:01M714RXH8CFFC85QX4943VG3F":62},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M714RXH8CFFC85QX4943VG3F","tdd-workflows-tdd-red",null,"Generate failing tests for the TDD red phase to define expected behavior and edge cases.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Ftdd-workflows-tdd-red\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"workflows","tdd","tdd workflows tdd red","red","tdd workflows","2026","failing","phase","unknown","expected","for","tests","define","community","behavior","edge","generate","2026-11-10 10:12:30",false,"---\nname: tdd-workflows-tdd-red\ndescription: \"Generate failing tests for the TDD red phase to define expected behavior and edge cases.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\nWrite comprehensive failing tests following TDD red phase principles.\n\n[Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]\n\n## Use this skill when\n\n- Starting the TDD red phase for new behavior\n- You need failing tests that capture expected behavior\n- You want edge case coverage before implementation\n\n## Do not use this skill when\n\n- You are in the green or refactor phase\n- You only need performance benchmarks\n- Tests must run against production systems\n\n## Instructions\n\n1. Identify behaviors, constraints, and edge cases.\n2. Generate failing tests that define expected outcomes.\n3. Ensure failures are due to missing behavior, not setup errors.\n4. Document how to run tests and verify failures.\n\n## Safety\n\n- Keep test data isolated and avoid production environments.\n- Avoid flaky external dependencies in the red phase.\n\n## Role\n\nGenerate failing tests using Task tool with subagent_type=\"unit-testing::test-automator\".\n\n## Prompt Template\n\n\"Generate comprehensive FAILING tests for: $ARGUMENTS\n\n## Core Requirements\n\n1. **Test Structure**\n   - Framework-appropriate setup (Jest\u002Fpytest\u002FJUnit\u002FGo\u002FRSpec)\n   - Arrange-Act-Assert pattern\n   - should_X_when_Y naming convention\n   - Isolated fixtures with no interdependencies\n\n2. **Behavior Coverage**\n   - Happy path scenarios\n   - Edge cases (empty, null, boundary values)\n   - Error handling and exceptions\n   - Concurrent access (if applicable)\n\n3. **Failure Verification**\n   - Tests MUST fail when run\n   - Failures for RIGHT reasons (not syntax\u002Fimport errors)\n   - Meaningful diagnostic error messages\n   - No cascading failures\n\n4. **Test Categories**\n   - Unit: Isolated component behavior\n   - Integration: Component interaction\n   - Contract: API\u002Finterface contracts\n   - Property: Mathematical invariants\n\n## Framework Patterns\n\n**JavaScript\u002FTypeScript (Jest\u002FVitest)**\n- Mock dependencies with `vi.fn()` or `jest.fn()`\n- Use `@testing-library` for React components\n- Property tests with `fast-check`\n\n**Python (pytest)**\n- Fixtures with appropriate scopes\n- Parametrize for multiple test cases\n- Hypothesis for property-based tests\n\n**Go**\n- Table-driven tests with subtests\n- `t.Parallel()` for parallel execution\n- Use `testify\u002Fassert` for cleaner assertions\n\n**Ruby (RSpec)**\n- `let` for lazy loading, `let!` for eager\n- Contexts for different scenarios\n- Shared examples for common behavior\n\n## Quality Checklist\n\n- Readable test names documenting intent\n- One behavior per test\n- No implementation leakage\n- Meaningful test data (not 'foo'\u002F'bar')\n- Tests serve as living documentation\n\n## Anti-Patterns to Avoid\n\n- Tests passing immediately\n- Testing implementation vs behavior\n- Complex setup code\n- Multiple responsibilities per test\n- Brittle tests tied to specifics\n\n## Edge Case Categories\n\n- **Null\u002FEmpty**: undefined, null, empty string\u002Farray\u002Fobject\n- **Boundaries**: min\u002Fmax values, single element, capacity limits\n- **Special Cases**: Unicode, whitespace, special characters\n- **State**: Invalid transitions, concurrent modifications\n- **Errors**: Network failures, timeouts, permissions\n\n## Output Requirements\n\n- Complete test files with imports\n- Documentation of test purpose\n- Commands to run and verify failures\n- Metrics: test count, coverage areas\n- Next steps for green phase\"\n\n## Validation\n\nAfter generation:\n1. Run tests - confirm they fail\n2. Verify helpful failure messages\n3. Check test independence\n4. Ensure comprehensive coverage\n\n## Example (Minimal)\n\n```typescript\n\u002F\u002F auth.service.test.ts\ndescribe('AuthService', () => {\n  let authService: AuthService;\n  let mockUserRepo: jest.Mocked\u003CUserRepository>;\n\n  beforeEach(() => {\n    mockUserRepo = { findByEmail: jest.fn() } as any;\n    authService = new AuthService(mockUserRepo);\n  });\n\n  it('should_return_token_when_valid_credentials', async () => {\n    const user = { id: '1', email: 'test@example.com', passwordHash: 'hashed' };\n    mockUserRepo.findByEmail.mockResolvedValue(user);\n\n    const result = await authService.authenticate('test@example.com', 'pass');\n\n    expect(result.success).toBe(true);\n    expect(result.token).toBeDefined();\n  });\n\n  it('should_fail_when_user_not_found', async () => {\n    mockUserRepo.findByEmail.mockResolvedValue(null);\n\n    const result = await authService.authenticate('none@example.com', 'pass');\n\n    expect(result.success).toBe(false);\n    expect(result.error).toBe('INVALID_CREDENTIALS');\n  });\n});\n```\n\nTest requirements: $ARGUMENTS\n","Write comprehensive failing tests following TDD red phase principles.\n\n[Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]\n\n## Use this skill when\n\n- Starting the TDD red phase for new behavior\n- You need failing tests that capture expected behavior\n- You want edge case coverage before implementation\n\n## Do not use this skill when\n\n- You are in the green or refactor phase\n- You only need performance benchmarks\n- Tests must run against production systems\n\n## Instructions\n\n1. Identify behaviors, constraints, and edge cases.\n2. Generate failing tests that define expected outcomes.\n3. Ensure failures are due to missing behavior, not setup errors.\n4. Document how to run tests and verify failures.\n\n## Safety\n\n- Keep test data isolated and avoid production environments.\n- Avoid flaky external dependencies in the red phase.\n\n## Role\n\nGenerate failing tests using Task tool with subagent_type=\"unit-testing::test-automator\".\n\n## Prompt Template\n\n\"Generate comprehensive FAILING tests for: $ARGUMENTS\n\n## Core Requirements\n\n1. **Test Structure**\n   - Framework-appropriate setup (Jest\u002Fpytest\u002FJUnit\u002FGo\u002FRSpec)\n   - Arrange-Act-Assert pattern\n   - should_X_when_Y naming convention\n   - Isolated fixtures with no interdependencies\n\n2. **Behavior Coverage**\n   - Happy path scenarios\n   - Edge cases (empty, null, boundary values)\n   - Error handling and exceptions\n   - Concurrent access (if applicable)\n\n3. **Failure Verification**\n   - Tests MUST fail when run\n   - Failures for RIGHT reasons (not syntax\u002Fimport errors)\n   - Meaningful diagnostic error messages\n   - No cascading failures\n\n4. **Test Categories**\n   - Unit: Isolated component behavior\n   - Integration: Component interaction\n   - Contract: API\u002Finterface contracts\n   - Property: Mathematical invariants\n\n## Framework Patterns\n\n**JavaScript\u002FTypeScript (Jest\u002FVitest)**\n- Mock dependencies with `vi.fn()` or `jest.fn()`\n- Use `@testing-library` for React components\n- Property tests with `fast-check`\n\n**Python (pytest)**\n- Fixtures with appropriate scopes\n- Parametrize for multiple test cases\n- Hypothesis for property-based tests\n\n**Go**\n- Table-driven tests with subtests\n- `t.Parallel()` for parallel execution\n- Use `testify\u002Fassert` for cleaner assertions\n\n**Ruby (RSpec)**\n- `let` for lazy loading, `let!` for eager\n- Contexts for different scenarios\n- Shared examples for common behavior\n\n## Quality Checklist\n\n- Readable test names documenting intent\n- One behavior per test\n- No implementation leakage\n- Meaningful test data (not 'foo'\u002F'bar')\n- Tests serve as living documentation\n\n## Anti-Patterns to Avoid\n\n- Tests passing immediately\n- Testing implementation vs behavior\n- Complex setup code\n- Multiple responsibilities per test\n- Brittle tests tied to specifics\n\n## Edge Case Categories\n\n- **Null\u002FEmpty**: undefined, null, empty string\u002Farray\u002Fobject\n- **Boundaries**: min\u002Fmax values, single element, capacity limits\n- **Special Cases**: Unicode, whitespace, special characters\n- **State**: Invalid transitions, concurrent modifications\n- **Errors**: Network failures, timeouts, permissions\n\n## Output Requirements\n\n- Complete test files with imports\n- Documentation of test purpose\n- Commands to run and verify failures\n- Metrics: test count, coverage areas\n- Next steps for green phase\"\n\n## Validation\n\nAfter generation:\n1. Run tests - confirm they fail\n2. Verify helpful failure messages\n3. Check test independence\n4. Ensure comprehensive coverage\n\n## Example (Minimal)\n\n```typescript\n\u002F\u002F auth.service.test.ts\ndescribe('AuthService', () => {\n  let authService: AuthService;\n  let mockUserRepo: jest.Mocked\u003CUserRepository>;\n\n  beforeEach(() => {\n    mockUserRepo = { findByEmail: jest.fn() } as any;\n    authService = new AuthService(mockUserRepo);\n  });\n\n  it('should_return_token_when_valid_credentials', async () => {\n    const user = { id: '1', email: 'test@example.com', passwordHash: 'hashed' };\n    mockUserRepo.findByEmail.mockResolvedValue(user);\n\n    const result = await authService.authenticate('test@example.com', 'pass');\n\n    expect(result.success).toBe(true);\n    expect(result.token).toBeDefined();\n  });\n\n  it('should_fail_when_user_not_found', async () => {\n    mockUserRepo.findByEmail.mockResolvedValue(null);\n\n    const result = await authService.authenticate('none@example.com', 'pass');\n\n    expect(result.success).toBe(false);\n    expect(result.error).toBe('INVALID_CREDENTIALS');\n  });\n});\n```\n\nTest requirements: $ARGUMENTS\n",{"name":5,"risk":27,"source":32,"date_added":41,"description":7},"2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcopilot\u002Ftdd-workflows-tdd-red","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill tdd-workflows-tdd-red",{"tool":54,"command":55},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill tdd-workflows-tdd-red",{"tool":57,"command":58},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill tdd-workflows-tdd-red","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Ftdd-workflows-tdd-red\u002FSKILL.md",true,[],[63,73,80,88,94,102],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":72},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":72},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":72},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":89,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":72},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":72},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":72},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]