tdd

Guide feature implementation through the Red-Green-Refactor TDD cycle.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/phni3j9a/ccmobile --skill tdd-phni3j9a
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/phni3j9a/ccmobile/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/phni3j9a/ccmobile --skill tdd-phni3j9a

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers implement features using the Test-Driven Development (TDD) methodology, ensuring code quality and robustness from the start.

Core Features & Use Cases

  • Guided TDD Cycle: Follows the Red-Green-Refactor process.
  • Test Case Design: Assists in defining comprehensive test scenarios.
  • Implementation Guidance: Provides steps for writing failing tests, minimal passing code, and refactoring.
  • Use Case: When developing a new user authentication module, use this Skill to guide the creation of tests for login, logout, and password reset functionalities before writing the core implementation code.

Quick Start

Use the tdd skill to implement the user registration feature.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start implementing features with test-driven development in Python?

Test-driven development in Python starts by designing test cases, writing a failing test with pytest, implementing minimal passing code, and then refactoring while verifying execution and coverage.

What is the Red-Green-Refactor cycle and how does it improve code quality?

The Red-Green-Refactor cycle is a test-driven development process where you write a failing test, implement minimal code to pass it, and then refactor. This improves code quality by ensuring robustness from the start.

Does this TDD workflow require pytest to run tests?

Yes, pytest is required as the core dependency to verify test execution and check coverage during the Red-Green-Refactor cycle of the test-driven development workflow.

Can I use test-driven development for building a user authentication module?

Yes, test-driven development can be used for a user authentication module by guiding the creation of tests for login, logout, and password reset functionalities before writing the core implementation code.

What's the best way to design test scenarios before writing implementation code?

The best way to design test scenarios is to follow the guided test case design steps, which assist in defining comprehensive test scenarios before you write the minimal passing implementation code.

When should I not use test-driven development for refactoring?

You should not use test-driven development for refactoring when a feature lacks clear test scenarios or when pytest cannot be configured, as the methodology strictly relies on test execution and coverage verification.