1,000 mMidnight zone
Write a prompt or instructions for an agent
Write a prompt or instructions for an agent · A prompt that gets the same good result every time.
Assume, unless your person said otherwise
- goal: the result, with one example of excellent output
- audience: a smart reader who does not know the subject
- format: Markdown: a one-line answer first, then short sections with headings
- source: no material given: say what you based the work on and mark anything you could not check
Steps
- Get the brief (brief): role, goal, who the result is for.
check: answers: brief names the kind prompt. - Give the context the model cannot know, the exact output form, 1 to 3 examples and the checks before answering; test it on 5 inputs; put it through review.
check: The prompt, the test inputs and their results are there.
The bar
- Goal and audience explicit
- Output form exact
- Examples
- Tested
- Put the answer or the result first; reasons and details after it.
- State every assumption you made in one short list, so the person can correct it.
- Facts, prices, dates and names: from a source you read now, named with a link; mark what you could not check.
Pitfalls
- Vague goals
- Contradictory rules
- No examples
Deliver
The prompt, plus the test inputs and results.
Course: Write a prompt that gets the same good result every time.
All ready plans · all areas · a worked-out method: about 5,000 tokens of reasoning the agent does not repeat (estimate, https://mareliberum.dev/savings)
