AgentSkillsCN

tdd-python

具备 pytest、严格的红绿重构方法、FastAPI 测试模式以及 Pydantic 模型测试方面的 Python 测试驱动开发专长。适用于采用 TDD 实现 Python 功能、编写 pytest 测试、测试 FastAPI 端点、以测试优先方式开发,或当用户提到“Python TDD”、“pytest”、“FastAPI 测试”、“红绿重构”、“Python 单元测试”、“测试驱动的 Python”或“Python 测试覆盖率”时。

SKILL.md
--- frontmatter
name: tdd-python
description: "Python Test-Driven Development expertise with pytest, strict red-green-refactor methodology, FastAPI testing patterns, and Pydantic model testing. Use when implementing Python features with TDD, writing pytest tests, testing FastAPI endpoints, developing with test-first approach, or when user mentions 'Python TDD', 'pytest', 'FastAPI testing', 'red-green-refactor', 'Python unit tests', 'test-driven Python', or 'Python test coverage'."
# v2.0.43: Skills to auto-load for subagents spawned from this skill
skills:
  - code-style
  - api-design-standards
  - test-generation
# v2.0.74: Restrict tools available when this skill is active
allowed-tools:
  - Read
  - Write
  - MultiEdit
  - Bash
  - Grep
  - Glob
  - TodoWrite

TDD Python Skill

Python Test-Driven Development following strict red-green-refactor cycle with pytest and comprehensive coverage.

Description

Systematic Python implementation using TDD methodology, ensuring tests written first and driving design decisions.

What's Included

  • Examples: Python TDD cycles, FastAPI TDD, Pydantic model TDD
  • Reference: pytest patterns, Python testing best practices
  • Templates: pytest templates, TDD workflows

Use When

  • Implementing Python features with TDD
  • FastAPI development
  • Pydantic model development

Related Agents

  • tdd-python-implementer

Skill Version: 1.0