tdd

Guide the Red-Green-Refactor cycle with FIRST principles for TDD.

70|13|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill tdd-asiaostrich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/AsiaOstrich/universal-dev-standards/tree/main/.gemini/skills/tdd-assistant
Command: npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill tdd-asiaostrich

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill guides developers through the Test-Driven Development (TDD) cycle, ensuring code quality, maintainability, and adherence to best practices by enforcing the Red-Green-Refactor methodology.

Core Features & Use Cases

  • TDD Cycle Guidance: Provides step-by-step instructions for the Red, Green, and Refactor phases.
  • FIRST Principles: Reinforces the core principles of effective testing (Fast, Independent, Repeatable, Self-validating, Timely).
  • Use Case: A developer starting a new feature can use this Skill to ensure they write tests first, make them pass with minimal code, and then refactor safely, leading to more robust and well-tested code.

Quick Start

Initiate an interactive TDD session to guide through the Red-Green-Refactor cycle for a new feature.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start the Test-Driven Development cycle for a new feature?

Start Test-Driven Development by writing a failing unit test for the new feature, then implement minimal code to make it pass, and finally refactor safely while maintaining test coverage.

What are the FIRST principles for effective unit testing?

The FIRST principles for effective unit testing require tests to be Fast, Independent, Repeatable, Self-validating, and Timely, ensuring reliable validation throughout the development workflow.

How does the Red-Green-Refactor methodology improve code quality?

The Red-Green-Refactor methodology improves code quality by enforcing a cycle of writing failing tests, creating minimal passing implementations, and safely refactoring to ensure robust, maintainable code.

Can I integrate BDD and ATDD practices into the TDD workflow?

Yes, the TDD workflow supports BDD and ATDD integration, allowing developers to align behavior-driven and acceptance test-driven development practices with standard unit testing procedures.

Does this TDD guidance work with different programming languages and testing frameworks?

Yes, this TDD guidance supports various programming languages and testing frameworks, offering detailed explanations and examples adaptable to your specific unit and integration testing environments.

When should I use Test-Driven Development instead of writing tests after implementation?

Use Test-Driven Development when starting new features to ensure tests are written first, leading to more robust code design, better maintainability, and strict adherence to testing best practices.