tdd-workflow
Skill151 starsChanged 8 months agoMITView on GitHub
Use this skill when the user explicitly asks for TDD or a tests-first workflow, or when developing a new feature with a test coverage requirement. Provides a structured red-green-refactor workflow with unit, integration, and E2E test guidance.
78 other projects use a version of this, 28 of them edited.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- mnzralee/claude-multi-agent-architecturetheir own version, first seen Oct 3, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- imMamdouhaboammar/tiktok-growth-automation-meshtheir own version, first seen Oct 1, 2026
- smitshivalkar-spectims4567/hsj-agent-skillstheir own version, first seen Sep 29, 2026
Used with
Projects with it also use kotlin-testing, ralphinho-rfc-pipeline and 9 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.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
InfopibeSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 10 projects that use this
mryeastcodeSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 5 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 12 projects that use this
InfopibeSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 12 projects that use this
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 8 projects that use this
- +2 more from Infopibe
- +1 more from mryeastcode
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 28
- WorldFlowAI/everything-claude-code★ 4k21% same
- loulanyue/awesome-claude-notes★ 27221% same
- tpavanipradeep/everything-claude-code★ 13421% same
- hellangleZ/burn-in-cceverywhere-ralph★ 11221% same
- cohen-liel/hivemind★ 11021% same
- Jamkris/everything-gemini-code★ 8721% same
- myths-labs/muse★ 3521% same
- joneqian/claude-skills-suite★ 3221% same
- Infopibe/everything-claude-code★ 821% same
- zero-click/zero-ratchet★ 814% same
18 more not listed
Wrote their own version · 50
- xu-xiang/everything-claude-code-zh★ 2ksame name
- zhukunpenglinyutong/ai-max★ 335same name
- ab604/claude-code-r-skills★ 205same name
- templetongroup/radiant★ 113same name
- travisjneuman/.claude★ 101same name
- MRCalderon3D/everything-game-dev-code★ 90same name
- drvoss/everything-copilot-cli★ 47same name
- codelably/harmony-claude-code★ 43same name
- talayash/agentrium★ 42same name
- wolverin0/claude-skills★ 41same name
40 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backend-patternsSkill
- clickhouse-ioSkill
- cloudnative-writing-baselineSkill
- coding-standardsSkill
- eval-harnessSkill
- frontend-patternsSkill
- project-guidelines-exampleSkill
- prompt-patternsSkill
- security-reviewSkill
- strategic-compactSkill
- verification-loopSkill
- web-content-extractionSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 72 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
Use the project's test runner.
- Distinctive: line 62
Write minimal code to make tests pass.
- Distinctive: line 79
Use the project's coverage tooling.
- Distinctive: line 88
Write Tests First: - Always TDD
- Distinctive: line 94
Test Error Paths: - Not just happy paths
- Distinctive: line 96
Clean Up After Tests: - No side effects
- Distinctive: line 102
All tests passing (green)
- Distinctive: line 103
No skipped or disabled tests
“Common” is measured: kept by at least 6 in 10 of the 72 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 Workflow
This skill provides a structured TDD workflow for projects that adopt tests-first development.
When to Activate
- The user explicitly asks for TDD or tests-first development
- New feature work where test coverage is a stated requirement
- Adding API endpoints or components under a coverage policy
For routine bug fixes or refactors, add focused tests for the changed behavior instead of invoking this full workflow (the /tdd command and tdd-guide agent remain available when you want it explicitly).
Core Principles
1. Tests BEFORE Code
Within this workflow, the default is to write tests first, then implement code to make tests pass.
2. Coverage Guidance
- Coverage target follows the project's own standard (e.g., 80% as a common baseline); scale effort with the size of the change
- Cover relevant edge cases
- Test error scenarios
- Verify boundary conditions
3. Test Types
Unit Tests - Individual functions, utilities, component logic, pure functions, helpers.
Integration Tests - API endpoints, database operations, service interactions, external API calls.
E2E Tests (Playwright) - Critical user flows, complete workflows, browser automation, UI interactions. Applies to web UI projects only.
TDD Workflow Steps
Step 1: Write User Journeys
As a [role], I want to [action], so that [benefit]
Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.Step 2: Generate Test Cases
For each user journey, create comprehensive test cases covering happy paths, edge cases, fallback behavior, and sorting/filtering logic.
Step 3: Run Tests (They Should Fail)
Use the project's test runner. Examples:
npm test # Node.js
pytest # Python
bash tests/run-unit-tests.sh # shell projects
# Tests should fail - we haven't implemented yetStep 4: Implement Code
Write minimal code to make tests pass.
Step 5: Run Tests Again
Re-run the same test command (e.g., npm test, pytest):
npm test
# Tests should now passStep 6: Refactor
Improve code quality while keeping tests green:
- Remove duplication
- Improve naming
- Optimize performance
- Enhance readability
Step 7: Verify Coverage
Use the project's coverage tooling. Examples:
npm run test:coverage # Node.js
pytest --cov # Python
# Verify coverage meets the project's targetBest Practices
- Write Tests First - Always TDD
- One Assert Per Test - Focus on single behavior
- Descriptive Test Names - Explain what's tested
- Arrange-Act-Assert - Clear test structure
- Mock External Dependencies - Isolate unit tests
- Test Edge Cases - Null, undefined, empty, large
- Test Error Paths - Not just happy paths
- Keep Tests Fast - Unit tests < 50ms each
- Clean Up After Tests - No side effects
- Review Coverage Reports - Identify gaps
Success Metrics
- Coverage target met (per project standard, e.g., 80%)
- All tests passing (green)
- No skipped or disabled tests
- Fast test execution (< 30s for unit tests)
- E2E tests cover critical user flows
- Tests catch bugs before production
References
These templates target JavaScript/TypeScript stacks; adapt the structure for other languages.
references/test-templates.md- Unit, integration, E2E, and mocking code templates (JS/TS)references/testing-mistakes.md- Common pitfalls, file organization, coverage config, CI setup (JS/TS)
Remember: Give changed behavior a focused test. Tests are the safety net that enables confident refactoring, rapid development, and production reliability.
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.

