# grey-haven-tdd-python > 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'. - Author: Jay Scambler - Repository: greyhaven-ai/claude-code-config - Version: 20260110002840 - Stars: 18 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/greyhaven-ai/claude-code-config - Web: https://mule.run/skillshub/@@greyhaven-ai/claude-code-config~grey-haven-tdd-python:20260110002840 --- --- name: grey-haven-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: - grey-haven-code-style - grey-haven-api-design-standards - grey-haven-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