test-driven-development

Enforce the red-green-refactor cycle with failing-first tests.

64|17|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Kastalien-Research/thoughtbox --skill test-driven-development-kastalien-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/Kastalien-Research/thoughtbox/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/Kastalien-Research/thoughtbox --skill test-driven-development-kastalien-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces the Test-Driven Development (TDD) methodology, ensuring that all code changes are backed by robust, failing-first tests. It prevents the common pitfall of writing tests after implementation, which often leads to incomplete or ineffective test coverage.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Guides through the core TDD loop: write a failing test (Red), write minimal code to pass (Green), then clean up (Refactor).
  • Mandatory Failure Verification: Emphasizes the critical step of watching a test fail before writing production code, proving the test's validity.
  • Anti-Rationalization Rules: Provides strict guidelines and "Iron Laws" to counter common excuses for skipping TDD, ensuring disciplined adherence.
  • Use Case: When implementing any new feature or fixing a bug, use this skill to guarantee that your changes are thoroughly tested and that your tests genuinely verify the intended behavior, leading to higher quality and fewer regressions.

Quick Start

You: I'm using the test-driven-development skill to implement the new user authentication feature.