Critique-and-revise loop prompt builder
A model’s first answer is a draft, not a final. The critique-and-revise pattern — also known as self-refine or reflexion — makes the model grade its own work against a rubric and then fix it in the same conversation. This builder turns your task and a set of criteria into a multi-stage prompt: generate, critique, revise. You control the rubric, how many rounds run, and the final output format.
How it works
You enter the task and a rubric (one criterion per line). The builder writes a prompt with explicit stages. Stage one produces a draft answer. Stage two critiques that draft against each rubric line, scoring it and naming concrete weaknesses — not “looks good” but “claim X has no source; tone is too casual.” Stage three rewrites the draft to address every weakness raised. If you choose multiple rounds, the critique and revision stages repeat on the latest version. The final output is formatted as you specified. Everything is assembled locally; you copy the prompt and run it anywhere.
Tips and notes
- Write checkable rubric lines. “Every claim cites a source” beats “be accurate.”
- One round captures most of the gain. Add a second only for genuinely complex outputs.
- Watch for over-editing. Too many rounds can drift from your intent — keep the original task visible in the rubric.
- Pairs well with a format requirement. Adding “output must be valid JSON” as a rubric line lets the critique stage catch malformed output before you do.