tdd-workflows-tdd-green
Implement the minimal code needed to make failing tests pass in the TDD green phase.
npx skills add sickn33/agentic-awesome-skills --skill tdd-workflows-tdd-green --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Green Phase: Simple function def product_list(request): products = Product.objects.all() return JsonResponse({'products': list(products.values())}) # Refactor: Class-based view class ProductListView(View): def get(self, request): products = Product.objects.all() return JsonResponse({'products': list(products.values())}) # Refactor: Generic view class ProductListView(ListView): model = Product context_object_name = 'products' ``` ### Express Patterns **Inline → Middleware → Service Layer:** ```javascript // Green Phase: Inline logic app.post('/api/users', (req, res) => { const user = { id: Date.now(), ...req.body }; users.push(user); res.json(user); }); // Refactor: Extract middleware app.post('/api/users', validateUser, (req, res) => { const user = userService.create(req.body); res.json(user); }); // Refactor: Full layering app.post('/api/users', validateUser, asyncHandler(userController.create) ); ``` ## Use this skill when - Moving from red to green in a TDD cycle - Implementing minimal behavior to satisfy tests - You want to keep implementation intentionally simple ## Do not use this skill when - You are refactoring for design or performance - Tests are already passing and you
- Use this skill when
- Do not use this skill when
- Instructions
- Safety
- Resources
- Limitations
What does the tdd-workflows-tdd-green skill do?
Implement the minimal code needed to make failing tests pass in the TDD green phase.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill tdd-workflows-tdd-green --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.