Skip to content
neolabhq avatar

Test Driven Development

Strict test-first workflow that requires watching each new test fail before writing implementation code.

CCM score
56 of 100
skills.sh installs
1.3K
GitHub stars
1.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the red-green-refactor cycle for new features, bug fixes, refactors, and behavior changes
  • Includes a Good/Bad example set, a rationalization table, and a red-flags checklist for spotting skipped steps
  • Enforces an iron law: production code written before a failing test is deleted and rewritten from tests
  • Designed for developers who want tests to prove behavior rather than merely pass after the fact

Install

$ npx -y skills add neolabhq/context-engineering-kit --skill test-driven-development -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test-Driven Development (TDD)

Overview

Write the test first. Watch it fail. Write minimal code to pass.

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

Violating the letter of the rules is violating the spirit of the rules.

When to Use

Always:

  • New features
  • Bug fixes
  • Refactoring
  • Behavior changes

Exceptions (ask your human partner):

  • Throwaway prototypes
  • Generated code
  • Configuration files

Thinking "skip TDD just this once"? Stop. That's rationalization.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Write code before the test? Delete it. Start over.

No exceptions:

  • Don't keep it as "reference"
  • Don't "adapt" it while writing tests
  • Don't look at it
  • Delete means delete

Implement fresh from tests. Period.

Red-Green-Refactor

Details

Repository
github.com/neolabhq/context-engineering-kit
Category
Testing & QA
First seen
Jun 3, 2026

More from neolabhq/context-engineering-kit

All 62

Similar to Test Driven Development

More Testing & QA