tdd-workflow
Skill153 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.
128 other projects use a version of this, 57 of them edited.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codeedited, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
- mahsumaktas/agent-evolution-kittheir own version, first seen Nov 8, 2026
- ControllableModel/SWE-Skills-Benchtheir own version, first seen Nov 8, 2026
- LuisSambrano/antigravity-configtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use brand-discovery, configure-ecc 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.
ysyecustSkillbrand-discovery
Use when a brand needs to discover or articulate its identity through structured multi-session interviews. Covers purpose, positioning, audience, personality, voice, narrative, and founder-brand tension across 8 modules using laddering, 5 Whys, and projective techniques. Produces a resumable session with disk-persisted state and a master brandbook (90_SYNTHESIS.md).
Also in 6 projects that use this
royaluniondesign-sysSkillconfigure-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
junimnjwSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 12 projects that use this
loulanyueSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 10 projects that use this
royaluniondesign-sysSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 16 projects that use this
RojiosSkilldart-flutter-patterns
Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.
Also in 7 projects that use this
Other versions128 projects use a version of this.
Word for word · 0
None found.
Edited · 57
- affaan-m/ECC★ 246k15% same
- loulanyue/awesome-claude-notes★ 27221% same
- cohen-liel/hivemind★ 10821% same
- tpavanipradeep/everything-claude-code★ 10421% same
- mturac/everything-openai-codex★ 8921% same
- mit-network/everything-claude-code★ 7621% same
- Fmarzochi/EGC★ 6113% same
- ysyecust/everything-claude-code★ 4415% same
- myths-labs/muse★ 3821% same
- j7-dev/everything-github-copilot★ 1921% same
47 more not listed
Wrote their own version · 71
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- ab604/claude-code-r-skills★ 202same name
- xenitV1/Antigravity-Workflows★ 130same name
- travisjneuman/.claude★ 106same name
- MRCalderon3D/everything-game-dev-code★ 105same name
- drvoss/everything-copilot-cli★ 48same name
- talayash/agentrium★ 48same name
- wolverin0/claude-skills★ 41same name
61 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 117 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 117 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.

