AI Coding Prompt Templates & Guide
Turn vague feature requests into deterministic, production-ready specifications for AI coding assistants.
Open Interactive Prompt Maker →Recommended Prompt Formula
[Goal & Behavior] + [Tech Stack & File Paths] + [Constraints & Security Rules] + [Tests / Verification]Ready-to-Use Prompt Templates
Next.js API Endpoint + Validation
Create a Next.js Pages Router API handler at pages/api/feedback.js that accepts POST JSON {email, message}, validates email format and message length (10-1000 chars), strips HTML tags, handles errors with clear status codes, and includes unit test cases.Refactor for Accessibility & Performance
Audit this React component for keyboard navigation, semantic landmarks, unnecessary re-renders, and mobile viewport overflow at 375px. Preserve existing dark theme styles and explain each change.