{"id":"6b188a87-74aa-42df-abba-fa34707cac4e","shortId":"GVNpCA","kind":"skill","title":"tdd-workflows-tdd-green","tagline":"Implement the minimal code needed to make failing tests pass in the TDD green phase.","description":"# Green Phase: Simple function\ndef product_list(request):\n    products = Product.objects.all()\n    return JsonResponse({'products': list(products.values())})\n\n# Refactor: Class-based view\nclass ProductListView(View):\n    def get(self, request):\n        products = Product.objects.all()\n        return JsonResponse({'products': list(products.values())})\n\n# Refactor: Generic view\nclass ProductListView(ListView):\n    model = Product\n    context_object_name = 'products'\n```\n\n### Express Patterns\n\n**Inline → Middleware → Service Layer:**\n```javascript\n// Green Phase: Inline logic\napp.post('/api/users', (req, res) => {\n  const user = { id: Date.now(), ...req.body };\n  users.push(user);\n  res.json(user);\n});\n\n// Refactor: Extract middleware\napp.post('/api/users', validateUser, (req, res) => {\n  const user = userService.create(req.body);\n  res.json(user);\n});\n\n// Refactor: Full layering\napp.post('/api/users',\n  validateUser,\n  asyncHandler(userController.create)\n);\n```\n\n## Use this skill when\n\n- Moving from red to green in a TDD cycle\n- Implementing minimal behavior to satisfy tests\n- You want to keep implementation intentionally simple\n\n## Do not use this skill when\n\n- You are refactoring for design or performance\n- Tests are already passing and you need new requirements\n- You need a full architectural redesign\n\n## Instructions\n\n1. Review failing tests and identify the smallest fix.\n2. Implement the minimal change to pass the next test.\n3. Run tests after each change to confirm progress.\n4. Record shortcuts or debt for the refactor phase.\n\n## Safety\n\n- Avoid bypassing tests to make them pass.\n- Keep changes scoped to the failing behavior only.\n\n## Resources\n\n- `resources/implementation-playbook.md` for detailed patterns and examples.\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","workflows","green","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding"],"capabilities":["skill","source-sickn33","skill-tdd-workflows-tdd-green","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-workflows-tdd-green","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 (2,073 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.823Z","embedding":null,"createdAt":"2026-04-18T21:45:55.354Z","updatedAt":"2026-04-22T06:51:58.823Z","lastSeenAt":"2026-04-22T06:51:58.823Z","tsv":"'/api/users':79,95,109 '1':168 '2':177 '3':187 '4':196 'alreadi':154 'app.post':78,94,108 'architectur':165 'ask':261 'asynchandl':111 'avoid':206 'base':39 'behavior':128,219 'boundari':269 'bypass':207 'chang':181,192,214 'clarif':263 'class':38,41,58 'class-bas':37 'clear':236 'code':9 'confirm':194 'const':82,99 'context':63 'criteria':272 'cycl':125 'date.now':85 'debt':200 'def':25,44 'describ':240 'design':149 'detail':224 'environ':252 'environment-specif':251 'exampl':227 'expert':257 'express':67 'extract':92 'fail':13,170,218 'fix':176 'full':106,164 'function':24 'generic':56 'get':45 'green':5,19,21,74,121 'id':84 'identifi':173 'implement':6,126,136,178 'inlin':69,76 'input':266 'instruct':167 'intent':137 'javascript':73 'jsonrespons':32,51 'keep':135,213 'layer':72,107 'limit':228 'list':27,34,53 'listview':60 'logic':77 'make':12,210 'match':237 'middlewar':70,93 'minim':8,127,180 'miss':274 'model':61 'move':117 'name':65 'need':10,158,162 'new':159 'next':185 'object':64 'output':246 'pass':15,155,183,212 'pattern':68,225 'perform':151 'permiss':267 'phase':20,22,75,204 'product':26,29,33,48,52,62,66 'product.objects.all':30,49 'productlistview':42,59 'products.values':35,54 'progress':195 'record':197 'red':119 'redesign':166 'refactor':36,55,91,105,147,203 'req':80,97 'req.body':86,102 'request':28,47 'requir':160,265 'res':81,98 'res.json':89,103 'resourc':221 'resources/implementation-playbook.md':222 'return':31,50 'review':169,258 'run':188 'safeti':205,268 'satisfi':130 'scope':215,239 'self':46 'servic':71 'shortcut':198 'simpl':23,138 'skill':115,143,231 'skill-tdd-workflows-tdd-green' 'smallest':175 'source-sickn33' 'specif':253 'stop':259 'substitut':249 'success':271 'task':235 'tdd':2,4,18,124 'tdd-workflows-tdd-green':1 'test':14,131,152,171,186,189,208,255 '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':244 'use':113,141,229 'user':83,88,90,100,104 'usercontroller.create':112 'users.push':87 'userservice.create':101 'valid':254 'validateus':96,110 'view':40,43,57 'want':133 'workflow':3","prices":[{"id":"82010c53-6cb9-4dd9-9242-bc73840b85c0","listingId":"6b188a87-74aa-42df-abba-fa34707cac4e","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:55.354Z"}],"sources":[{"listingId":"6b188a87-74aa-42df-abba-fa34707cac4e","source":"github","sourceId":"sickn33/antigravity-awesome-skills/tdd-workflows-tdd-green","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/tdd-workflows-tdd-green","isPrimary":false,"firstSeenAt":"2026-04-18T21:45:55.354Z","lastSeenAt":"2026-04-22T06:51:58.823Z"}],"details":{"listingId":"6b188a87-74aa-42df-abba-fa34707cac4e","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"tdd-workflows-tdd-green","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":"81cb1d61a8e387b1356cb8b0f10cd7682c9cb78d","skill_md_path":"skills/tdd-workflows-tdd-green/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/tdd-workflows-tdd-green"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"tdd-workflows-tdd-green","description":"Implement the minimal code needed to make failing tests pass in the TDD green phase."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/tdd-workflows-tdd-green"},"updatedAt":"2026-04-22T06:51:58.823Z"}}