$npx -y skills add puppyfront-web/work-by-roles --skill python_engineeringBuild production-grade Python in {{project.paths.src}} with typing and
| 1 | # Python Engineering |
| 2 | |
| 3 | ## 概述 |
| 4 | |
| 5 | Build production-grade Python in {{project.paths.src}} with typing and testing |
| 6 | |
| 7 | ## 能力维度 |
| 8 | |
| 9 | ### Typing |
| 10 | |
| 11 | <!-- Add dimension-specific guidance here --> |
| 12 | |
| 13 | ### Testing |
| 14 | |
| 15 | <!-- Add dimension-specific guidance here --> |
| 16 | |
| 17 | ### Error Handling |
| 18 | |
| 19 | <!-- Add dimension-specific guidance here --> |
| 20 | |
| 21 | ## 工具支持 |
| 22 | |
| 23 | - **{{project.standards.ruff or 'ruff'}}**: <!-- Add tool description --> |
| 24 | - **{{project.standards.mypy or 'mypy'}}**: <!-- Add tool description --> |
| 25 | - **{{project.standards.pytest or 'pytest'}}**: <!-- Add tool description --> |
| 26 | |
| 27 | ## 约束条件 |
| 28 | |
| 29 | - must_use_type_hints |
| 30 | - must_cover_tests in {{project.paths.tests}} |
| 31 | |
| 32 | ## 能力等级 |
| 33 | |
| 34 | ### Level 1 |
| 35 | |
| 36 | Writes typed functions and basic tests |
| 37 | |
| 38 | ### Level 2 |
| 39 | |
| 40 | Designs modules with dataclasses and robust errors |
| 41 | |
| 42 | ### Level 3 |
| 43 | |
| 44 | Delivers frameworks with strong contracts and tooling |