Techniques · Chapter 7 of 11
Meta-prompting
Meta-prompting means asking a model to write, critique or repair a prompt for you. It saves real time, as long as you still decide what good looks like.
By Kasum BajramiUpdated
What it is
Usually you write a prompt and the model produces a result. In meta-prompting you step back one level: you ask a model for the instructions, or for feedback on yours, and then run those instructions on your real task.
Meta-prompt
“Write me a prompt that gets a good summary.”
Prompt
Instructions for your real task, with gaps to fill in.
Result
The thing you actually wanted.
The model makers describe this themselves. Anthropic points to a recipe that drafts a prompt from a description of your task Anthropic. OpenAI describes using a model as its own prompter OpenAI and shows how its prompt optimiser reworks existing prompts OpenAI.
The pyramid
Meta-prompting sits near the top of a small pyramid. It can only be as good as the two levels underneath it, and it needs the one above to prove itself.

- 1GoalWhat a good result does
- 2DraftYour own first prompt
- 3Meta-promptA model critiques it
- 4TestReal inputs decide
- Goal. Decide what a good result does before you ask anyone for a prompt. Anthropic advises settling success criteria, and a way to test them, before you tune a prompt Anthropic.
- Draft. Write a rough version yourself. It doesn't have to be good. It shows the model what you mean, and it shows you what the model changed.
- Meta-prompt. Now ask for a critique or a rewrite, measured against your goal.
- Test. Run the old and the new prompt on the same real inputs and keep what scores better. Anthropic shows how to make that comparison measurable Anthropic.
Let a model write the first draft
No draft yet? Describe the task and your criteria and ask for the prompt, not the answer. The template below asks the model to put its questions first, so it doesn't fill the gaps with guesses.
Meta-prompt: write a prompt
I want a prompt that I can reuse. Write the prompt, not the answer to the task. Task: [what the prompt should get done] Reader: [who reads the result] A good result: [two to four things it must do] Avoid: [limits, topics, tone] Material I will paste in each time: [for example an email, a table or a file] Before you write it, ask me in one message about anything important that is missing, four questions at most. Then give me the prompt in a code block, with [square brackets] wherever I have to fill something in. Do not invent facts about me or my reader, and do not ask for names or contact details.
Why those lines are there
- “Write the prompt, not the answer” stops the model from simply doing the task.
- “Before you write it, ask me” turns guesses into questions. Finn, the assistant in PromptPrinter, works this way too: the open questions in one message, then the prompt.
- Square brackets keep personal details out until you fill them in yourself.
Repair a prompt that failed
Meta-prompting pays off most when a prompt almost works. Hand over three things: the prompt, what came out and what you wanted. Then ask for the smallest change. OpenAI's GPT-5 guide suggests asking which phrases to add or remove to get the behaviour you want, while keeping the rest of the prompt intact OpenAI.
Meta-prompt: repair a prompt
Here is a prompt I use, the result it gave and what I wanted instead. <prompt> [paste your prompt] </prompt> <result> [paste what came out] </result> I wanted: [describe the better result] Which few phrases would you add to the prompt, or remove from it, so that it does what I wanted? Keep everything else as it is, and explain each change in one sentence.
Small changes keep you in charge: you can see what moved, test it, and undo it if it made things worse.
Check what comes back
A rewrite can read beautifully and still be worse. Before you use it, check:
- Does it ask for something you never wanted?
- Does it invent facts about you, your project or your reader?
- Do any instructions contradict each other, or contradict an example? These are among the problems the prompt optimiser is meant to remove OpenAI.
- Is it longer without being clearer?
- Is the output format still the one you need?
- Does it beat your old prompt on the same two or three real inputs?
Try it
Exercise
Repair a prompt that let you down
Take a prompt you used recently that gave a weak result. Fill in the repair template. Before you run the new version, write down what you expect to change.
What to look for
- The suggested changes are small, and you agree with the reason given for each.
- The result changed where you expected it to, and nothing else got worse.
- If nothing improved, the goal was probably unclear: go back to the bottom of the pyramid.
Sources
Official guides by the model providers. They change as models change, so check them for your model.