/tdd:principles [question or concept]from tdd
Answers test design questions from authoritative TDD sources (Beck, Khorikov): mocking decisions, red-green-refactor, classical vs London, test doubles, refactoring resistance, integration tests, coverage, anti-patterns.
Ships in tdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Beck and Khorikov files are distilled from cover-to-cover reading of those books. Two files are not: property-based-testing.md and characterization-testing.md are built from web sources, listed separately under Sources. Reference files in reference/ have author-attributed sections with synthesis where authors overlap.
| Query about... | Load |
|---|---|
| TDD cycle, red-green-refactor, when/why TDD, step size, courage, stress, fear | methodology-beck.md |
| What makes a good test, what to test, 3A, Fixture, test naming, parameterized tests | test-design.md |
| Mocks, stubs, fakes, mock/stub taxonomy, CQS connection, 5 mocking best practices | test-doubles.md |
| Refactoring safely, design patterns in TDD, Humble Object, four types of code | refactoring-under-test.md |
| Four Pillars of a good test, brittle tests, false positives, resistance to refactoring | four-pillars-khorikov.md |
| Code coverage metrics, branch vs statement, goal of unit testing | code-coverage-khorikov.md |
| Classical vs London school, dependency taxonomy, shared/private/out-of-process | classical-vs-london-khorikov.md |
| Observable behavior, implementation details, hexagonal architecture, encapsulation | observable-behavior-khorikov.md |
| Output/state/communication styles, functional architecture, functional core | testing-styles-khorikov.md |
| Four types of code 2x2, Humble Object, CRM refactoring, CanExecute/Execute, domain events, preconditions | testable-architecture-khorikov.md |
| Integration tests, managed vs unmanaged deps, Test Pyramid, database testing, logging, interfaces, reads vs writes | integration-testing-khorikov.md |
| Anti-patterns: private methods, exposing state, domain knowledge, code pollution, time | anti-patterns-khorikov.md |
| Beck's Money example, Value Object, Expression metaphor, Factory Method | money-example-beck.md |
| Beck's xUnit example, bootstrap, Template Method, Composite, Collecting Parameter | xunit-example-beck.md |
| Property-based testing: properties as specification, property patterns, properties beside example tests, agent-written properties | property-based-testing.md (web-sourced) |
| Legacy code, characterization tests, code that cannot be put in a test harness yet, seam types, Strangler Fig, sabotage check, pins prove sameness not correctness | characterization-testing.md (web-sourced) |
Load the most relevant file first. Load a second only if the first doesn't fully answer.
Quick decision guide (no file load needed):
/mutation-testing:principles (if enabled); without it, each note carries its own one-line fallback.These two files were built from web pages and papers' abstract and HTML pages read on 2026-10-06, not from reading a book. Each file lists its sources with read depth and a recheck trigger; this list is rechecked when either file's trigger fires.
{concept}.md is shared across authors, with attributed sections inside{concept}-{author}.md is used when only one author covers it substantively/testing:write
Puts the test-design reasoning into the tests themselves.
This skill is knowledge (WHY behind testing decisions), not workflow (HOW to run tests). For running, filtering, or scaffolding tests, use your project's own test tooling, conventions, and workflow skills. This skill informs the design decisions those workflows execute.
reference/anti-patterns-khorikov.md (opens in a new tab)reference/characterization-testing.md (opens in a new tab)reference/classical-vs-london-khorikov.md (opens in a new tab)reference/code-coverage-khorikov.md (opens in a new tab)reference/four-pillars-khorikov.md (opens in a new tab)reference/integration-testing-khorikov.md (opens in a new tab)reference/methodology-beck.md (opens in a new tab)reference/money-example-beck.md (opens in a new tab)reference/observable-behavior-khorikov.md (opens in a new tab)reference/property-based-testing.md (opens in a new tab)reference/refactoring-under-test.md (opens in a new tab)reference/test-design.md (opens in a new tab)reference/test-doubles.md (opens in a new tab)reference/testable-architecture-khorikov.md (opens in a new tab)reference/testing-styles-khorikov.md (opens in a new tab)reference/xunit-example-beck.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin tddOther plugins' skills for the same job