The Anatomy of a Good Prompt
The 5-Part Prompt Template
5. **Edge cases**: What about error states?
Example: Bad vs Good
**Bad**: "Make a login form"
**Good**: "I'm building a Next.js 15 app with Tailwind. Create a login form that has email/password validation, inline error messages, loading state on submit, server actions, accessible labels, and mobile-responsive."