Better AI code usually comes from better context. Name the stack, goal, constraints, input examples, and what should happen when something fails.
A strong build prompt
Describe the feature, the files involved, the expected behavior, the data shape, and the style you want the code to follow.
A strong review prompt
- Check for bugs.
- Check for security issues.
- Check for readability.
- Suggest tests or manual verification steps.