๐Ÿงช
QualityPython

Test-Driven Development

by stevesolun

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

578 stars71 forkson stevesolun/ctxAdded 2026/08/25+1% in starsRepository updated 2026/08/24
agentsai-agentsanthropicautomationclaudeclaude-codecontext-managementdeveloper-toolsharnessknowledge-graphllmllm-wikimcpmicro-skillsobsidianreal-timerecommendation-engineskill-managementskillswiki
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/stevesolun/ctx/tree/main/.agents/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/stevesolun/ctx.git

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

In this catalog

Source file
.agents/skills/tdd/SKILL.md in stevesolun/ctx
Installs to
~/.claude/skills/tdd
Collection
One of 25 skills cataloged from this repository
Category
Quality โ€” 1354 skills

What Test-Driven Development does

Test-Driven Development uses small red-green-refactor cycles to build or fix behavior test-first. Use it when you want integration tests, a failing-first loop, or a change guided by existing tests and repository conventions.

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

Documentation

README

Test-Driven Development

Use small red โ†’ green โ†’ refactor cycles when a test-first feedback loop is practical. Treat repository conventions, existing tests, and the requested behavior as authoritative.

Loop

  1. Identify one observable behavior and the seam through which callers see it.
  2. Write the smallest meaningful test and confirm that it fails for the expected reason.
  3. Add only enough implementation to make the test pass.
  4. Refactor when doing so improves clarity or design; keep the suite green.
  5. Repeat with the next vertical slice.

Infer seams from public interfaces and nearby tests. Ask the user only when choosing a seam would materially change the product contract, cost, or scope.

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

Frequently asked about Test-Driven Development

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

    Test-Driven Development is one of 25 skills that DirSkills catalogs from stevesolun/ctx, the repository it ships in. Its siblings there include Ask Matt, Code Review and Codebase Design. 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 stevesolun in that same repository. The rest of the collection is listed on the stevesolun/ctx page.

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

    Test-Driven Development ranks #1151 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 stevesolun/ctx

Test-Driven Development is one of 25 skills cataloged on DirSkills from stevesolun/ctx.

See all 25 skills โ†’
๐Ÿงญ
6d ago

Ask Matt

Ask Matt recommends the smallest Matt Pocock skill or short skill sequence for a user's goal. Use it when you need help choosing the next skill, deciding between close options, or checking whether setup is required.
AI Engineering
57871
๐Ÿ”
6d ago

Code Review

Code Review reviews a Git diff against repository standards and the originating requirements. Use it for pull requests, branches, work-in-progress changes, or changes since a commit, tag, or merge-base.
Quality
57871
๐Ÿงฉ
6d ago

Codebase Design

Codebase Design helps you shape module interfaces using deep-module heuristics. Use it when choosing seams, reducing caller complexity, improving testability, or comparing alternative designs.
Quality
57871
๐Ÿž
6d ago

Diagnosing Bugs

Diagnosing Bugs uses reproducible evidence, focused hypotheses, and targeted instrumentation to isolate hard bugs and performance regressions. Use it when something is broken, intermittent, or unexpectedly slow.
Quality
57871
๐Ÿงฉ
6d ago

Domain Modeling

Domain Modeling clarifies concepts, language, boundaries, and architectural decisions when terminology is ambiguous or a design depends on shared understanding. It helps you compare terms, test edge cases, and record durable definitions or ADRs when needed.
AI Engineering
57871
๐Ÿ”Ž
6d ago

Find Skills

Find Skills discovers installable agent skills from ctx's recommendation surface, the Skills.sh catalog, and the npx skills CLI. Use it to check whether a skill exists, find candidates, or safely evaluate updates before installing.
AI Engineering
57871