tdd

Guide software component implementation through the Red-Green-Refactor cycle.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/charly-vibes/wai --skill tdd-charly-vibes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/charly-vibes/wai/tree/main/.agents/skills/tdd
Command: npx skills add https://github.com/charly-vibes/wai --skill tdd-charly-vibes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines software development by enforcing the Test-Driven Development (TDD) methodology, ensuring code quality and maintainability through a rigorous Red-Green-Refactor cycle.

Core Features & Use Cases

  • Guided TDD Workflow: Follows the Red-Green-Refactor cycle for each implementation step.
  • Phased Development: Supports breaking down complex features into manageable phases with clear verification points.
  • Automated & Manual Verification: Integrates checks for tests, type safety, linting, and specific manual validation.
  • Use Case: Implement a new user authentication module by first writing tests for token validation, then minimal code to pass, and finally refactoring, ensuring robust and well-tested code from the start.

Quick Start

Implement the user authentication feature by following the Test-Driven Development process.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement the Red-Green-Refactor cycle for new software features?

The Red-Green-Refactor cycle guides you to write failing tests first, implement minimal code to pass them, and then refactor. This iterative testing workflow ensures code quality and adherence to design specifications throughout development.

What is test-driven development and when should I use it for my coding workflow?

Test-driven development is a methodology where you write tests before code. Use it to maintain code quality and manageability during agile development, especially when building complex components that require rigorous verification and iterative refactoring.

How do I break down complex features into manageable development phases with TDD?

Phased development in TDD breaks complex features into manageable steps with clear verification points. You implement each phase by following the Red-Green-Refactor cycle, running automated and manual checks before moving forward.

Does test-driven development integrate automated checks for type safety and linting?

Yes, test-driven development integrates automated verification for tests, type safety, and linting. These checks run during the development workflow to ensure code quality and validate that the implementation meets the required design specifications.

Can I use TDD to implement a user authentication module with token validation?

Yes, you can implement a user authentication module using TDD by first writing tests for token validation, then writing minimal code to pass, and finally refactoring. This ensures robust and well-tested code from the start.

What is the best way to ensure code quality during agile refactoring?

The best way to ensure code quality during agile refactoring is to follow the Test-Driven Development methodology. By enforcing a rigorous Red-Green-Refactor cycle, you maintain code maintainability and verify functionality through iterative testing.