test-driven-development

Write failing tests before implementing code in bones workspace workflows.

4|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/danmestas/wardrobe --skill test-driven-development-danmestas
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/danmestas/wardrobe/tree/main/skills/test-driven-development
Command: npx skills add https://github.com/danmestas/wardrobe --skill test-driven-development-danmestas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tests are the best guardrails to ensure features and bug fixes behave as intended; it prevents regression by asserting expected behavior before coding.

Core Features & Use Cases

  • Red-Green-Refactor cycle: write a failing test, implement just enough code to pass, then refactor.
  • Guardrails for quality: enforces minimal, purpose-built implementations and explicit test coverage for changes to bones workspaces.
  • Use Case: when adding a new feature or fixing a bug in a bones project, start with tests to define the intended behavior.

Quick Start

Run the test-driven development cycle in your bones workspace to anchor changes in proven tests.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I implement test-driven development for a new feature in my workspace?▼

To implement test-driven development, write a failing test defining the intended behavior, add minimal code to pass it, then refactor. This Red-Green-Refactor cycle ensures tight feedback loops and prevents regression in feature development.

What is the Red-Green-Refactor cycle in test-first software engineering?▼

The Red-Green-Refactor cycle is a test-first workflow where you write a failing test, implement just enough code to make it pass, then refactor safely. It enforces minimal, purpose-built implementations and explicit test coverage.

Can I use test-driven development for bug fixes and refactoring existing code?▼

Yes, test-driven development is applicable to bug fixes, refactors, and behavioral changes. You anchor the fix by writing a test that asserts expected behavior prior to coding, preventing future regressions across the workspace.

What's the best way to ensure minimal code when writing tests first?▼

The best way to ensure minimal code is enforcing strict verification of test failures prior to implementation. By writing purpose-built tests first, you implement only enough code to pass, establishing reliable guardrails for quality assurance.

Do I need to verify test failures before writing implementation code?▼

Yes, you must verify test failures prior to writing code. Test-driven development enforces strict verification of failing tests first, ensuring the test accurately captures the intended behavior before you implement the feature or fix.