# Test Driven Workflow

> RED GREEN REFACTOR cycle with pytest and coverage

- Skill: `loopyluci/test-driven-workflow` (Agent Skill)
- Install (CLI): `npx skillmds@latest add loopyluci/test-driven-workflow`
- Raw SKILL.md: https://api.skillmd.com/api/skills/loopyluci/test-driven-workflow/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: LoopyLuci (https://skillmd.com/u/loopyluci)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/loopyluci/test-driven-workflow

---


# TDD Workflow

## Cycle
1. RED: Write failing test first
2. GREEN: Write minimal code to pass
3. REFACTOR: Clean up while keeping tests green

```bash
# Run tests in watch mode
pytest-watch
# Run with coverage
pytest --cov=src --cov-report=term-missing
```

