tdd
Skill12 starsChanged 28 days agoApache-2.0View on GitHub
Test-driven development with a red-green loop, one vertical slice at a time. Use when building a feature or fixing a bug test-first, when the user mentions TDD, red-green, or regression tests, or when another skill asks for tests at agreed seams.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- F3-Nation/f3-nationtheir own version, first seen Nov 30, 2026
- quarkiverse/quarkus-reactive-messaging-nats-jetstreamtheir own version, first seen Nov 30, 2026
- Rain-kl/OpenFlaretheir own version, first seen Nov 30, 2026
- Forget-C/Jellyfishtheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 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
jaydubya818Skillfigure-it-out
Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.
Also in 66 projects that use this
shiwenbin1617Skillketchup-video
Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.
Also in 24 projects that use this
simo97Skillrequest-refactor-plan
Use this skill when user wants to create a refactor plan.
Also in 47 projects that use this
jaydubya818Skillprinciple-minimize-reader-load
Apply when layers, wrappers, or hidden state make simple behavior hard to follow.
Also in 57 projects that use this
- +3 more from The-Vibe-Company
- +2 more from jaydubya818
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- mattpocock/skills★ 335ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- trpc/trpc★ 41ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- ccusage/ccusage★ 20ksame name
- ryoppippi/ccusage★ 20ksame name
- MODSetter/SurfSense★ 17ksame name
- open-metadata/OpenMetadata★ 16ksame name
183 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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ask-brokSkill
- brok-contextSkill
- code-reviewSkill
- commit-messageSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grill-with-docsSkill
- implementSkill
- prSkill
- retroSkill
- setup-brokspaceSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- write-shardSkill
- write-skillSkill
- grillingSkill
- grill-meSkill
- handoffSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 189 edited versions we read keep these.
4
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 12
Read GLOSSARY.md if present: test names use the project's terms.
- Distinctive: line 22
Never test below an agreed seam: no private functions, no internal collaborators.
- Distinctive: line 27
Red: write one test for the next behavior.
- Distinctive: line 30
Green: write the least code that makes it pass.
- Distinctive: line 46
Use real collaborators that are fast and local (temp dirs, in-memory stores, a local socket).
“Common” is measured: kept by at least 6 in 10 of the 189 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
Red, then green, one small slice at a time, always through a public interface. The tests you keep should read like a specification of what the code does, and survive any refactor that keeps that behavior.
Read GLOSSARY.md if present: test names use the project's terms.
Seams first
A seam is the public boundary a test exercises: a function's signature, a CLI command, an HTTP route, a bus topic, a file format. Before the first test:
- List candidate seams, each with one line on what a test there catches and what it misses.
- Get the user's confirmation (unless another skill already agreed them).
- Never test below an agreed seam: no private functions, no internal collaborators.
The loop
- Red: write one test for the next behavior. Run it. It must fail, and for the reason you expect. A test that passes immediately proves nothing; rethink it.
- Green: write the least code that makes it pass. No extra branches, no future-proofing.
- Run everything that is fast. Keep the suite green before the next test.
- Next behavior. Each test is a tracer bullet: let what you learned shape the next one.
Refactoring is not part of this loop. It happens afterwards, during review.
Good tests
- Assert observable outcomes (returned values, output, files written, events published), not which helpers were called.
- Expected values come from an independent source: a literal, a worked example, the spec. Never recompute them the way the code does.
- One reason to fail per test. Name it after the behavior:
rejects_tokens_signed_with_unknown_keys. - Use real collaborators that are fast and local (temp dirs, in-memory stores, a local socket). Fake only what is slow, flaky or external, and fake it at the seam.
Anti-patterns
- Writing all the tests first, then all the code: tests end up checking imagined shapes instead of behavior.
- Mocking internals: the test breaks on refactors that keep behavior.
- Tautologies: the assertion repeats the implementation, so it can never fail.
- Snapshotting everything: big snapshots get approved without reading.
See tests.md for good and bad examples in Rust and TypeScript.
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.

