Search "AI prompt engineering" and you'll find lists of magic phrases, job titles with salary figures, and assurances that the whole thing is about to be obsolete because models are getting smarter. Underneath all that is a plain, useful definition. OpenAI's own guide puts it this way: prompt engineering is "the process of writing effective instructions for a model, such that it consistently generates content that meets your requirements" 1.

The word doing the work there is consistently.

That's the whole discipline in one word, and it's also why what you learned about clear requests isn't the same thing. Knowing what a clear request is made of tells you which parts of a prompt you can change. It doesn't tell you whether a change helped. Because the model doesn't return the same text twice from the same prompt, "I tried it and it worked" is not evidence of anything. The documentation says so outright: model output is non-deterministic, so getting the result you want is part art, part science, and the way to make it reliable is to apply techniques and then check 1. Anthropic's evaluation course is blunter: an answer can differ from one run to the next, so run every setup two or more times before you trust a score.

So the honest answer to "what is prompt engineering" is a loop, not a vocabulary. Here is the smallest version of that loop you can run in about half an hour on a task you actually repeat.

Start with a task you do more than once, and a place to write. A recurring request, such as turning call notes into a risk summary, tagging inbound support messages, or pulling four fields out of supplier invoices. Pick something where you can tell a right answer from a wrong one at a glance. "Write better emails" is a bad candidate. There's no single output to grade. You need no software; a document with a table in it is enough.

Step 1. Write down what good looks like, in one sentence you could hand to a colleague. Not "a useful summary," but something checkable: "Every answer names a risk only when the notes contain a sentence that supports it. Otherwise it returns none." OpenAI's guidance is that if you can't describe good in one or two sentences, the model can't reliably hit it either 2. By the end of this step you should have a sentence you can apply to an answer in about ten seconds without arguing with yourself.

Step 2. Collect six to ten real inputs, including the awkward ones. Pull them from your own history rather than inventing them, and deliberately include the three cases that break things: an input where the thing you want isn't present, one that is much longer or messier than usual, and one where even you had to think before deciding. Anthropic's guidance on building evaluations names exactly these as the edge cases that matter: irrelevant or missing input data, overly long input, and ambiguous cases where humans struggle to agree 3. For each input, write down the right answer. If you can't, drop the case, because a case with no expected answer can't score anything.

That set is now your test set. It is also the thing you'll keep, which is the part most people skip: the cases outlive the prompt.

Step 3. Run every case twice, and grade pass or fail. Twice, because one run tells you about one run. Two runs that disagree tell you the answer is unstable for that input, which is itself a finding, and a reason to distrust any conclusion you'd have drawn from a single happy result. Grade strictly: no half marks, no "close enough." What you should see is a table with four columns: case, expected answer, run 1, run 2.

At this point you have a number, say 6 out of 10. That number is the only thing that lets you say whether a change was an improvement.

Step 4. Read the failures and look for what they share, not how many there are. A score counts failures. It can't explain them. Anthropic's published walkthrough of this loop is worth following, because the fix comes straight out of the failure pattern. Their example prompt pulls three fields out of monthly project reports: project ID, schedule status, and top risk. On 50 cases, eight came back wrong, and five of those eight were the same kind of case: reports with no risk section at all, all wrong on the same field. The prompt allowed null as an answer but never said when null was correct, so the model kept inventing a risk 4.

That's the shape of a useful diagnosis. When failures cluster on one kind of input and one part of the output, you have found a missing instruction, not a model that can't do the job. Here the fix was two lines: say when null applies, and make the model quote the sentence that supports its answer before giving it. Rerun the same 50 cases and all of them passed.

If instead your failures look nothing alike, one graded case failing here and another there, you probably have a scope problem rather than a wording problem. A prompt asked to do three jobs at once spreads the same effort across all of them, and shrinking it to one deliverable usually does more than any rewording 2.

Step 5. Change one thing, rerun every case, and check the parts you didn't set out to fix. One thing, because two changes leave you unable to say which one helped, and because a fix aimed at the missing-risk cases can quietly break the ordinary ones. Anthropic saw three cases fail on schedule status and then pass on the rerun, with no change touching that field, which is run-to-run noise arriving to remind you that small score movements mean little.

This is the step where the technique lists earn their keep, and where you can see what they really are. Every named technique, whether being explicit about audience and format, giving a couple of examples of input and desired output, asking the model to work through the problem before answering, splitting a long job into two requests, pasting in the source document, or specifying an output schema, is a candidate change you test in this step. None of them is universally correct, and some are model-specific. OpenAI notes that with reasoning models, telling the model to "think step by step" may not improve results and can sometimes hurt, since those models already reason internally before answering 5. Anthropic warns that tutorials written for earlier model generations diverge from current best practice. A technique is a hypothesis about your task, not a rule.

Step 6. Know when to stop. Keep changing and rerunning while the score moves. When a couple of sensible prompt changes leave it flat, prompting is no longer the bottleneck, and the honest move is to change something else: give the model the document it lacks, split the task, switch to a stronger model, or put a human check where the errors land. Anthropic's prompt engineering overview says this directly. Not every failing evaluation is best solved by prompt engineering, and latency or cost issues are often cheaper to fix by choosing a different model 6.

Rendering

That's what the term means in day-to-day work, and what "prompt engineer" as a role actually entails: an accepted prompt, a set of cases that encode what good means, and a habit of rerunning them after every change. Teams formalize the same loop. OpenAI recommends building test and evaluation suites so you can monitor prompt behavior as you iterate or upgrade model versions, and pinning production applications to specific model snapshots so results stay comparable 1. Nothing in that is a trick. It's the ordinary discipline of changing one variable, measuring, and not fooling yourself with a lucky sample.

Which is the uncomfortable part of the answer for anyone hoping for phrases to memorize. A prompt that produced one excellent answer has told you almost nothing. It's a single sample from a system that doesn't repeat itself. Ten cases run twice, with a before-and-after score, tell you what you actually want to know: whether the thing will still work next Tuesday, on an input you haven't seen yet.