Skip to content
sickn33 avatar

Test Driven Development

Test-first workflow that guides feature and bug-fix work through failing tests, minimal code, and refactoring.

CCM score
62 of 100
skills.sh installs
1.5K
GitHub stars
50.5K
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the red-green-refactor cycle, including verifying that each new test fails for the expected reason before implementation
  • Includes a bug-fix example, a verification checklist, and guidance for when stuck, such as simplifying interfaces or replacing excess mocks
  • Enforces preserving existing work and reporting honestly whether a test preceded its fix, rather than rewriting history
  • Designed for behavior changes with a repeatable test, and points to focused validation for copy, generated output, or configuration

Install

$ npx -y skills add sickn33/agentic-awesome-skills --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

Use for behavior changes where a repeatable test can demonstrate the requirement or reproduce the bug. Inspect the repository’s test runner and existing coverage first. For copy, generated outputs or low-impact configuration, use the appropriate focused validation rather than manufacturing a unit test.

Preserve existing work

Write the failing regression before the repair when feasible, and verify that it fails for the expected reason. If implementation already exists, preserve it and add characterization/regression tests. Do not delete user work, reset a branch or rewrite working code to reconstruct an ideal test-first history. State honestly whether the test preceded the fix.

Red-Green-Refactor

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Testing & QA, Agent Workflow & Planning
First seen
May 16, 2026

More from sickn33/agentic-awesome-skills

All 682

Similar to Test Driven Development

More Testing & QA