tdd

Guide test-driven development with the red→green→refactor cycle and anti-patterns.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-extensions --skill tdd-nq-rdl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/nq-rdl/agent-extensions/tree/main/skills/tdd
Command: npx skills add https://github.com/nq-rdl/agent-extensions --skill tdd-nq-rdl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Test-driven development concepts, cycle, and anti-patterns. Load when writing or reviewing tests, adding mocks, implementing new behaviour, or when an agent needs TDD guidance. Not for orchestrating TDD phases — use tdd-team-workflow for that.

Core Features & Use Cases

  • Understand and apply the red→green→refactor cycle to improve code quality with fast feedback.
  • Identify and avoid common anti-patterns that undermine test quality and reliability.
  • Learn best practices for test quality, including fast, isolated, repeatable, and self-validating tests.
  • Use the included reference materials to support onboarding and ongoing learning for test-driven development.
  • Apply TDD guidance during code reviews and when designing tests to ensure robust software.

Quick Start

Start by exploring the anti-patterns and the TDD cycle, then apply red→green→refactor to a small feature.

Frequently Asked Questions about 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 anti-patterns are flawed testing practices that undermine test reliability. Common examples include excessive mocking and tightly coupled tests. Identifying these anti-patterns during code reviews ensures robust software and maintainable test suites.

How do I write high-quality tests that are fast and repeatable?

High-quality tests must be fast, isolated, repeatable, and self-validating. Applying test-driven development principles ensures these qualities by guiding test design through the red-green-refactor cycle and avoiding common anti-patterns during implementation.

When should I apply test-driven development during software engineering?

Apply test-driven development when writing or reviewing tests, adding mocks, or implementing new behavior in software projects. It provides structured guidance for designing robust tests and validating code quality during the development process.

What are common testing anti-patterns and how do I avoid them?

Testing anti-patterns are flawed practices that undermine test reliability and quality. The Skill identifies five common anti-patterns and provides reference materials to help developers avoid them during test design and code reviews.

Does this provide guidance for orchestrating TDD phases across a team?

No, this does not provide guidance for orchestrating TDD phases across a team. It focuses on individual application of the red-green-refactor cycle and identifying anti-patterns. Team orchestration requires a dedicated TDD team workflow tool.