Test Driven Development — Testing skill for Claude Code
Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests actually verify behavior by requiring f.
How to install Test Driven Development
Installs to ~/.claude/skills/chrisryugj-lexdiff-test-driven-development/SKILL.md
mkdir -p ~/.claude/skills/chrisryugj-lexdiff-test-driven-development && curl -fsSL https://raw.githubusercontent.com/chrisryugj/lexdiff/HEAD/.claude/skills/test-driven-development.md -o ~/.claude/skills/chrisryugj-lexdiff-test-driven-development/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Test Driven Development does
name: test-driven-development description: Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests actually verify behavior by requiring failure first
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
Alternatives in Testing
- Fix Issue — by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol 46.5k ★
- Add Plugin — Integrate a spec-driven/skill framework as a bundled agtx plugin 1.5k ★
- Agent Plugins Spec — Agent Plugins Specification v1.0.0 — A minimal standard for packaging agent extensions into distributable plug 1.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Test Driven Development.SKILL
Enforces TDD discipline with RED-GREEN-REFACTOR cycle. Use when writing new features, fixing bugs, or refactor
Green
Execute TDD Green Phase - write minimal implementation to pass the failing test
TDD Implement
by jerseycheese - Implements Test-Driven Development by analyzing feature requirements, creating tests first (
Red TDD
RED phase - Write comprehensive, high-quality tests with automatic artifact storage in sprintdag directory. Fo
Builder Write Test
Builder step 2 — write the failing test from the spec before implementing the fix
Distill Context
Synthesise Pass 1 context into a minimal context.md, then spawn a clean subagent for the build phase with only
Related Agents
Webtester
Use this agent to verify that a web app actually works end-to-end in a real browser, driven by Playwright agai
Sf Bugfix Agent
Diagnose and fix Salesforce build errors, Apex test failures, metadata conflicts, and deployment issues with m
Verify Compliance
Ensures regulatory and legal compliance including GDPR, PCI-DSS, HIPAA, SOC 2, dependency licensing, and acces