๐Ÿงช
QualityPython

TDD Workflow

by ThamJiaHe

TDD Workflow is a Quality skill for Claude Code, published by ThamJiaHe in claude-code-handbook.

201 stars22 forkson ThamJiaHe/claude-code-handbookAdded 2026/09/05Repository updated 2026/04/19
aianthropic-claudeclaudeclaude-aiclaude-codeclaude-skillsllmmcpprompt-engineering
Install in seconds
Install TDD Workflow
Copy TDD Workflow 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/ThamJiaHe/claude-code-handbook/tree/main/skills/examples ~/.claude/skills/examples

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/ThamJiaHe/claude-code-handbook.git

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

In this catalog

Source file
skills/examples/tdd-workflow-skill.md in ThamJiaHe/claude-code-handbook
Installs to
~/.claude/skills/examples
Collection
One of 25 skills cataloged from this repository
Category
Quality โ€” 1662 skills

What TDD Workflow does

TDD Workflow enforces red-green-refactor development with tests written before implementation. Use it for new features, bug fixes, and refactors when you want behavior verified by failing tests first.

TDD Workflow is cataloged under Quality on DirSkills. TDD Workflow comes from a repository tagged ai, anthropic-claude, claude, claude-ai and claude-code.

Documentation

README

TDD Workflow

Strict Red-Green-Refactor discipline for every code change. Tests come first โ€” no exceptions.

Overview

This skill enforces TDD as a non-negotiable workflow:

  1. RED โ€” Write a failing test that describes the desired behavior
  2. GREEN โ€” Write the minimum code to make it pass
  3. REFACTOR โ€” Clean up with all tests green

Never write implementation before a test exists for the happy path.

When to Use

  • Implementing any new feature or function
  • Fixing a bug (write the regression test first)
  • Refactoring existing code (ensure tests exist first)
  • Adding edge case handling

RED Phase: Write the Failing Test

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

Frequently asked about TDD Workflow

  • What else does ThamJiaHe publish alongside TDD Workflow?

    TDD Workflow is one of 25 skills that DirSkills catalogs from ThamJiaHe/claude-code-handbook, the repository it ships in. Its siblings there include API Development, API Security Hardening and AWS Cloud Infrastructure. Each one is a separate skill with its own page in this directory, installs the same way TDD Workflow does, and is maintained by ThamJiaHe in that same repository. The rest of the collection is listed on the ThamJiaHe/claude-code-handbook page.

  • How does TDD Workflow compare to other Quality skills?

    TDD Workflow ranks #1533 by stars among the 1662 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 TDD Workflow against them. Open each page to compare what they document and how they install.

More from ThamJiaHe/claude-code-handbook

TDD Workflow is one of 25 skills cataloged on DirSkills from ThamJiaHe/claude-code-handbook.

See all 25 skills โ†’
๐Ÿ”Œ
46m ago

API Development

API Development enforces REST API practices like proper status codes, RFC 7807 error responses, input validation, and centralized error handling. Use it when building routes, handling failures, or shaping consistent JSON responses.
Automation
20122
๐Ÿ›ก๏ธ
46m ago

API Security Hardening

API Security Hardening helps secure REST and GraphQL APIs against common attack vectors. Use it when adding authentication, validating input, rate limiting, handling uploads, or exposing endpoints to outside consumers.
AI Engineering
20122
โ˜๏ธ
46m ago

AWS Cloud Infrastructure

AWS Cloud Infrastructure deploys Node.js apps on AWS with EC2, RDS, IAM, security groups, and monitoring. Use it when setting up cloud infrastructure, databases, secrets, or cost-conscious production hosting.
DevOps
20122
๐Ÿ› ๏ธ
46m ago

Build Error Resolver

Build Error Resolver fixes build failures, TypeScript errors, and lint issues with minimal diffs. Use it when CI breaks or a build needs to be made green quickly.
Quality
20122
๐Ÿ›ก๏ธ
46m ago

Cybersecurity Threat Modeling

Cybersecurity Threat Modeling applies STRIDE to application architecture to identify spoofing, tampering, disclosure, DoS, and privilege risks. Use it when designing systems, reviewing architecture, or assessing security posture.
Quality
20122
๐Ÿณ
46m ago

Docker Containerization

Docker Containerization provides patterns for multi-stage Dockerfiles, compose setups, and container security hardening. Use it when building, optimizing, or deploying containerized apps.
DevOps
20122