tdd
Skill1 starsChanged 2 months agoMITView on GitHub
Test-driven development — the red → green loop done so it produces tests worth keeping. Test behaviour through public seams (agreed with the user up front), one vertical slice per cycle, expected values from an independent source. Use when building a feature or fixing a bug test-first, or when the user says "red-green-refactor" / "write the test first".
194 other projects use a version of this, 58 of them edited.
Adopted by
Most recently taken up by
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- trpc/trpctheir own version, first seen Nov 8, 2026
- wowyuarm/dsh-agent-teamedited, first seen Nov 8, 2026
- Contexera/dsh-agent-teamedited, first seen Nov 8, 2026
- Dimon94/dveritytheir own version, first seen Nov 8, 2026
- Dimon94/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use capture-learning-tools, design-frontend-dev and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
The-Vibe-CompanySkillcapture-learning-tools
Turn technical conversations, bugs, CI failures, review comments,
Also in 5 projects that use this
The-Vibe-CompanySkilldesign-frontend-dev
Clean Impeccable frontend design skill. Use when the user wants to
Also in 5 projects that use this
tristanphvnSkillketchup-video
Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.
Also in 14 projects that use this
jaydubya818Skillfigure-it-out
Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.
Also in 54 projects that use this
jaydubya818Skillprinciple-laziness-protocol
Apply when a refactor is adding wrappers or abstractions instead of simplifying.
Also in 45 projects that use this
- +2 more from The-Vibe-Company
- +5 more from jaydubya818
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 58
- mattpocock/skills★ 309k26% same
- QuivrHQ/quivr★ 40k13% same
- The-Vibe-Company/quivr★ 40k13% same
- MODSetter/SurfSense★ 17k27% same
- formbricks/formbricks★ 13k26% same
- ArcReel/ArcReel★ 6.3k26% same
- withcoral/coral★ 4.9k26% same
- bestofjs/bestofjs★ 3.1k27% same
- crbnos/carbon★ 2.8k26% same
- The-Vibe-Company/claude-code-controller★ 2.4k13% same
48 more not listed
Wrote their own version · 136
- trpc/trpc★ 41ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- GreyDGL/PentestGPT★ 16ksame name
- open-metadata/OpenMetadata★ 16ksame name
- prowler-cloud/prowler★ 15ksame name
- FastLED/FastLED★ 7.5ksame name
- sanity-io/sanity★ 6.4ksame name
126 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bigquery-analyticsSkill
- cache-invalidationSkill
- mongo-aggregationSkill
- mongo-modelingSkill
- postgres-aggregationSkill
- postgres-indexingSkill
- redis-coordinationSkill
- redis-patternsSkill
- review-querySkill
- code-migrationSkill
- cut-releaseSkill
- data-migrationSkill
- deploy-serviceSkill
- hotfixSkill
- rollbackSkill
- design-endpointSkill
- design-eventSkill
- design-schemaSkill
- evolve-contractSkill
- scaffold-nestjs-moduleSkill
- scaffold-projectSkill
- incident-responseSkill
- investigate-bugSkill
- on-callSkill
- postmortemSkill
- audit-skillsSkill
- distill-review-styleSkill
- write-skillSkill
- debug-with-tracesSkill
- define-alertsSkill
- instrument-serviceSkill
- evaluate-dependencySkill
- grillSkill
- handoffSkill
- orientSkill
- phased-deliverySkill
- spikeSkill
- to-questionnaireSkill
- write-adrSkill
- write-prdSkill
- devops-pr-reviewSkill
- go-backend-pr-reviewSkill
- nestjs-backend-pr-reviewSkill
- python-backend-pr-reviewSkill
- react-frontend-pr-reviewSkill
- bisectSkill
- break-couplingSkill
- dead-code-sweepSkill
- deslopifySkill
- extract-moduleSkill
- rebase-cleanSkill
- resolve-merge-conflictsSkill
- split-commitSkill
- wait-whatSkill
- wide-renameSkill
- bullmqSkill
- kafkaSkill
- sqs-consumerSkill
- audit-dependenciesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When exploring the codebase first, read CONTEXT.md if it exists so test names and interface vocabulary match the project's domain language, …
- Distinctive: line 26
Test only at pre-agreed seams: Before writing any test, write down the seams under test and confirm them with the user.
- Distinctive: line 37
Red before green: Write the failing test first, then only enough code to pass it.
“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test-driven development
Adapted from mattpocock/skills quality/tdd (MIT),
inlined and trimmed to fit this repo's conventions.
When exploring the codebase first, read CONTEXT.md if it exists so test names and
interface vocabulary match the project's domain language, and respect any ADRs in
the area you're touching.
What a good test is
Verifies behaviour through a public interface, not implementation details. The
code can change entirely; the test shouldn't. It reads like a specification —
user can checkout with valid cart — and survives refactors because it doesn't
care about internal structure.
Seams: where tests go
A seam is the public boundary you observe behaviour at without reaching inside.
Test only at pre-agreed seams. Before writing any test, write down the seams under test and confirm them with the user. Effort then lands on the critical paths and the complex logic, not every edge case. Ask: "what's the public interface, and which seams should we test?"
Match the project's test conventions (from CONTEXT.md / the pr-review skill for
that stack): Go → table-driven _test.go beside the source; Python → _test.py
beside the source with @pytest.mark.parametrize; NestJS → *.spec.ts.
The loop
- Red before green. Write the failing test first, then only enough code to pass it. No speculative features, no anticipating the next test.
- One slice at a time. One seam, one test, one minimal implementation per cycle. Each test is a tracer bullet that responds to what the last cycle taught you.
- Refactoring is not part of the loop. It's a separate pass — see
skills/pr-review/and the/simplifyskill.
Anti-patterns
- Implementation-coupled — mocks internal collaborators, tests private methods, asserts through a side channel (querying the DB instead of the interface). Tell: the test breaks on a refactor when behaviour didn't change.
- Tautological — the assertion recomputes the expected value the way the code
does (
expect(add(a,b)).toBe(a+b), a hand-derived snapshot, a constant equal to itself). Expected values must come from an independent source: a known-good literal, a worked example, the spec. - Horizontal slicing — all tests first, then all implementation. You end up testing the imagined shape of things; the tests go insensitive to real change. Work vertically: one test → one implementation → repeat.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

