ferrox-test-driven-development

Enforce test-first development with failing tests before production code.

21|9|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/FerroxLabs/ferrox-factory --skill ferrox-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ferrox-test-driven-development
Source: https://github.com/FerroxLabs/ferrox-factory/tree/main/skills-vendored/ferrox-test-driven-development
Command: npx skills add https://github.com/FerroxLabs/ferrox-factory --skill ferrox-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents unverified implementation work by forcing a test-first workflow, reducing regressions and making behavior explicit before code is written.

Core Features & Use Cases

  • Red-Green-Refactor Guidance: Teaches the full TDD cycle from failing test to minimal code to cleanup.
  • Bug Fix Verification: Ensures every bug fix is captured in a failing regression test before the fix is applied.
  • Testing Discipline: Helps developers avoid common mistakes such as testing mock behavior, adding test-only production methods, or mocking without understanding dependencies.

Quick Start

Use this skill to turn your next feature or bug fix into a failing test first, then implement the smallest change needed to make it pass.

Frequently Asked Questions about ferrox-test-driven-development

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

FAQPage Schema
How do I enforce test-driven development for new features and bug fixes?

You can enforce test-driven development by adopting a strict red-green-refactor workflow that requires writing a failing test before any production code. This ensures minimal implementation and reduces regressions by making behavior explicit upfront.

What is the best way to capture regression tests for software bug fixes?

The best way to capture regression tests for bug fixes is to write a failing test that reproduces the bug before applying the fix. This testing discipline verifies the exact behavior and ensures the regression is permanently protected against.

Can I use mock behavior testing while following a strict TDD workflow?

No, you should avoid testing mock behavior in a strict TDD workflow. This approach requires real-behavior testing and strict avoidance of mocking without understanding dependencies, ensuring you validate actual system interactions rather than test-only production methods.

How does the red-green-refactor cycle work in unit testing?

The red-green-refactor cycle in unit testing works by first writing a failing test, then implementing the smallest code change to make it pass, and finally cleaning up the code. This discipline ensures reliable verification of behavior and safer code shipping.

When should I not use test-first development for software refactoring?

You should reconsider test-first development for refactoring if your workflow cannot support minimal implementation steps or real-behavior testing. The approach strictly prohibits adding test-only production methods and requires reliable verification before code changes.

Does test-driven development require adding test-only methods to production code?

No, test-driven development explicitly requires strict avoidance of adding test-only production methods. It enforces real-behavior testing and minimal implementation to ensure unit tests verify actual application behavior without relying on artificial test scaffolding.