$npx -y skills add puppyfront-web/work-by-roles --skill test_driven_developmentDesigns tests in {{project.paths.tests}} before implementation
| 1 | # Test Driven Development |
| 2 | |
| 3 | ## 概述 |
| 4 | |
| 5 | Designs tests in {{project.paths.tests}} before implementation |
| 6 | |
| 7 | ## 能力维度 |
| 8 | |
| 9 | ### Unit Tests |
| 10 | |
| 11 | <!-- Add dimension-specific guidance here --> |
| 12 | |
| 13 | ### Integration Tests |
| 14 | |
| 15 | <!-- Add dimension-specific guidance here --> |
| 16 | |
| 17 | ### Coverage Goals |
| 18 | |
| 19 | <!-- Add dimension-specific guidance here --> |
| 20 | |
| 21 | ## 工具支持 |
| 22 | |
| 23 | - **{{project.standards.pytest or 'pytest'}}**: <!-- Add tool description --> |
| 24 | - **coverage**: <!-- Add tool description --> |
| 25 | |
| 26 | ## 约束条件 |
| 27 | |
| 28 | - must_block_on_test_failure |
| 29 | |
| 30 | ## 能力等级 |
| 31 | |
| 32 | ### Level 1 |
| 33 | |
| 34 | Writes unit tests for core logic |
| 35 | |
| 36 | ### Level 2 |
| 37 | |
| 38 | Covers edge cases and negative paths |
| 39 | |
| 40 | ### Level 3 |
| 41 | |
| 42 | Designs executable specifications and fixtures |