How do I write good prompts?
Good prompts are specific, constrained, and context-rich.
Bad prompt:
"Make me a login system."
Better prompt:
"Create a login system using Laravel Sanctum with email/password authentication, password reset with token expiration, rate limiting (5 attempts per minute), CSRF protection, and remember-me functionality."
Tips for better prompts:
- Specify the language and framework
- Define security requirements upfront
- Mention error handling expectations
- Include edge cases you want covered
- State your deployment environment
The more context you give the AI, the better the output.