common-tdd

Guide multi-language unit testing with TDD Red-Green-Refactor cycles.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/wildbitca/ai-resources --skill common-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: common-tdd
Source: https://github.com/wildbitca/ai-resources/tree/main/skills/common-tdd
Command: npx skills add https://github.com/wildbitca/ai-resources --skill common-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enforces Test-Driven Development (Red-Green-Refactor). Use when writing unit tests, implementing TDD, or improving test coverage for any feature. (triggers: **/.test.ts, **/.spec.ts, **/_test.go, **/Test.java, **/_test.dart, **/_spec.rb, tdd, unit test, write test, red green refactor, failing test, test coverage)

Core Features & Use Cases

  • Enforces AAA structure in tests, ensuring organized test suites.
  • Guides Red-Green-Refactor cycles to validate code progressively.
  • Provides best-practices references to improve testing discipline.

Quick Start

Begin by writing a failing test to drive your next implementation.

Frequently Asked Questions about common-tdd

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

FAQPage Schema
What is the Red-Green-Refactor cycle in test-driven development?

Test-driven development uses the Red-Green-Refactor cycle to validate code progressively by writing a failing test, implementing passing code, and refactoring. This enforces AAA structure and improves reliability.

How do I structure unit tests using the AAA pattern?

Structure unit tests using the AAA pattern by organizing suites into Arrange, Act, and Assert sections. This enforces clear test structure and progressive validation during the Red-Green-Refactor cycle.

Does test-driven development work with Go and Kotlin unit testing workflows?

Test-driven development works with Go and Kotlin unit testing workflows. It applies to multi-language testing, recognizing file patterns like `_test.go` and `Test.java` to guide Red-Green-Refactor cycles across environments.

How do I start writing a failing test to drive my next implementation?

Start writing a failing test by defining expected behavior before implementation exists. This drives the Red-Green-Refactor cycle, ensuring your next feature is built around test coverage and progressive validation.

When should I not use test-driven development for improving test coverage?

Avoid test-driven development when rapid prototyping requires exploring unknown architectures before defining assertions. TDD enforces strict AAA structure and progressive validation, which can slow down immediate experimental code generation.