Prompts That Write Prompts

Let the Model Draft and Improve Its Own Instructions

Models are good at writing instructions for other models. With a test set, a program can try many versions of a prompt and keep the best. This saves time, and it only works if you can measure.

Ranjit Nethi

·

Prompts That Write Prompts

The short version

  • A model can write a first draft of a prompt from a description of the task.
  • With a test set, software can try many versions and keep the one that scores best.
  • Without a way to measure quality, automatic improvement has nothing to aim at.

The idea

Meta-prompting means using a model to write or improve a prompt. You describe the task and show a few examples of bad output, and the model proposes a better instruction.

Automatic prompt optimization goes further. A program generates many prompt versions, runs each against a test set, scores the results and keeps the best. Research methods and open-source tools take this approach and treat a prompt as something to be tuned by measurement. They do not treat it as something written by feel.

It works like asking an experienced manager to rewrite your briefing, and then testing five versions of the briefing on real work to see which one gets the best results.

  1. Describe the task
  2. Model drafts prompts
  3. Run each on the test set
  4. Score
  5. Keep the best and repeat

Two conditions decide whether this helps. You need a test set with known good answers, and you need a score that reflects what the business cares about. With both, optimization finds gains a person would miss. With neither, it produces confident text that nobody can judge.

An example

A support team has a prompt that sorts tickets into 12 queues at 84 percent accuracy. The team has 300 labelled tickets. An optimizer proposes 20 variations, tests each one and finds a version at 91 percent. The winning prompt adds two clarifying rules about tickets that mention both billing and delivery. A person reviews the change, agrees it makes sense and releases it through the normal process. The numbers are illustrative.

Common mistakes

  • Optimizing against a tiny test set, which fits the prompt to those few cases.
  • Accepting an optimized prompt nobody can read or explain.
  • Skipping human review because “the score went up”.
  • Optimizing the prompt when the real problem is missing data.

What to do this week

  1. Ask a model to critique one of your production prompts and suggest a rewrite.
  2. Test the rewrite against the original on real cases.
  3. If you have no test set, build that first. It is the asset that makes every later improvement possible.

The terms, in plain language

TermWhat it means
Meta-promptingUsing a model to write or improve prompts
Prompt optimizationSoftware that tests many prompt versions and keeps the best
Test setReal examples with known good answers
OverfittingDoing well on the test cases and poorly on new ones

Section 2.5 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.