Loading...
Loading...
Implement the minimal code needed to make failing tests pass in the TDD green phase.
npx skill4agent add sickn33/antigravity-awesome-skills tdd-workflows-tdd-green
### 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