Guides test-driven development with red-green-refactor loop, test pyramid strategy, and property-based testing. Activates when user wants test-first development or mentions TDD patterns.
Ships in loom. 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.
TDD is the red → green loop. Every section here applies on every cycle: consult them before and during the loop.
When exploring the codebase, read GLOSSARY.md (if it exists) so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.
Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists — and survives refactors because it doesn't care about internal structure. Each test makes one logical assertion.
Read mocking.md before you write a mock or a fake.
Before writing a test, name the meaningful bug it would catch. If you cannot, do not write the test.
Skip assignments, logic-free getters/setters, constants and types, pass-through wiring, framework behavior, and behavior already covered through a higher stable seam. Test business rules, meaningful branches and transformations, failures, invariants and state transitions, integration boundaries, user-visible workflows, and regressions.
The tests form a test pyramid: many fast unit tests at the base, fewer integration tests above them, the fewest end-to-end tests at the top. Write each test at the lowest layer that can prove the behaviour, and go up a layer only for what the layer below cannot prove.
| Layer | Proves | Seam |
|---|---|---|
| Unit | A decision: a branch, a calculation, a parse, a state transition | A pure function, or a service with fakes at the system boundary |
| Integration | Wiring: real SQL, the HTTP contract, each status code once | A repository, a route handler |
| End-to-end | One journey per critical flow, and what needs the whole running app | The app as its user meets it |
When a decision is only reachable from a higher layer, extract it into a pure function named from the domain and test it there.
Pyramid check. The work is done when the tests it added, counted by layer, form a pyramid: unit outnumbers integration, and integration outnumbers end-to-end. Push an inverted layer's tests down until it holds, and report each test that stays high with what only its layer proves.
Property tests. Every seam below end-to-end also gets property tests, written with the language's property-testing library (in Python: Hypothesis, Hypothesis stateful and Schemathesis). Read property-tests.md before you write the first test.
A seam is the public boundary you test at: the interface where you observe behavior without reaching inside.
Test only at pre-agreed seams. Before writing any test, write down the seams under test, each with its pyramid layer, and confirm them with the user. You can't test everything — agreeing the seams up front is how testing effort lands on the critical paths and complex logic instead of every edge case.
Ask: "What's the public interface, and which seams should we test?"
When the shape of that interface is itself in question — how deep the module is, where the seam belongs, what the interface should expose — use the /codebase-design skill for the vocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and locality terms, and it is a reference to consult, not a session to run.
tests.md shows the first two as code, each beside its fix. Read it when you cannot tell whether a test you wrote is one of them.
expect(add(a, b)).toBe(a + b), a snapshot derived by hand the same way, a constant asserted equal to itself), so it passes by construction and can never disagree with the code. Expected values must come from an independent source of truth — a known-good literal, a worked example, the spec.code-review skill), not the red → green implementation cycle.What SKILL.md sets; muted values are Claude Code's defaults
/loom:tddfrom loom
npx claudepluginhub yassimba/loom --plugin loom56 skills in this plugin
/architecture-documentationWrite or update software architecture documentation with the arc42 template. Use when documenting a system's architecture./bddGrill the user for the behaviour of a feature, one concrete example at a time, and write their answers as Gherkin. Use when defining behaviour or acceptance criteria, writing or reviewing .feature files, or wiring pytest-bdd or behave./blueprintSketch a proposed code change visually with Mermaid before implementation. Use also when designing a new system or its module boundaries./cleanupRefactor to remove unneeded complexity, unclear or inconsistent names, and AI slop from a diff or codebase./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base), or audit a whole repo or folder, along three axes: Standards (this repo's documented coding standards), Spec (what the originating issue asked for) and Quality (bugs, security, load, missing tests, speed, unneeded code). Use when the user wants to review a branch, a PR, work-in-progress changes, asks to "review since X", or asks to audit a codebase.Other plugins' skills for the same job