Prompt Engineering 101
Forget tricks. There are seven core moves. Master these and you'll outperform most "prompt engineers."
The seven moves
- Be specific about the output format. Don't say "summarize this" — say "summarize this in 3 bullet points, each under 15 words."
- Give examples (few-shot). Two or three input→output examples beats any amount of explanation.
- State the role. "You are a senior financial analyst." gives the model a persona to perform.
- Decompose. Break complex tasks into steps. Ask the model to "think step by step" or use explicit numbered subtasks.
- Show, don't tell. Paste an example of "good" — the model will reverse-engineer it.
- Constrain. "Reply in valid JSON matching this schema: {...}" cuts hallucinations dramatically.
- Iterate. Your first prompt is a draft. Refine based on the actual output.
A complete template
ROLE: You are an experienced [persona].
TASK: [single sentence].
INPUT: [the data].
OUTPUT FORMAT:
- [constraint 1]
- [constraint 2]
EXAMPLES:
Input: ...
Output: ...
Try this template on any task in the Playground. The improvement over a one-liner is usually dramatic.