๐Ÿงช
QualityRust

Test-Driven Development

by peintune

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

195 stars12 forkson peintune/runjamAdded 2026/09/06+26% in starsRepository updated 2026/09/04
agentagent-managerai-agentai-codingclaude-codecodex-clicoding-assistantdesktop-appdeveloper-toolsgemini-clillmlocal-firstopen-sourcerustskilltaurivue3
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/peintune/runjam/tree/main/src-tauri/builtin-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/peintune/runjam.git

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

In this catalog

Source file
src-tauri/builtin-skills/test-driven-development/SKILL.md in peintune/runjam
Installs to
~/.claude/skills/test-driven-development
Collection
One of 13 skills cataloged from this repository
Category
Quality โ€” 1745 skills

What Test-Driven Development does

Test-Driven Development uses a red-green-refactor cycle before implementation code is written. Use it for new features, bug fixes, and behavior-changing refactors.

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

Documentation

README

Test-Driven Development (TDD)

Rule

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.

When to Use

Always for:

  • New features
  • Bug fixes
  • Refactoring with behavior changes

Skip only for:

  • Config file changes
  • Documentation updates
  • Non-functional changes (formatting, comments)

Process

  1. Red: Write a failing test
  2. Green: Write minimal code to pass
  3. Refactor: Clean up while keeping tests green

Anti-Patterns

  • Writing implementation before the test
  • Skipping the "watch it fail" step
  • Writing tests that are too coupled to implementation
  • Testing framework behavior instead of your code

Frequently asked about Test-Driven Development

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

    Test-Driven Development is one of 13 skills that DirSkills catalogs from peintune/runjam, the repository it ships in. Its siblings there include Brainstorming, Code Review and Finishing A Development Branch. 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 peintune in that same repository. The rest of the collection is listed on the peintune/runjam page.

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

    Test-Driven Development ranks #1550 by stars among the 1745 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 peintune/runjam

Test-Driven Development is one of 13 skills cataloged on DirSkills from peintune/runjam.

See all 13 skills โ†’