{"id":"24a2d8e4-a940-44b6-bc8a-0d11243c6be6","shortId":"QzJUnT","kind":"skill","title":"tdd-workflow","tagline":"Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.","description":"# TDD Workflow\n\n> Write tests first, code second.\n\n---\n\n## 1. The TDD Cycle\n\n```\n🔴 RED → Write failing test\n    ↓\n🟢 GREEN → Write minimal code to pass\n    ↓\n🔵 REFACTOR → Improve code quality\n    ↓\n   Repeat...\n```\n\n---\n\n## 2. The Three Laws of TDD\n\n1. Write production code only to make a failing test pass\n2. Write only enough test to demonstrate failure\n3. Write only enough code to make the test pass\n\n---\n\n## 3. RED Phase Principles\n\n### What to Write\n\n| Focus | Example |\n|-------|---------|\n| Behavior | \"should add two numbers\" |\n| Edge cases | \"should handle empty input\" |\n| Error states | \"should throw for invalid data\" |\n\n### RED Phase Rules\n\n- Test must fail first\n- Test name describes expected behavior\n- One assertion per test (ideally)\n\n---\n\n## 4. GREEN Phase Principles\n\n### Minimum Code\n\n| Principle | Meaning |\n|-----------|---------|\n| **YAGNI** | You Aren't Gonna Need It |\n| **Simplest thing** | Write the minimum to pass |\n| **No optimization** | Just make it work |\n\n### GREEN Phase Rules\n\n- Don't write unneeded code\n- Don't optimize yet\n- Pass the test, nothing more\n\n---\n\n## 5. REFACTOR Phase Principles\n\n### What to Improve\n\n| Area | Action |\n|------|--------|\n| Duplication | Extract common code |\n| Naming | Make intent clear |\n| Structure | Improve organization |\n| Complexity | Simplify logic |\n\n### REFACTOR Rules\n\n- All tests must stay green\n- Small incremental changes\n- Commit after each refactor\n\n---\n\n## 6. AAA Pattern\n\nEvery test follows:\n\n| Step | Purpose |\n|------|---------|\n| **Arrange** | Set up test data |\n| **Act** | Execute code under test |\n| **Assert** | Verify expected outcome |\n\n---\n\n## 7. When to Use TDD\n\n| Scenario | TDD Value |\n|----------|-----------|\n| New feature | High |\n| Bug fix | High (write test first) |\n| Complex logic | High |\n| Exploratory | Low (spike, then TDD) |\n| UI layout | Low |\n\n---\n\n## 8. Test Prioritization\n\n| Priority | Test Type |\n|----------|-----------|\n| 1 | Happy path |\n| 2 | Error cases |\n| 3 | Edge cases |\n| 4 | Performance |\n\n---\n\n## 9. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Skip the RED phase | Watch test fail first |\n| Write tests after | Write tests before |\n| Over-engineer initial | Keep it simple |\n| Multiple asserts | One behavior per test |\n| Test implementation | Test behavior |\n\n---\n\n## 10. AI-Augmented TDD\n\n### Multi-Agent Pattern\n\n| Agent | Role |\n|-------|------|\n| Agent A | Write failing tests (RED) |\n| Agent B | Implement to pass (GREEN) |\n| Agent C | Optimize (REFACTOR) |\n\n---\n\n> **Remember:** The test is the specification. If you can't write a test, you don't understand the requirement.\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["tdd","workflow","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-tdd-workflow","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/tdd-workflow","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34460 github stars · SKILL.md body (3,049 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T06:51:58.671Z","embedding":null,"createdAt":"2026-04-18T21:45:53.833Z","updatedAt":"2026-04-22T06:51:58.671Z","lastSeenAt":"2026-04-22T06:51:58.671Z","tsv":"'1':22,47,258 '10':307 '2':41,58,261 '3':66,76,264 '4':120,267 '5':165 '6':202 '7':224 '8':252 '9':269 'aaa':203 'act':215 'action':173,365 'add':87 'agent':314,316,318,324,330 'ai':309 'ai-aug':308 'anti':271 'anti-pattern':270 'applic':359 'area':172 'aren':130 'arrang':210 'ask':403 'assert':116,220,298 'augment':310 'b':325 'behavior':85,114,300,306 'boundari':411 'bug':235 'c':331 'case':91,263,266 'chang':197 'clarif':405 'clear':181,378 'code':20,33,38,50,70,125,155,177,217 'commit':198 'common':176 'complex':185,241 'criteria':414 'cycl':14,25 'data':102,214 'demonstr':64 'describ':112,366,382 'develop':7 'driven':6 'duplic':174 'edg':90,265 'empti':94 'engin':292 'enough':61,69 'environ':394 'environment-specif':393 'error':96,262 'everi':205 'exampl':84 'execut':216,361 'expect':113,222 'expert':399 'exploratori':244 'extract':175 'fail':28,55,108,282,321 'failur':65 'featur':233 'first':19,109,240,283 'fix':236 'focus':83 'follow':207 'gonna':132 'green':12,30,121,148,194,329 'handl':93 'happi':259 'high':234,237,243 'ideal':119 'implement':304,326 'improv':37,171,183 'increment':196 'initi':293 'input':95,408 'intent':180 'invalid':101 'keep':294 'law':44 'layout':250 'limit':370 'logic':187,242 'low':245,251 'make':53,72,145,179 'match':379 'mean':127 'minim':32 'minimum':124,139 'miss':416 'multi':313 'multi-ag':312 'multipl':297 'must':107,192 'name':111,178 'need':133 'new':232 'noth':163 'number':89 'one':115,299 'optim':143,158,332 'organ':184 'outcom':223 'output':388 'over-engin':290 'overview':369 'pass':35,57,75,141,160,328 'path':260 'pattern':204,272,315 'per':117,301 'perform':268 'permiss':409 'phase':78,104,122,149,167,279 'principl':9,79,123,126,168 'priorit':254 'prioriti':255 'product':49 'purpos':209 'qualiti':39 'red':11,26,77,103,278,323 'red-green-refactor':10 'refactor':13,36,166,188,201,333 'rememb':334 'repeat':40 'requir':352,407 'review':400 'role':317 'rule':105,150,189 'safeti':410 'scenario':229 'scope':381 'second':21 'set':211 'simpl':296 'simplest':135 'simplifi':186 'skill':357,373 'skill-tdd-workflow' 'skip':276 'small':195 'source-sickn33' 'specif':339,395 'spike':246 'state':97 'stay':193 'step':208 'stop':401 'structur':182 'substitut':391 'success':413 'task':377 'tdd':2,15,24,46,228,230,248,311 'tdd-workflow':1 'test':5,18,29,56,62,74,106,110,118,162,191,206,213,219,239,253,256,281,285,288,302,303,305,322,336,346,397 'test-driven':4 'thing':136 'three':43 'throw':99 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'treat':386 'two':88 'type':257 'ui':249 'understand':350 'unneed':154 'use':227,355,371 'valid':396 'valu':231 'verifi':221 'watch':280 'work':147 'workflow':3,8,16,363 'write':17,27,31,48,59,67,82,137,153,238,284,287,320,344 'yagni':128 'yet':159","prices":[{"id":"92e7349f-08d7-4b05-88b2-98088df04765","listingId":"24a2d8e4-a940-44b6-bc8a-0d11243c6be6","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:45:53.833Z"}],"sources":[{"listingId":"24a2d8e4-a940-44b6-bc8a-0d11243c6be6","source":"github","sourceId":"sickn33/antigravity-awesome-skills/tdd-workflow","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/tdd-workflow","isPrimary":false,"firstSeenAt":"2026-04-18T21:45:53.833Z","lastSeenAt":"2026-04-22T06:51:58.671Z"}],"details":{"listingId":"24a2d8e4-a940-44b6-bc8a-0d11243c6be6","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"tdd-workflow","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34460,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-22T06:40:00Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"76e016b1e3f7daa28cb6533b7eef99ef7fb67b19","skill_md_path":"skills/tdd-workflow/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/tdd-workflow"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"tdd-workflow","description":"Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/tdd-workflow"},"updatedAt":"2026-04-22T06:51:58.671Z"}}