test-driven-development

Enforce test-first discipline from failing tests to passing code.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill test-driven-development-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/test-driven-development
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill test-driven-development-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development helps teams ensure code behaves as intended by writing tests before implementation, reducing regressions and guiding design choices.

Core Features & Use Cases

  • Establishes a repeatable RED-GREEN-REFACTOR cycle for feature work and bug fixes.
  • Encourages safer refactoring by validating behavior with tests before and after changes.
  • Supports teams adopting TDD across new features, maintenance, and architectural changes.

Quick Start

Begin by writing a failing test for the feature, then implement the minimal code to pass, and iterate the RED-GREEN-REFACTOR cycle until all tests pass.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I start writing unit tests before implementation using the red-green-refactor cycle?

To start test-driven development, write a failing unit test for the new feature, implement the minimal code required to make it pass, and then refactor the code while keeping the test green. Repeat this cycle until the feature is complete.

What is test-driven development and when do I need it for software engineering?

Test-driven development is a software engineering practice where you define real, runnable tests before writing production code. You need it to reduce regressions, validate expected failures, and guide design choices across new features, bug fixes, and refactors.

Can I use test-first discipline for bug fixes and refactoring existing code?

Yes, you can apply test-first discipline to bug fixes and refactoring. By validating behavior with tests before and after changes, you ensure safer refactoring and confirm that the minimal, well-factored code produced continues to pass all tests.

What's the best way to guide feature work from failing tests to passing code?

The best way to guide feature work is to establish a repeatable red-green-refactor cycle. Define a failing test, validate the failure, write minimal production code to pass the test, and iterate until all tests pass, ensuring well-factored code.

Does test-driven development work for architectural changes and maintenance?

Test-driven development supports teams adopting it across architectural changes and maintenance by enforcing test-first discipline. It validates behavior before and after modifications, ensuring minimal code changes that pass tests and reduce regressions during structural updates.