tdd
Skill3 starsChanged 4 months agoMITView on GitHub
Test-Driven Development with built-in completion gate — write failing test, watch it fail, write minimal code to pass, verify with evidence before claiming success
193 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- gaia-react/gaiatheir own version, first seen Oct 5, 2026
- uzairansaruzi/p3-stacktheir own version, first seen Oct 5, 2026
Used with
Projects with it also use make-bot-ui, Poteto Mode 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.
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 8 projects that use this
jtarorehSkillPoteto Mode
poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.
Also in 5 projects that use this
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 7 projects that use this
TheOnlyFusionCubeSkillprinciple-attack-the-premise
Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.
Also in 11 projects that use this
TheOnlyFusionCubeSkillprinciple-test-behavior-not-implementation
Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.
Also in 11 projects that use this
shreyT19Skillprinciple-laziness-protocol
Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion and the smallest change that solves the problem.
Also in 22 projects that use this
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- parcadei/Continuous-Claude-v3★ 3.9k21% same
- itseffi/agentic-os★ 11523% same
- AbdurRafay2004/handoff★ 411% same
- Guild-Agents/guild★ 424% same
- aboio-labs/aboio-skills★ 211% same
Wrote their own version · 188
- mattpocock/skills★ 335ksame name
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- open-metadata/OpenMetadata★ 15ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- crbnos/carbon★ 2.7ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- backnotprop/pstack★ 991same name
- kdlbs/kandev★ 899same name
- codewithmukesh/dotnet-claude-kit★ 750same name
178 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.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- imlazySkill
- imlazy-api-designSkill
- imlazy-backendSkill
- imlazy-bootstrapSkill
- brainstormingSkill
- code-reviewSkill
- debuggingSkill
- imlazy-evalSkill
- imlazy-finish-branchSkill
- imlazy-frontendSkill
- learnSkill
- parallel-agentsSkill
- imlazy-planningSkill
- imlazy-receive-reviewSkill
- imlazy-request-reviewSkill
- imlazy-routerSkill
- imlazy-securitySkill
- imlazy-standardsSkill
- imlazy-strategic-saveSkill
- imlazy-subagentsSkill
- imlazy-verifySkill
- imlazy-wordpressSkill
- worktreesSkill
- imlazy-write-plansSkill
- imlazy-write-skillsSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 177 edited versions we read keep these.
9
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 10
Write the test first. Watch it fail.
- Distinctive: line 12
Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.
- Distinctive: line 22
Write code before the test?
- Distinctive: line 26
Red: Write a failing test. Verify it fails for the right reason (feature missing, not a typo).
- Distinctive: line 28
Green: Write the simplest code to pass the test.
- Distinctive: line 101
Before marking work complete:
- Distinctive: line 118
Read: check full output, count failures, confirm exit code.
- Distinctive: line 120
If NO: state actual status with evidence.
- Distinctive: line 121
If YES: state claim WITH the evidence.
- Very specific: line 130
Escalation context: If invoked because a Quick-tier task failed its completion gate, invoke Skill(imlazy-learn) to record the …
“Common” is measured: kept by at least 6 in 10 of the 177 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
Overview
Write the test first. Watch it fail. Write minimal code to pass.
Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.
Violating the letter of the rules is violating the spirit of the rules.
The Iron Law
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRSTWrite code before the test? Delete it. Start over. No exceptions.
Red-Green-Refactor
Red: Write a failing test. Verify it fails for the right reason (feature missing, not a typo). One behavior, clear name, real code (no mocks unless unavoidable).
Green: Write the simplest code to pass the test. Do not add features, refactor nearby code, or "improve" beyond what the test requires.
Refactor: Clean up after green only. Remove duplication, improve names, extract helpers. Keep tests green. Don't add behavior.
Repeat with the next failing test for the next feature.
Good test vs bad test
Good:
test('retries failed operations 3 times', async () => {
let attempts = 0;
const operation = () => { attempts++; if (attempts < 3) throw new Error('fail'); return 'success'; };
const result = await retryOperation(operation);
expect(result).toBe('success');
expect(attempts).toBe(3);
});Clear name, tests real behavior, one thing.
Bad:
test('retry works', async () => {
const mock = jest.fn().mockRejectedValueOnce(new Error()).mockResolvedValueOnce('success');
await retryOperation(mock);
expect(mock).toHaveBeenCalledTimes(3);
});Vague name, tests mock not code.
Example: Bug Fix
Bug: Empty email accepted
// RED: Write failing test
test('rejects empty email', async () => {
const result = await submitForm({ email: '' });
expect(result.error).toBe('Email required');
});
// Verify RED: run test, confirm FAIL with "expected 'Email required', got undefined"
// GREEN: Minimal implementation
function submitForm(data) {
if (!data.email?.trim()) return { error: 'Email required' };
// ...
}
// Verify GREEN: run test, confirm PASSCommon rationalizations — stop
| Excuse | Reality |
| "Too simple to test" | Simple code breaks. Test takes 30 seconds. |
| "I'll test after" | Tests after pass immediately — proves nothing. |
| "Tests after achieve same goals" | Tests-first: "what SHOULD this do?" Tests-after: "what DOES this do?" |
| "Already manually tested" | Manual is ad-hoc. Can't re-run. No record. |
| "Deleting hours of work is wasteful" | Sunk cost. Untested code is technical debt. |
| "Test hard = design unclear" | Listen: hard to test = hard to use. Simplify. |
When stuck
| Problem | Solution |
| Don't know how to test | Write the wished-for API first. Assertion first. |
| Test too complicated | Design too complicated. Simplify the interface. |
| Must mock everything | Code too coupled. Use dependency injection. |
Verification checklist
Before marking work complete:
- Every new function/method has a test
- Watched each test fail before implementing
- Each test failed for the expected reason (feature missing, not typo)
- Wrote minimal code to pass each test
- All tests pass, output pristine (no warnings)
- Tests use real code (mocks only if unavoidable)
Can't check all boxes? You skipped TDD. Start over.
Completion Gate
Before claiming completion or moving to the next task:
- Identify: what command proves the work is done? (test suite, build,
git diff) - Run: execute it now, in this message.
- Read: check full output, count failures, confirm exit code.
- Verify: does output confirm the claim?
- If NO: state actual status with evidence. Do not claim success.
- If YES: state claim WITH the evidence.
| Claim | Requires |
| Tests pass | Test command output: 0 failures |
| Build succeeds | Build command: exit 0 |
| Bug fixed | Test for original symptom: passes |
| Agent completed | Check VCS diff — verify changes exist |
Escalation context: If invoked because a Quick-tier task failed its completion gate, invoke Skill(imlazy-learn) to record the misclassification (predicted=quick, actual=standard, task summary ≤50 chars) before proceeding. Then continue with TDD on the task — do not redo work already done correctly in the Quick attempt.
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.

