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
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 -yInstalls 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- Plan Task1.3K
- Why1.3K
- Judge1.3K
- Setup Serena Mcp1.3K
- Do And Judge1.3K
- Implement Task1.3K
- Test Prompt1.3K
- Write Tests1.3K
- Analyse Problem1.3K
- Create Rule1.3K
- Do In Steps1.3K
- Do In Parallel1.3K
- Review Pr1.3K
- Analyse1.3K
- Add Task1.3K
- Test Skill1.3K
- Create Agent1.3K
- Launch Sub Agent1.3K
- Tree Of Thoughts1.3K
- Cause And Effect1.3K
- Apply Anthropic Skill Best Practices1.3K
- Create Skill1.3K
- Do Competitively1.3K
- Create Ideas1.3K
Similar to Test Driven Development
More Testing & QAtddSkillcodeaholicguy/ai-devkit1.7K starsStrict red-green-refactor workflow that blocks production code until a failing test exists.
tdd-workflowSkillsickn33/agentic-awesome-skills1.1K installsTest-first development guide covering the RED-GREEN-REFACTOR cycle, minimal-code rules, and test prioritization.
tdd-workflowsPluginwshobson/agents42.9K starsTest-driven development methodology with red-green-refactor cycles and code review
tdd-workflows-tdd-greenSkillsickn33/agentic-awesome-skills263 installsMinimal-implementation guidance for the TDD green phase that makes failing tests pass without refactoring or redesign.
test-skillSkillneolabhq/context-engineering-kit1.3K installsTest skills by running RED-GREEN-REFACTOR cycles on process documentation before deployment.