tdd
Skill0 starsChanged 31 days agoMITView on GitHub
Drives an <app> change test-first through the red, green, refactor loop, one seam at a time, with integration tests at the boundaries.
193 other projects use a version of this, 58 of them edited.
Adopted by
Most recently taken up by
- F3-Nation/f3-nationedited, first seen Nov 30, 2026
- quarkiverse/quarkus-reactive-messaging-nats-jetstreamedited, first seen Nov 30, 2026
- Rain-kl/OpenFlareedited, first seen Nov 30, 2026
- Forget-C/Jellyfishedited, 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 · 58
- mattpocock/skills★ 335k11% same
- MODSetter/SurfSense★ 17k10% same
- formbricks/formbricks★ 13k11% same
- Forget-C/Jellyfish★ 7.5k11% same
- ArcReel/ArcReel★ 6.8k11% same
- withcoral/coral★ 5k11% same
- bestofjs/bestofjs★ 3.1k10% same
- crbnos/carbon★ 2.9k10% same
- CelestoAI/SmolVM★ 2.2k10% same
- bamlab/flashlight★ 1.6k11% same
48 more not listed
Wrote their own version · 135
- 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
- open-metadata/OpenMetadata★ 16ksame name
- GreyDGL/PentestGPT★ 16ksame name
- prowler-cloud/prowler★ 15ksame name
125 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 repository23 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- add-handlerSkill
- add-moduleSkill
- claim-checkSkill
- clean-room-rebuildSkill
- corpus-retrievalSkill
- depguard-guardSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- graphifySkill
- grillingSkill
- learnSkill
- ownership-authorSkill
- planSkill
- researchSkill
- reviewSkill
- shipSkill
- specSkill
- verified-statusSkill
- nodejs-best-practicesSkill
- nodejs-portSkill
- nodejs-reviewSkill
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
- Distinctive: line 25
Do NOT activate this skill when the change is documentation-only, a mechanical rename, or a configuration edit with no behaviour to pin …
- Distinctive: line 30
Red before green: Write the failing test first, then only the minimum code that makes it pass.
- Very specific: line 44
Use the project's own vocabulary: Test names and interfaces match the domain language recorded in GLOSSARY.md and the decisions recorded in …
- Distinctive: line 69
No fabricated results: never claim a test passes without running it, and never assert on a behaviour the test does not actually exercise.
- Distinctive: line 71
Leave the suite green at the end of every slice: a red test in the tree is a broken contract, not a to-do.
“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
<app> TDD skill
Reusable workflow for building
<app>features and fixes test-first. An agent invokes this skill; the agent supplies the domain knowledge, the skill supplies the loop discipline.
When to Activate
Activate this skill when a change to <app> is driven test-first. Typical
triggers:
- The request is to build a feature or fix a bug test-first, or mentions red, green, refactor.
- The request asks for integration tests, or for the boundary between unit
tests and integration tests in
<app>. - A change is being made where a regression test must land at the right seam.
Do NOT activate this skill when the change is documentation-only, a mechanical rename, or a configuration edit with no behaviour to pin down.
Core Principles
- Red before green. Write the failing test first, then only the minimum code that makes it pass. Do not anticipate future tests.
- Test behaviour through public interfaces. The implementation may change entirely; the test should not. A good test reads like a specification ("user can check out with a valid cart") and survives refactors because it does not care about internal structure.
- Tests live at seams. A seam is the public boundary where behaviour is observed without reaching inside. Agree the seams up front, then test only there.
- One vertical slice at a time. One test, one minimal implementation, repeat. Each test is a tracer bullet that responds to what the previous cycle taught.
- Refactoring belongs to the review stage, not to the red-green implementation cycle.
- Use the project's own vocabulary. Test names and interfaces match the
domain language recorded in
GLOSSARY.mdand the decisions recorded in the ADRs for the area being touched.
Rules
- No horizontal slicing. Writing all the tests first and then all the implementation produces tests that verify imagined behaviour and go insensitive to real changes.
- No tautological assertions. The expected value must come from an independent source of truth (a known-good literal, a worked example, the spec). An assertion that recomputes the expected value the way the code does passes by construction and can never disagree with the code.
- No implementation-coupled tests. Mocking internal collaborators, testing private methods, or verifying through a side channel (querying the database instead of calling the interface) makes the test break on refactors while behaviour is unchanged.
- Agree the seams before writing tests. State the public interfaces under test and confirm them with the requester; give each seam a one-line note on what it catches and what it misses. No test is written at an unconfirmed seam.
- Integration tests exercise the real boundary. In
<app>that means the wired mux over fakes (no database) or the container-backed suite (make test-int), with fixtures that are explicit about which layer they stand in for. - No fabricated results: never claim a test passes without running it, and never assert on a behaviour the test does not actually exercise.
- Leave the suite green at the end of every slice: a red test in the tree is a broken contract, not a to-do.
Research References
| Claim | Source | Year | Link |
| Red-green loop, seam agreement, anti-patterns (implementation-coupled, tautological, horizontal slicing) | skills/engineering/tdd/SKILL.md (upstream, MIT) | 2026 | local file |
<app> test layers and commands | docs/architecture/11-testing-and-ci.md | n/a | local file |
Output Format
Raw structured prose, not a code fence:
### <app> tdd, <change in one line>
Seams under test (agreed): <seam> -> catches <x>, misses <y>
Slice 1: test <file>:<name> -> red: <failure> -> green: <implementation> -> <command run>: <result>
Slice 2: test <file>:<name> -> red: <failure> -> green: <implementation> -> <command run>: <result>
Integration coverage: <what runs against the real boundary>
Suite state: <command> -> <result>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.

