From antigravity-awesome-skills
Implements minimal code changes to pass failing tests in TDD green phase. Provides Django/Python and Express/JavaScript patterns for quick red-to-green transitions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/antigravity-awesome-skills:tdd-workflows-tdd-greenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
def product_list(request):
def product_list(request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})
class ProductListView(View): def get(self, request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})
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)
);
resources/implementation-playbook.md for detailed patterns and examples.npx claudepluginhub sickn33/antigravity-awesome-skills --plugin antigravity-awesome-skillsImplements minimal code to pass failing tests during the TDD green phase, keeping changes scoped to failing behavior only. Includes Django and Express refactoring patterns.
Writes minimal production-quality code to pass failing tests in TDD GREEN phase. Analyzes specs, test mappings, configs, and failing assertions for clean, targeted implementations.
Guides strict Test-Driven Development (Red-Green-Refactor): write failing tests for normal/edge/error cases, minimal code to pass, refactor with checklists. Includes TypeScript example.