tdd-cycle
Skill2 starsChanged 5 months agoApache-2.0View on GitHub
Enforces red→green→refactor for any implementation work. Use before writing or modifying any source file under apps/ or packages/. Refuses to let implementation code be written without a failing test shown first.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Hakkadaikon/hymmetheir own version, first seen Oct 26, 2026
- modimihir07/agentic-ostheir own version, first seen Oct 25, 2026
- kitloomlk-stack/testing-debugging-kittheir own version, first seen Oct 15, 2026
- Luis85/agentic-workflowtheir own version, first seen May 9, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- modimihir07/agentic-os★ 209same name
- Hakkadaikon/hymme★ 0same name
- kitloomlk-stack/testing-debugging-kit★ 0same name
- Luis85/agentic-workflow★ 0same name
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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- context-syncSkill
- deploy-sanitySkill
- engine-adapter-scaffoldSkill
- file-issueSkill
- ir-schema-guardSkill
- issue-triageSkill
- pick-issueSkill
- reap-staleSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Commit: test: <behavior> (red) — this commit contains ONLY test changes.
- Very specific: line 19
Green: Write the *minimal* implementation that passes.
“Common” is measured: kept by at least 6 in 10 of the 3 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-cycle
The TDD contract (CLAUDE.md) is a hard rule: no source file is created or modified without a failing test committed first, in the same or a preceding commit.
The cycle
- Red. From the issue's acceptance criteria, write the smallest test that captures
the next behavior. Run it:
npm run test -w <package> -- --run <file>.- It must FAIL, and fail for the right reason — an assertion about missing behavior, not a typo/import error you didn't intend. Read the failure output and say in one line why this is the right failure.
- Commit:
test: <behavior> (red)— this commit contains ONLY test changes.
- Green. Write the minimal implementation that passes. Run the test. Run the
whole package suite. Commit:
feat|fix: <behavior>. - Refactor. With green as a safety net, remove duplication, tighten names/types.
Suite stays green. Commit:
refactor: …(only if you actually refactored).
Refusals (do not proceed if…)
- You are about to Write/Edit product source and cannot point to the failing test run output from this session → stop, write the test. (The tdd-guard hook blocks this mechanically; do not bypass it.)
- The test passes on first run → it isn't testing the new behavior. Fix the test.
- The test fails for the wrong reason (bad import, syntax) → fix the test until the failure is the behavioral assertion.
Evidence
The PR body must cite the red commit sha and the green commit sha (PR template). The reviewer gate rejects source diffs that ship without test diffs.
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.

