test-driven-development

Enforce the red-green-refactor TDD cycle for all code changes.

3|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/DarkArty07/Aether-Agents --skill test-driven-development-darkarty07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/DarkArty07/Aether-Agents/tree/main/home/skills/software-development/test-driven-development
Command: npx skills add https://github.com/DarkArty07/Aether-Agents --skill test-driven-development-darkarty07

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of shipping untested, buggy production code by enforcing the test-driven development (TDD) red-green-refactor workflow, ensuring every piece of production code is validated by a failing test written before implementation.

Core Features & Use Cases

  • Mandatory TDD Cycle Enforcement: Requires all new features, bug fixes, and refactors to follow the RED (write failing test), GREEN (write minimal passing code), REFACTOR (clean up code) cycle with no exceptions unless explicitly approved by the user.
  • Anti-Pattern Guardrails: Provides clear red flags and rationalization rebuttals to prevent common TDD violations like writing tests after code, skipping tests for "simple" changes, or keeping unverified code as reference.
  • Use Case: When implementing a new retry operation for API calls, the Skill guides you to first write a failing test that validates the operation retries 3 times on failure, then implement the minimal code to pass the test, then refactor for readability, ensuring the feature works correctly and no regressions are introduced.

Quick Start

Use the test-driven-development skill to implement the new user login feature by first writing a failing test for successful credential validation, then writing minimal code to pass the test, and finally refactoring the code for clarity and maintainability.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor cycle work?

Test-driven development is a workflow requiring all production code to be preceded by a failing test. The red-green-refactor cycle means writing a failing test, creating minimal code to pass it, then cleaning up the implementation without changing behavior.

How do I implement a new feature using test-driven development?

To implement a feature using test-driven development, first write a failing test that validates the expected behavior, then write the minimal production code required to make that test pass, and finally refactor the code for readability and maintainability.

Can I use test-driven development for bug fixes and refactoring existing code?

Yes, test-driven development applies to bug fixes and refactoring across any codebase. You must write a failing test reproducing the bug or validating the new behavior before changing production code to ensure regression prevention.

What are common test-driven development anti-patterns and how do I avoid them?

Common test-driven development anti-patterns include writing tests after implementation, skipping tests for simple changes, or keeping unverified code as reference. The workflow provides guardrails and rebuttals to prevent these violations and ensure systematic test coverage.

Do I need an automated testing framework to enforce test-first coding?

Yes, an automated testing framework is required to enforce test-first coding. The workflow validates expected behavior by running failing tests before implementation and verifying passing tests after writing minimal production code.

When should I not use test-driven development for software changes?

Test-driven development should not be skipped for simple changes or rapid prototyping unless explicitly approved. The workflow mandates tests for all new features, bug fixes, and behavior changes to prevent shipping untested production code.