tdd

A command-line tool to batch-rename your photos and/or videos.

4|2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/All-The-Vibes/skills-catalog --skill tdd-all-the-vibes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/All-The-Vibes/skills-catalog/tree/main/.claude/skills/engineering/tdd
Command: npx skills add https://github.com/All-The-Vibes/skills-catalog --skill tdd-all-the-vibes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-Driven Development (TDD) helps teams deliver reliable software by requiring tests before code, reducing bugs, and enabling safer refactoring as projects evolve.

Core Features & Use Cases

  • Structured TDD Cycle: Follow the Red-Green-Refactor loop to drive development with automated checks.
  • Test Organization & Quality: Promote Arrange-Act-Assert patterns and meaningful test names to improve readability and maintainability.
  • Practical Scenarios: Use TDD for new features, bug fixes, and refactoring efforts in Python projects using common testing tooling (e.g., pytest).

Quick Start

Start by writing a failing test for a small feature, then implement the minimal code to pass the test, and finally refactor while keeping tests green. For example, add a test that asserts a simple function returns expected output, run the test to see it fail, implement the function to pass the test, and repeat for the next behavior.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start test-driven development in Python using pytest?

Start test-driven development by writing a failing pytest test for a small feature, implementing the minimal code to pass, and refactoring while keeping tests green. Repeat this Red-Green-Refactor cycle for each behavior.

What is the Arrange-Act-Assert pattern in TDD?

The Arrange-Act-Assert pattern structures tests into setup, execution, and verification phases, improving readability and maintainability during the Red-Green-Refactor TDD cycle.

Can I use TDD for refactoring existing Python code?

Yes, TDD supports refactoring Python projects by running iterative red-green-refactor cycles to ensure existing tests stay green while you improve code structure.

Does test-driven development work for bug fixes in Python?

Test-driven development applies to bug fixes by writing a failing pytest that reproduces the bug, implementing the fix to pass the test, and refactoring safely.

What's the best way to organize pytest test names for maintainability?

Promote meaningful test names that describe expected behavior to improve readability and maintainability across Python projects using pytest and iterative test-driven development.

Why does the Red-Green-Refactor cycle require writing tests before code?

The Red-Green-Refactor cycle requires tests before code to drive development with automated checks, reduce bugs, and enable safer refactoring as Python projects evolve.