Technique · 19 studies
Meta-prompting: using the model to diagnose and improve your prompts
Meta-prompting uses the model to critique, expand or rewrite a prompt, or to distil rules from examples and failures. It works when the model gets a reference point (named criteria, good/bad pairs, logged errors, a test set); a bare "improve my prompt" mostly produces guesses.
Also called: prompt optimization, LLM writes the prompt, prompt critique, APO
What meta-prompting is
Meta-prompting means pointing the model at the prompt instead of the task: diagnosing a draft, asking what it leaves out, expanding a one-line request into a spec, or distilling rules from examples and failures into a reusable instruction. It ranges from a single "critique my request before you run it" step to a loop that grows a playbook over dozens of attempts.
The studies in this hub agree on one thing: the model is a useful prompt editor only when it has something to measure against. A bare "improve my prompt" gives it no reference point, so it guesses. The PEEM evaluation study replaces that request with nine named axes, 3 for the prompt and 6 for the response, each scored 1 to 5 with a written rationale; the rationales become the edit list.
- Diagnose: score the prompt and its output on named criteria, not on overall quality.
- Expand: have the model turn a short request into a full brief or into clarifying questions.
- Distil: extract rules from good/bad example pairs or from logged failures.
- Regress: re-run every saved test case after each edit, so a fix does not silently break something else.
Why structured diagnosis beats "make it better"
Two mechanisms recur. First, a model asked to improve something vague fills the gaps with average defaults; asked to find specific defects, it names them. The Prompt Analyzer study on software feature requests had the model hunt for ambiguous phrases and missing data and return them as clarifying questions rather than invented details, and a few examples of "defects" in the prompt sharpened the analysis. The 5W3H expansion study found that an AI expansion of a one-sentence task across eight dimensions was statistically indistinguishable from a brief an expert wrote by hand.
Second, models extract rules well from contrast and failure, and badly from adjectives like "livelier" or "more professional". In Spec Learning, 20 good/bad answer pairs became a system prompt in two requests, and that prompt beat DPO fine-tuning on six of seven datasets with 50x less data. Two details from that work are worth copying: randomly sampled pairs beat hand-picked "most telling" ones, and a coherent second-person paragraph beat a numbered list of the same rules. The playbook-induction study shows the same pattern for procedure: an audiology assistant graded 73 of its own practice runs against 21 criteria, turned each miss into a "trigger, action, effect" rule, kept 19 rules, and won all 58 blind-rated cases against practicing clinicians. Adding reference facts through RAG did not help there; the model lacked procedure, not knowledge.
Variants that tested well
- Rubric diagnosis loop. In PEEM you save the prompt and its response, score the pair on the nine axes, rewrite the prompt from the rationales and repeat. Two or three rounds raised accuracy by up to 11.7 percentage points across 7 benchmarks and 5 models, with no training.
- Grow a playbook instead of rewriting it. Agentic Context Engineering (ACE) splits the job into a generator, a reflector and a curator, and adds each lesson as a small bullet "delta". The authors watched one full rewrite collapse an 18,282-token context to 122 tokens while accuracy fell from 66.7% to 57.1%. With deltas, ACE beat strong baselines by 10.6% on agent tasks and 8.6% on finance tasks.
- A growing regression set. Data-model co-evolution turns every failure into a saved test case, generates 3-5 near-neighbours to see whether it is a one-off or a pattern, edits the prompt, then runs all accumulated cases through the old and new versions side by side.
- Guidelines repaired from errors. In guideline repurposing for LLM annotators, a second model reads the annotator's mistakes against gold labels and rewrites the labeling guide; F1 rose from 0.36 to 0.58 in 3-5 iterations.
- Tie-breaker rules for confused categories. Confusion-aware classification collects the category pairs the model keeps mixing up and writes one explicit distinguishing rule per pair into the prompt.
When it helps and when it hurts
Meta-prompting pays off on prompts you reuse: templates, classifiers, team instructions, agent system prompts. For a one-off question the PEEM authors note that two requests per iteration are not worth it.
The counter-evidence is about who controls the edits. In the Promptimizer user study, automatic ProTeGi-style optimization and a human-led rubric loop reached comparable accuracy, 63-64% on held-out comments, yet all 16 participants preferred the human-led loop: free automatic rewrites turned the prompt into a long, repetitive wall of text nobody could debug. ACE describes the same failure from the other side as brevity bias and context collapse. Free rewriting tends to drift either toward bloat or toward a generic summary; constrained edits, one rubric line or one rule per diagnosed error, keep the prompt legible and auditable.
Other limits the studies report: Spec Learning barely beat chance on a general-helpfulness dataset, so it needs a narrow task with articulable rules; ACE needs a feedback signal and degraded on tasks without ground truth; induced playbook rules can overfit to quirks of the test setup and need a manual pass. And the evaluator in every loop is itself a model, so the design rules on the LLM-as-a-judge page apply to the diagnosis step.
What the studies measured
| Study | Lab score | Finding | Effect |
|---|---|---|---|
| PEEM: Diagnosing and Automatically Improving Prompts Through Structured EvaluationMar 11, 2026 | 88 | Scoring the prompt+response pair on nine named axes and rewriting from the rationales raised accuracy by up to 11.7 percentage points in two to three rounds, across 7 benchmarks and 5 models. | Helps |
| Spec Learning: auto-generating a system prompt from 20 preference examplesJun 22, 2026 | 87 | A system prompt compiled from 20 random good/bad pairs beat DPO fine-tuning on six of seven datasets with 50x less data, but reached only 58% on a general-helpfulness set. | Helps |
| Rubric-Guided Playbook Induction: How to Turn an LLM's Failures Into a Rulebook That Makes It a SpecialistSep 26, 2026 | 86 | A 19-rule playbook induced from 73 self-graded practice runs won all 58 blind-rated audiology consultations against clinicians; adding RAG reference material did not help. | Helps |
| ACE (Agentic Context Engineering): A Detailed Playbook Instead of a Short PromptOct 6, 2025 | 93 | Adding lessons as small deltas instead of rewriting avoided context collapse (one rewrite shrank 18,282 tokens to 122 and cut accuracy from 66.7% to 57.1%) and beat baselines by 10.6% on agent tasks. | Helps |
| Moderation-oriented Guideline Repurposing: adapting human instructions for LLM annotatorsOct 13, 2025 | 75 | Having a second model rewrite labeling guidelines from the annotator's errors raised F1 from 0.36 to 0.58 in 3-5 iterations. | Helps |
| Self-Meta-Evolve: a personal prompt for every reader, built by simulating their inner criticSep 18, 2026 | 72 | Simulating a specific reader's keep/redo/delete critique and editing only the prompt section at fault raised extraction accuracy from 57% to 75% in the full multi-persona cycle. | Helps |
| Data-Model Co-Evolution: Iterative Prompt Improvement Through a Growing Test SetOct 14, 2025 | 72 | Saving every failure as a test case, probing 3-5 similar inputs and re-running all cases after each edit makes regressions visible instead of discovered later. | Helps |
| PPS / 5W3H: One Sentence → a Full Task Spec via Automatic Prompt ExpansionMar 26, 2026 | 82 | An AI expansion of a one-sentence task into the eight 5W3H dimensions was statistically indistinguishable from an expert-written brief. | Helps |
| Prompt Editor – Ask the LLM to Critique Your Request Before Running ItJul 17, 2025 | 79 | Asking the model for ambiguities and missing data as clarifying questions, with a few examples of defects, improved its analysis of requests before execution. | Helps |
| AdvPrompt: Cutting LLM "Overthinking" with Adversarial PromptsOct 12, 2025 | 83 | Automatically generated persuasive length instructions compressed reasoning-model answers by 63-78% on simple tasks without accuracy loss; threat-based variants worked worst. | Helps |
| Self-Prompting + Cross-Model Consensus: How to Make LLMs Reliably Extract Complex Data from TextAug 19, 2026 | 81 | Letting the model draft and merge its own extraction prompt, then majority-voting 5 runs, counters run-to-run swings from 95% to 78% on the same article. | Helps |
| Feedback-to-Rubrics: Turning a Pile of Comments into Personal Evaluation CriteriaMay 28, 2026 | 83 | A rubric extracted from 10-15 or more editor comment pairs, refined where predicted comments diverge from real ones, turns ad-hoc edits into reusable criteria. | Helps |
| Confusion-Aware Classification: Explicit Tie-Breaker Rules for Look-Alike CategoriesSep 1, 2026 | 72 | One explicit tie-breaker rule per frequently confused category pair targets the errors that a longer candidate list does not fix. | Helps |
| Agent0 — three agents found the structure of the ideal prompt that engineers spend years assembling by handJul 25, 2025 | 71 | An architect-guardian-oracle agent loop converged on the elements engineers add by hand: role, priorities, strict format and an explicit empty case. | Helps |
| Model drift: why prompts break when an LLM gets upgraded, and how to write one that survivesJul 8, 2025 | 84 | Prompts written as explicit specs with tagged sections held up better across model upgrades than prompts relying on the model to fill gaps. | Helps |
| PAWNI: turns your questions into a structured prompt through a dialogue with eight AI agentsAug 2, 2026 | 75 | Interviewing the user across 18 points before drafting and checking an 'ideal answer' against the requirements front-loads missing context. | Helps |
| Three-step self-analysis: the model fixes your question before answering itJul 4, 2025 | 79 | An analyze, rephrase, answer sequence makes the model repair a vague request before answering it. | Helps |
| CRMAgent – understand the task first, then solve it: the internal expert council methodJul 11, 2025 | 85 | Having the model derive principles from good and bad example texts before writing produced output that followed those principles rather than generic advice. | Helps |
| Promptimizer: Structured Prompts for Personal Content ClassificationOct 10, 2025 | 80 | Automatic ProTeGi-style optimization and a human-led rubric loop matched at 63-64% accuracy, but all 16 users preferred the human-led loop because automatic rewrites became unreadable. | Mixed |
Prompts to copy
PEEM: diagnose a prompt+response pair on 9 axes
Evaluate the following prompt–response pair on 9 criteria.
**MY PROMPT:**
{the prompt you wrote}
**THE RESPONSE I GOT:**
{the LLM's response}
---
PROMPT EVALUATION (scale 1–5):
1. Clarity and structure — is the task clearly stated,
is the information in a logical order
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
2. Linguistic quality — grammar, precision
of wording, appropriate terminology
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
3. Fairness — neutral language, no
hidden assumptions or stereotypes
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
---
RESPONSE EVALUATION (scale 1–5):
4. Accuracy — factual correctness and logical
soundness
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
5. Coherence — logical structure, smooth transitions
between ideas
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
6. Relevance — how well the response solves the task
without digressions
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
7. Objectivity — neutral tone, no
bias or emotional clichés
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
8. Clarity of expression — easy to understand, no
ambiguity
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
9. Conciseness — gets the point across without fluff or repetition
Score: [1–5]
Rationale: [what exactly is wrong — be specific]
---
Based on all the scores and rationales, rewrite my
original prompt to fix every problem
identified.
IMPROVED PROMPT:
[rewritten prompt]
From: PEEM: Diagnosing and Automatically Improving Prompts Through Structured Evaluation
Spec Learning step 1: extract principles from good/bad pairs
You are a preference analyst. I'll give you {count} pairs of examples for the task: {task_description}.
Each pair: [task prompt] + [good version] + [bad version].
{example_pairs}
Find {5-8} principles that explain the difference between the good and bad versions.
For each principle:
- One sentence: what to do (or not do)
- The number of the pair that illustrates it best
If several pairs point to the same rule, merge them: that's an important signal.
From: Spec Learning: auto-generating a system prompt from 20 preference examples
Playbook induction loop: rubric, test run, rule
I want to create a "playbook", a compact set of rules, for an AI assistant
that will perform this task: {task}.
Let's do it as a 4-step loop:
STEP 1 — RUBRIC
Build a checklist of 8-12 quality criteria for this task.
Each criterion is a specific behavior that can be graded.
STEP 2 — TEST RUN
Play the role of {assistant role} and perform the task in this scenario:
{scenario}. Behave naturally and don't peek at the rubric.
STEP 3 — GRADE AND LESSON
Grade the result above against the rubric from step 1. Where the score is low,
explain why and write a rule:
TRIGGER: [the situation where this applies]
ACTION: [what needs to be done]
EXPECTED EFFECT: [what it will achieve]
STEP 4 — ASSEMBLY
Add the rule to the "Task execution rules" list.
If a similar rule already exists, don't duplicate it; refine the wording.
We'll repeat the loop (steps 2-4) several more times on different scenarios
until we have 10-15 stable rules. I'll use the final list
as a system instruction for real tasks.
Start with step 1. My task: {task}
Related techniques
Problems it helps with:
Questions people ask
Does asking ChatGPT or Claude to 'improve my prompt' work?
Only weakly. Without criteria the model guesses what to change. The studies that measured gains gave it a reference point: named scoring axes with rationales, good and bad example pairs, logged failures or a saved test set. The PEEM loop gained up to 11.7 points that way.
How many iterations should a prompt-optimization loop run?
The reported sweet spots are small: two or three rounds for PEEM, 3-5 iterations for guideline repair. If quality is still poor after that, the PEEM authors suggest the problem is usually the task definition, not the wording.
Should I let the model rewrite the whole prompt?
Usually not. Full rewrites drifted into unreadable walls of text in the Promptimizer study and collapsed detail in the ACE study. Targeted edits, one rule or one rubric line per diagnosed error, kept accuracy and legibility.
How many examples does example-based prompt compilation need?
Spec Learning used about 20 good/bad pairs, sampled at random rather than hand-picked, and compiled them into a paragraph rather than a list. It worked on narrow tasks with clear preferences and barely beat chance on general helpfulness.