A useful prompt contract
AI-generated
A strong prompt usually states:
- outcome and audience;
- necessary context;
- constraints and approval boundaries;
- required evidence and output format.
State each instruction once. Keep examples when they encode a real product rule or repair a measured failure; remove decorative prose and repeated reminders.
Summarize the incident for an engineering manager.
Use only the attached timeline. Lead with impact and current status, then list
the three most important contributing factors and the next owner/action/date.
If a fact is missing, say "unknown". Use at most 180 words.
Grounding and uncertainty
AI-generated
- Separate instructions from untrusted documents or user-supplied content.
- Require evidence and define what to do when sources disagree or are incomplete.
- Keep authorization, secrets, calculations, and strict validation in code.
Improve with evaluations
AI-generated
Keep reviewed examples, change one prompt element at a time, and rerun the same evaluation. Version production prompts; validate machine-readable output against a schema.
Further reading: OpenAI prompt engineering and evaluation best practices.