Be explicit: state the role, task, audience, constraints, and the exact output format.
Give examples (few-shot) that cover edge cases, and show the desired output structure.
Separate instructions from data using delimiters or tags, so untrusted text is clearly marked as content.
Break complex tasks into steps or chained prompts, and give the model permission to say "I don't know".
Version prompts, test them against an evaluation set, and track regressions whenever the prompt or model changes.
Loading…