tdd

Enforce a Red-Green-Refactor cycle before production code changes.

6|3|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/alo-exp/silver-bullet --skill tdd-alo-exp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/alo-exp/silver-bullet/tree/main/forge/skills/tdd
Command: npx skills add https://github.com/alo-exp/silver-bullet --skill tdd-alo-exp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Iron Law of TDD: prevent production code without failing tests first, ensuring changes are validated by tests and drive design.

Core Features & Use Cases

  • Enforces a Red-Green-Refactor workflow across development tasks.
  • Integrates with commit and CI processes to ensure tests exist before changes are merged.
  • Use cases include adding new features with test-first approach, refactoring with confidence, and ensuring regression protection.

Quick Start

Write a failing test for the desired behavior, then implement the minimal code to pass it, and finally refactor for readability.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce a red-green-refactor cycle for unit testing?

You can automate test-driven development by enforcing a workflow that requires writing a failing test first, then implementing minimal code to pass it, and finally refactoring for readability while keeping tests green.

What is the best way to prevent production code without failing tests first?

The best way to prevent production code without failing tests first is to apply the Iron Law of TDD, which validates changes by ensuring tests exist, pass, and remain green through every commit cycle.

How do I start test-driven development for adding new features?

To start test-driven development for new features, write a failing test for the desired behavior, implement the minimal code required to pass that test, and then refactor the code for readability and design.

Does this test-driven development approach work across different programming languages?

Yes, this test-driven development approach applies to software engineering tasks across languages and repositories, guiding developers to write failing tests first and iteratively implement minimal code regardless of the specific environment.

How does automated TDD integrate with CI processes to ensure regression protection?

Automated TDD integrates with commit and CI processes to ensure tests exist before changes are merged, satisfying requirements for code quality, safe refactoring, and regression protection by verifying all tests remain green.