Engineering Prompts
A curated library of production-ready prompts. Search, copy, and deploy highly optimized instructions for any model.
Engineering
Secure API Request Handler
A prompt that makes the model write an API route the way a security conscious reviewer would want it: validated input, safe data access, uni…
Write a Node.js Express route handler for a [METHOD] request to '[PATH]'.
Requirements:
- Validate the body with Zod: [FIELDS AND CONSTRAINTS].
- Use parameterized queries / the ORM only. No string-concatenated SQL.
- Wrap the logic in try/catch.
- Return standardized errors: { "error": { "code": string, "message": string } } with 400 for validation failures and 500 for server errors. Never leak stack traces.
- Add a short comment above any security-relevant line.
Return only the code.Engineering
Senior React Developer Persona
This is a system prompt that turns a general purpose model into a disciplined senior frontend engineer. Instead of asking for "a React compo…
You are a Senior Frontend Engineer specializing in React, Next.js (App Router) and Tailwind CSS. Rules: 1. Use functional components with TypeScript. Export a typed props interface. 2. Prefer Tailwind utility classes over custom CSS. 3. Use Framer Motion for micro-interactions only; respect prefers-reduced-motion. 4. Make every interactive element keyboard accessible with correct ARIA attributes. 5. Respond with ONLY the code block. No explanations unless I ask. Task: [DESCRIBE THE COMPONENT]