test-driven-development

Enforce Test-Driven Development by requiring failing tests before implementation code.

10|2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/raddue/crucible --skill test-driven-development-raddue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/raddue/crucible/tree/main/skills/test-driven-development
Command: npx skills add https://github.com/raddue/crucible --skill test-driven-development-raddue

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring code is reliable, maintainable, and demonstrably correct by requiring tests to be written and fail before any implementation code is developed.

Core Features & Use Cases

  • Mandatory Failing Test First: Guarantees that code is only written to satisfy a specific, unmet requirement.
  • Red-Green-Refactor Cycle Enforcement: Guides the developer through the essential TDD loop for robust development.
  • Use Case: When developing a new feature, use this Skill to ensure you write a test that fails for the new functionality, then write the minimal code to pass, and finally refactor. This prevents bugs and ensures testability from the outset.

Quick Start

Use the test-driven-development skill to implement a new password strength validator.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How does test-driven development prevent regressions in software development?

Test-driven development prevents regressions by enforcing a failing test before writing implementation code, ensuring every new feature or bug fix is verified by automated tests throughout the Red-Green-Refactor cycle.

What is the Red-Green-Refactor cycle for unit testing?

The Red-Green-Refactor cycle is a unit testing workflow where you write a failing test, implement minimal code to pass the test, and then refactor the code to improve quality while keeping the test green.

How do I write a failing test before implementing a new feature?

To write a failing test before implementing a new feature, define the desired behavior through an automated unit test that fails initially, then write the minimal implementation code required to make that specific test pass.

Can I use this test-driven development workflow for bug fixes and refactoring?

Yes, this test-driven development workflow applies to bug fixes and refactoring by requiring you to write a failing test that reproduces the bug or verifies the refactored behavior before changing the implementation code.

Why should I write a failing test first instead of writing tests after implementation?

Writing a failing test first guarantees that your code is written solely to satisfy a specific, unmet requirement, improving overall code quality and ensuring the testability of the software from the outset.

Do I need any specific testing frameworks to follow the TDD methodology?

No specific testing frameworks are required to follow the TDD methodology; the workflow enforces the Red-Green-Refactor cycle and unit testing principles independently of any particular software development dependencies.