tdd
Skill7 starsChanged 6 months agoMITView on GitHub
TDD bug fix: write the smallest failing test first, then the fix. Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.
193 other projects use a version of this, 13 of them edited.
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/karanagentskillsedited, first seen Nov 29, 2026
- karanmrn/kstackedited, 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 · 13
- trpc/trpc★ 41k98% same
- backnotprop/pstack★ 5.4k98% same
- jtaroreh/agystack★ 14289% same
- uzairansaruzi/p3-stack★ 12698% same
- dsebban/skills★ 8298% same
- overextended/skills★ 2279% same
- painhardcore/pstack★ 2299% same
- creedants/pstack-t3★ 1999% same
- mariusflorescu/pstack-t3★ 1398% same
- Scino/fstack★ 1396% same
3 more not listed
Wrote their own version · 180
- mattpocock/skills★ 335ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 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
- GreyDGL/PentestGPT★ 16ksame name
170 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 repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmark-checklistSkill
- blast-radiusSkill
- cavemanSkill
- code-qualitySkill
- composition-patternsSkill
- correctSkill
- create-verification-skillSkill
- docker-expertSkill
- eea-design-systemSkill
- engineering-principlesSkill
- grill-meSkill
- handoffSkill
- jenkins-pipelineSkill
- plone-backend-developerSkill
- plone-frontend-developerSkill
- quality-fixesSkill
- react-best-practicesSkill
- react-native-skillsSkill
- react-view-transitionsSkill
- security-auditSkill
- show-me-your-workSkill
- technical-writingSkill
- testingSkill
- unslopSkill
- volto-cypress-writerSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 189 edited versions we read keep these.
12
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 8
When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code.
- Distinctive: line 15
Choose the narrowest executable check: Prefer the closest unit, component, integration, or regression test already used for that codepath.
- Distinctive: line 16
Write the failing test first: Add the smallest focused test that would have caught the bug.
- Distinctive: line 23
Use the closest executable regression check instead: a targeted script, manual reproduction command, browser automation, snapshot …
- Distinctive: line 25
Prefer no new test over a bad test.
- Distinctive: line 29
Do not change tests merely to match a wrong implementation.
- Distinctive: line 30
Do not weaken existing assertions unless the expected behavior has genuinely changed and the reason is clear.
- Distinctive: line 31
Keep the regression test focused on the bug.
- Distinctive: line 32
If the bug is flaky, make the test deterministic where possible and document the signal being locked down.
- Distinctive: line 33
If the bug exposes a broader class of failures, first land the focused regression path, then consider additional sibling coverage.
- Distinctive: line 41
If failing-before evidence could not be demonstrated, state why and describe the closest regression check used instead.
- Distinctive: line 53
If the project's documented test command cannot run the single new test cheaply, that is a signal to use the closest executable check …
- Very specific: line 54
Keep the failing-then-passing evidence in the PR body as command and output, per the technical-writing skill.
“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
TDD Bug Fix
When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code. The goal is a focused regression test that fails before the fix and passes after it.
Do not force a test when it would be impractical. If the available test would require broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, vague reproduction steps, or large unrelated fixture churn, skip adding a new test and use the closest useful verification instead.
Workflow
- Understand the bug. Identify the intended behavior, current behavior, affected path, and smallest observable reproduction.
- Choose the narrowest executable check. Prefer the closest unit, component, integration, or regression test already used for that codepath. If no practical test path is obvious, do not create one from scratch just to satisfy the workflow.
- Write the failing test first. Add the smallest focused test that would have caught the bug. The test should encode intended behavior, not mirror the current implementation.
- Run the new test before fixing. Confirm it fails for the intended reason. If it passes or fails for an unrelated reason, correct the test or reproduction before editing the implementation.
- Fix the bug. Make the smallest production change that satisfies the intended behavior while preserving nearby contracts.
- Rerun the regression test. Confirm the test now passes.
If a Failing Test Is Impractical
Use the closest executable regression check instead: a targeted script, manual reproduction command, browser automation, snapshot comparison, log assertion, or focused integration check.
Prefer no new test over a bad test. A bad test is one that mostly tests mocks, encodes current implementation details, depends on timing or unrelated global state, needs expensive infrastructure for a small fix, or would be deleted immediately after proving the fix.
Guardrails
- Do not change tests merely to match a wrong implementation.
- Do not weaken existing assertions unless the expected behavior has genuinely changed and the reason is clear.
- Keep the regression test focused on the bug. Avoid broad fixture churn or unrelated coverage expansion.
- If the bug is flaky, make the test deterministic where possible and document the signal being locked down.
- If the bug exposes a broader class of failures, first land the focused regression path, then consider additional sibling coverage.
Final Response
Report the evidence, not just the outcome:
- Name the failing-before test or executable check and the failure it produced.
- Name the passing-after test run and any nearby validation performed.
- If failing-before evidence could not be demonstrated, state why and describe the closest regression check used instead.
<!-- BEGIN EEA-OVERRIDES -->EEA-Specific Overrides
<!-- EEA-Overrides-Version: 1.0 --><!-- Last-Sync: 2026-11-18 -->EEA test runners
- "The closest test already used for that codepath" means the project's documented test command, which for most EEA projects is a Docker-based command per the
testingskill's parity contract. Add the regression test where the project's suite already lives; discover the layout per theplone-backend-developer/plone-frontend-developerskills rather than assuming paths. - If the project's documented test command cannot run the single new test cheaply, that is a signal to use the closest executable check (upstream skill, "If a Failing Test Is Impractical" section) instead of building a second, non-Docker test path.
- Keep the failing-then-passing evidence in the PR body as command and output, per the
technical-writingskill.
<!-- END EEA-OVERRIDES --><!-- Merged Build: upstream SKILL.md + EEA-OVERRIDES.md --><!-- Auto-generated by scripts/build.sh - DO NOT EDIT DIRECTLY --><!-- Source: https://github.com/eea/eea.agent.skills -->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.

