
Tdd Workflow
Test-first development guide covering the RED-GREEN-REFACTOR cycle, minimal-code rules, and test prioritization.
- CCM score
- 45 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 50.3K
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers the RED, GREEN, and REFACTOR phases with rules for failing tests, minimal implementation, and green-only refactoring
- Includes the Three Laws of TDD, the AAA test structure, and a priority order of happy path, errors, edges, and performance
- Lists anti-patterns such as skipping the RED phase, writing tests after code, and testing implementation over behavior
- Designed for new features, bug fixes, and complex logic, with guidance to skip TDD for exploratory or UI layout work
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill tdd-workflow -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
TDD Workflow
Write tests first, code second.
1. The TDD Cycle
π΄ RED β Write failing test
β
π’ GREEN β Write minimal code to pass
β
π΅ REFACTOR β Improve code quality
β
Repeat...
2. The Three Laws of TDD
- Write production code only to make a failing test pass
- Write only enough test to demonstrate failure
- Write only enough code to make the test pass
3. RED Phase Principles
What to Write
| Focus | Example |
|---|---|
| Behavior | "should add two numbers" |
| Edge cases | "should handle empty input" |
| Error states | "should throw for invalid data" |
RED Phase Rules
- Test must fail first
- Test name describes expected behavior
- One assertion per test (ideally)
4. GREEN Phase Principles
Minimum Code
| Principle | Meaning |
|---|---|
| YAGNI | You Aren't Gonna Need It |
| Simplest thing | Write the minimum to pass |
| No optimization | Just make it work |
GREEN Phase Rules
- Don't write unneeded code
- Don't optimize yet
- Pass the test, nothing more
5. REFACTOR Phase Principles
What to Improve
Details
- Repository
- github.com/sickn33/agentic-awesome-skills
- Category
- Testing & QA
- First seen
- May 16, 2026
More from sickn33/agentic-awesome-skills
All 682- Rag Engineer1K
- Daily News Report1K
- Api Design Principles1K
- Kubernetes Architect1K
- Performance Profiling1K
- Database Architect1K
- Shopify Apps1K
- Code Reviewer1K
- Seo Audit1K
- Code Documentation Code Explain1K
- Javascript Mastery1K
- Stripe Integration1K
- Twilio Communications1K
- Agent Evaluation994
- Skill Creator988
- Bash Pro985
- Autonomous Agent Patterns979
- Voice Ai Development974
- Agent Tool Builder973
- Codebase Cleanup Refactor Clean972
- Computer Use Agents972
- Quant Analyst972
- Ai Product970
- Outlook Calendar Automation967
Similar to Tdd Workflow
More Testing & QA
test-driven-developmentSkillsickn33/agentic-awesome-skills1.5K installsTest-first workflow that guides feature and bug-fix work through failing tests, minimal code, and refactoring.
tddSkillpproenca/dot-skills426 installsStructured guide of 42 test-driven development rules for red-green-refactor workflow and test design.
tdd-orchestratorSkillsickn33/agentic-awesome-skills334 installsExpert TDD orchestrator that enforces red-green-refactor discipline and coordinates multi-agent test workflows across teams.
dev-practicesPluginspences10/claude-code-toolkit37 starsDevelopment practices: TDD workflow with red-green-refactor
tdd-guideSkillalirezarezvani/claude-skills1.1K installsTest-first development skill that generates tests, mocks, and coverage analysis across Jest, Pytest, JUnit, Vitest, and Mocha.