
TDD
Guides an agent through red-green-refactor test-first development with vertical slices
TDD is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 18
- Last commit
- License
- MIT
- Listing updated
Similar skills
About TDD
This skill is a reference for test-driven development that the agent consults before and during each cycle. It describes what a good test looks like: it checks behavior through public interfaces rather than internal details, and it reads as a specification that survives refactoring. Supporting notes cover where tests belong and mocking guidelines, which the skill links to as separate files.
The workflow centers on seams, the public boundaries where behavior is observed. Before writing any test, the agent is asked to list the seams under test and confirm them with the user, then build in vertical slices: one test, one minimal implementation, repeated. The skill also names common anti-patterns such as tests coupled to implementation, tautological assertions that recompute their own expected values, and writing all tests before any code.
If the project has an OKF knowledge bundle, the skill tells the agent to read its glossary and architecture decision records so test names match the domain vocabulary and existing decisions are respected. Refactoring is treated as a separate review step rather than part of the red-green loop. No scripts are included; the skill is plain instructions.
When your agent uses it
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 3 files (7 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/tdd to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tdd &&
cp -R "$tmp/tdd" ~/.claude/skills/tdd &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/tdd inside it instead.
Copy the skill folder to ~/.agents/skills/tdd to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tdd &&
cp -R "$tmp/tdd" ~/.agents/skills/tdd &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/tdd inside it instead.
Copy the skill folder to ~/.cursor/skills/tdd to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tdd &&
cp -R "$tmp/tdd" ~/.cursor/skills/tdd &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/tdd inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/evist0/okf-matt-skills.git --path tddOr copy the folder to ~/.gemini/skills/tdd yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/tdd:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tdd &&
cp -R "$tmp/tdd" ~/.copilot/skills/tdd &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/tdd inside it instead.
Get the folder:
git clone --depth 1 https://github.com/evist0/okf-matt-skills.gitThen copy okf-matt-skills/tdd into your agent's skills folder as tdd. Agents that support SKILL.md read one folder per skill.
What it does
- Behavior-focused testing
- Guides tests toward public interfaces and away from internal implementation details.
- Seam selection
- Has the agent agree on the public boundaries to test before writing any test.
- Vertical slice workflow
- Builds one test and one minimal implementation at a time instead of bulk tests first.
- Anti-pattern checks
- Flags implementation-coupled, tautological and horizontally sliced tests.
- Red-green discipline
- Requires a failing test before any code and no speculative features.
- Domain vocabulary alignment
- Uses project glossary and ADR files so test names match domain language.
Good for
- Build a new feature test-first with red-green-refactor cycles
- Fix a bug by writing a failing test before changing the code
- Write integration tests for a user-facing workflow
- Decide which public seams deserve tests before coding starts
- Review a test suite for implementation-coupled or tautological assertions
TDD FAQ
Does TDD need any tools or scripts?
No scripts are included and no allowed tools are set. It is a set of instructions the agent follows while writing tests.
When does the skill trigger?
It triggers when the user wants to build features or fix bugs test-first, mentions red-green-refactor, or asks for integration tests.
Does TDD handle refactoring?
Refactoring is not part of the red-green loop. The skill says it belongs to a separate review stage handled by the vet skill.
Does TDD require a project knowledge bundle?
No. If a knowledge bundle with glossary and ADR folders exists, the agent reads it; otherwise that step is skipped.
How do I install TDD in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/tdd to use it in all your projects, or to .claude/skills/tdd in one project.
Does TDD run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use TDD?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to TDD?
The closest alternatives to TDD are TDD, TDD, TDD workflow, Test driven development and TDD loop.
Where this comes from
- Description: from the skill's own SKILL.md.
More from evist0/okf-matt-skills

Gives the agent a shared vocabulary and principles for designing deep, testable modules
- Open source
- 18 GitHub stars
- Developer tools

Guides an agent through a disciplined loop for diagnosing hard bugs and slow regressions
- Open source
- 18 GitHub stars
- Developer tools

Guides an agent to build and sharpen a project's domain model and glossary
- Open source
- 18 GitHub stars
- Developer tools

Interviews you relentlessly to sharpen a plan or design while recording ADRs
- Open source
- 18 GitHub stars
- Developer tools

Makes the agent interview you one question at a time to stress-test a plan
- Open source
- 18 GitHub stars
- Developer tools

Condenses a conversation into a handoff document for another agent to resume
- Open source
- 18 GitHub stars
- Developer tools





