๐Ÿงช
QualityRust

Test-Driven Development

by xintaofei

Test-Driven Development is a Quality skill for Claude Code, published by xintaofei in codeg.

2.8K stars344 forkson xintaofei/codegAdded 2026/08/17+3% in starsRepository updated 2026/08/17
acpagentclaude-codeclinecode-generationcodebuddycodexgemini-cligrok-buildguihermes-agentkimi-codeopenclawopencodepiworktree
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/xintaofei/codeg/tree/main/src-tauri/experts/skills/test-driven-development ~/.claude/skills/test-driven-development

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/xintaofei/codeg.git

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

In this catalog

Source file
src-tauri/experts/skills/test-driven-development/SKILL.md in xintaofei/codeg
Installs to
~/.claude/skills/test-driven-development
Collection
One of 25 skills cataloged from this repository
Category
Quality โ€” 1354 skills

What Test-Driven Development does

Test-Driven Development enforces writing failing tests before implementation code for any feature, bugfix, or behavior change. It guides a strict Red-Green-Refactor cycle and rejects rationalizations for skipping tests.

Test-Driven Development is cataloged under Quality on DirSkills. Test-Driven Development comes from a repository tagged acp, agent, claude-code, cline and code-generation.

Documentation

README

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.

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

Frequently asked about Test-Driven Development

  • What else does xintaofei publish alongside Test-Driven Development?

    Test-Driven Development is one of 25 skills that DirSkills catalogs from xintaofei/codeg, the repository it ships in. Its siblings there include Brainstorming, Citation Management and Code Review Reception. 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 xintaofei in that same repository. The rest of the collection is listed on the xintaofei/codeg page.

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

    Test-Driven Development ranks #488 by stars among the 1354 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 xintaofei/codeg

Test-Driven Development is one of 25 skills cataloged on DirSkills from xintaofei/codeg.

See all 25 skills โ†’
๐Ÿ’ก
2w ago

Brainstorming

Brainstorming turns ideas into fully formed designs and specs through collaborative dialogue, asking clarifying questions and proposing approaches before implementation. Use it before any creative or coding work to align on requirements and get approval.
AI Engineering
2.8K344
๐Ÿ“š
2w ago

Citation Management

Citation Management searches Google Scholar and PubMed for papers, extracts accurate metadata, validates citations, and generates properly formatted BibTeX entries. Use it when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.
Writing
2.8K345
๐Ÿงช
2w ago

Code Review Reception

Code Review Reception establishes a verification-first workflow for responding to code review feedback, requiring technical evaluation and clarification before implementation rather than performative agreement. Use it when receiving feedback from humans or external reviewers to avoid blind implementation and ensure changes fit the codebase.
Quality
2.8K344
๐Ÿค–
2w ago

Dispatching Parallel Agents

Dispatching Parallel Agents delegates independent tasks to multiple concurrent subagents to investigate and fix issues in parallel. Use it when you have 2+ independent tasks that can be worked on without shared state or sequential dependencies.
AI Engineering
2.8K344
๐Ÿ“‹
2w ago

Executing Plans

Executing Plans loads a written implementation plan, reviews it critically, executes all tasks with verification, and reports when complete. Use it when you have a written implementation plan to execute in a separate session with review checkpoints.
Automation
2.8K344
๐Ÿงช
2w ago

Experimental Design

Experimental Design plans experiments and studies before data collection, choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use it when assigning subjects to groups, screening factors, or setting up factorial or response-surface designs.
Data
2.8K345