Loading...
Loading...
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.tdd-workflows-tdd-green is an expert AI persona designed to improve your coding workflow. Implement the minimal code needed to make failing tests pass in the TDD green phase. It provides senior-level context directly within your IDE.
To install the tdd-workflows-tdd-green skill, download the package, extract the files to your project's .cursor/skills directory, and type @tdd-workflows-tdd-green in your editor chat to activate the expert instructions.
Yes, the tdd-workflows-tdd-green AI persona is completely free to download and integrate into compatible Agentic IDEs like Cursor, Windsurf, Github Copilot, and Anthropic MCP servers.
Implement the minimal code needed to make failing tests pass in the TDD green phase.
Download Skill Package.cursor/skills@tdd-workflows-tdd-green in editor chat.Copy the instructions from the panel on the left and paste them into your custom instructions setting.
"Adding this tdd-workflows-tdd-green persona to my Cursor workspace completely changed the quality of code my AI generates. Saves me hours every week."
Developers who downloaded tdd-workflows-tdd-green also use these elite AI personas.
Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.
Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.
Explore our most popular utilities designed for the modern Indian creator.