๐Ÿงช
QualityPython

Test Driven Development

by TechDufus

Test Driven Development is a Quality skill for Claude Code, published by TechDufus in oh-my-claude.

176 stars9 forkson TechDufus/oh-my-claudeAdded 2026/09/07Repository updated 2026/07/13
aiautomationclaudeclaude-codepluginproductivity
Install in seconds
Install Test Driven Development
Copy Test Driven Development into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/TechDufus/oh-my-claude/tree/main/plugins/oh-my-claude/skills/tdd ~/.claude/skills/tdd

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/TechDufus/oh-my-claude.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
plugins/oh-my-claude/skills/tdd/SKILL.md in TechDufus/oh-my-claude
Installs to
~/.claude/skills/tdd
Collection
One of 12 skills cataloged from this repository
Category
Quality โ€” 1817 skills

What Test Driven Development does

Test Driven Development guides writing a failing test before production code, then making it pass and refactoring safely. Use it when implementing features or fixes, or when a hook or workflow requires test-first discipline.

Test Driven Development is cataloged under Quality on DirSkills. Test Driven Development comes from a repository tagged ai, automation, claude, claude-code and plugin.

Documentation

README

TDD Skill

Write the test. Watch it fail. Make it pass. Clean up. Repeat.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

If you're writing production code and no test just failed, you're doing it wrong.

When to Apply

  • OMC_TDD_MODE is enabled (guided or enforced)
  • Implementing a new feature or behavior
  • Fixing a bug (write the test that reproduces it first)
  • Unsure how to structure tests for a piece of logic
  • When the tdd_enforcer hook blocks an edit

Red-Green-Refactor Cycle

RED: Write a Failing Test

  1. Write ONE test that describes the desired behavior
  2. Run the test suite
  3. Verify it fails for the RIGHT reason (not a syntax error, not a missing import)
  4. If it passes, your test is wrong or the feature already exists

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Test Driven Development

  • What else does TechDufus publish alongside Test Driven Development?

    Test Driven Development is one of 12 skills that DirSkills catalogs from TechDufus/oh-my-claude, the repository it ships in. Its siblings there include Debugger, Git Commit Validator and Init Deep. Each one is a separate skill with its own page in this directory, installs the same way Test Driven Development does, and is maintained by TechDufus in that same repository. The rest of the collection is listed on the TechDufus/oh-my-claude page.

  • How does Test Driven Development compare to other Quality skills?

    Test Driven Development ranks #1707 by stars among the 1817 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Test Driven Development against them. Open each page to compare what they document and how they install.

More from TechDufus/oh-my-claude

Test Driven Development is one of 12 skills cataloged on DirSkills from TechDufus/oh-my-claude.

See all 12 skills โ†’