
Tdd Workflow
This is a structured reference for Claude to follow test-driven development's RED-GREEN-REFACTOR cycle. It walks through the three phases with concrete rules: write a failing test, implement just enough code to pass it, then refactor while keeping tests green. The AAA pattern (Arrange-Act-Assert) and three laws of TDD are laid out clearly, which is helpful if you want Claude to write tests before code or help enforce discipline around minimal implementations. The anti-patterns section is a nice touch. It's basically a cheat sheet to keep TDD workflows consistent, though you'll still need to guide Claude on what specific behavior to test first.
- skills.sh installs
- 913
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill tdd-workflow --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- Categories
- Testing & QA, Automation & Workflows
- First seen
- May 16, 2026
More from sickn33/antigravity-awesome-skills
All 708- Testing Patterns908
- Performance Profiling893
- Shopify Apps887
- Concise Planning879
- Code Documentation Code Explain874
- Flutter Expert873
- Security Audit863
- Autonomous Agent Patterns858
- Frontend Ui Dark Ts858
- Kubernetes Architect858
- Backend Security Coder852
- Seo Audit852
- Rag Engineer846
- Computer Use Agents845
- Twilio Communications844
- Ai Product843
- Javascript Mastery843
- Skill Creator838
- Stripe Integration835
- Agent Tool Builder826
- Database Architect826
- Api Design Principles824
- Planning With Files824
- Agent Evaluation815
Recommended
More Testing & QA3
android-testingnew-silvermoon/awesome-android-agent-skillsComprehensive testing strategy involving Unit, Integration, Hilt, and Screenshot tests.869skills.sh installs
4
browser-testruvnet/rufloUI test recipe -- composes browser-record (capture) + browser-replay (verify) so every test produces a replayable RVF artifact, not an ephemeral run756skills.sh installs
6
visual-regression-testingaj-geddes/useful-ai-promptsDetect unintended visual changes in UI by comparing screenshots across versions. Use for visual regression, screenshot diff, Percy, Chromatic, UI testing, and v731skills.sh installs