Prompting and practice · Read 7 min

What prompt engineering is and why it is not magic

They gave an engineering name to something closer to knowing how to ask. Useful, yes; mysterious, no. Let me bring the term back down to earth.

Prompt engineering is the craft of writing clear instructions for a language model so it does what you want. That is all. There is no incantation, no magic word hidden in some forum, no secret key that separates the initiated from everyone else. There is something far older and far more honest: knowing how to ask well.

The word "engineering" scares and promises in equal measure. It suggests blueprints, tolerances, a discipline with hard rules. And yet, when you get close to what a good prompt actually does, you find something closer to writing the brief for a new collaborator: enough context, a well-bounded task, an example of how it should turn out. Less laboratory, more a good letter of instructions.

01 · the termWhat prompt engineering is, no hype

A prompt is simply the text you give a model: your question, your request, your instruction. Prompt engineering is the practice of designing that text to get more useful, more precise and more consistent answers. The reference documentation defines it in almost those same words: the discipline of developing and refining prompts to use language models efficiently [1].

It is worth saying what it is not. It is not programming in the classic sense: there is no compiler and no mandatory syntax. It is not guessing the perfect phrase that unlocks a hidden mode of the model. And it is not a skill reserved for people who understand neural networks. It is a craft of language, and language you already have.

You are not hacking the model. You are explaining the brief to it the way you would explain it to someone competent but newly arrived.

The reason the request needs refining is that the model does not know you, does not see your screen, does not know who the result is for or what you would take for granted in a human conversation. Everything it knows about your intent fits inside the text you wrote. If the text is ambiguous, the answer inherits that ambiguity. Prompt engineering is, at bottom, the art of leaving no gaps where the model has to invent your intent.

Figure 1 · the same request, two levels of clarity
"summarize this"
"Summarize this email in 3 bullets for my boss, formal tone, 40 words maximum"
Above, the model has to guess length, format, audience and tone. Below, there is nothing left to invent. The difference is not magic: the second request closed the gaps.

02 · the craftThe pieces of a good instruction

If we take apart the prompts that work, almost always the same pieces appear. They are not a ritual: they are the things anyone would need to carry out a brief well. The guides from OpenAI and Google converge on a handful of very un-esoteric practices [2][3].

Context. Give the model the information a human would need: who the audience is, what the result is for, what material it should use. A model without context fills the gaps with what is most likely, which is not always what you wanted.

A specific task. "Write something about recycling" and "write three practical tips on household recycling for a family with small children" do not ask for the same thing. The more concrete the brief, the less room for drift.

Output format. If you want a table, a list, a JSON or a short paragraph, say so. The model does not read your mind about the shape; only about what you wrote.

Examples. Showing one or two cases of "expected input → expected output" usually improves the result more than any adjective. It is the technique known as few-shot: teaching by example instead of only describing.

Thinking in steps. For problems with several steps (calculations, reasoning, decisions), asking the model to "reason step by step" before giving the final answer measurably improves its results. That technique, chain-of-thought, was documented by Wei and colleagues in 2022: showing the intermediate reasoning makes sufficiently large models far more accurate on arithmetic and logic tasks [4]. It is not a piece of folklore: it is a reproducible finding.

Why "reason step by step" really works

The model generates text word by word. When you force it to write the intermediate steps, each step leans on the previous one and the error has fewer places to hide. It is the same reason we ask a student to show their work, not just the final number: the path disciplines the answer.

03 · the mapNamed techniques, no mystery

A good part of what gets sold as "prompting secrets" is really three or four techniques with proper names. Seeing them side by side strips away the aura and leaves the craft. The following table orders them from least to most effort.

The most used prompting techniques, what they do and when they are worth it.
TechniqueWhat it isWhen it is worth it
Zero-shotAsking for the task with no examples, just a clear instruction.Simple, well-defined tasks.
Few-shotIncluding 1 to 5 examples of input → desired output.When format or style matters and is hard to describe.
Role / personaFixing who answers ("act as a legal editor").To frame tone, judgment and level of detail.
Chain of thoughtAsking for step-by-step reasoning before the answer.Problems with several steps: calculation, logic, decisions.
Classification based on the prompting guides from OpenAI and Google and on the work of Wei et al. on chain of thought [2][3][4]. It is not a closed list; it is the minimum vocabulary to start with.

Note what they have in common: they are all ways of saying better what you want. None requires touching the model, none is an exploit. Prompting is the layer of language between your intent and a machine that has only your text to orient itself.

The techniques are not spells. They are ways of closing the distance between what you think and what you write.

04 · the pathHow to learn it from scratch

The best news is that you learn it by using it, not by studying theory. The method is boringly empirical and that is exactly why it works: write a prompt, look at the result, identify what came out different from what you wanted, adjust one single thing, try again. That iteration (write, observe, correct) is 90 % of the craft.

A reasonable order to begin. First, learn to be specific: audience, task, format and length in every request. Second, add examples when style matters. Third, for tasks with steps, ask for explicit reasoning. Fourth, when something fails, do not rewrite everything: change one variable and compare. That way you understand which piece moved the result.

An honest warning is worth it: no technique guarantees a correct answer. Models can be confidently wrong, make up data, or misread a clear request. Prompt engineering improves your odds, it does not certify them. Anyone who sells you infallibility is selling you hype, which is exactly what this article set out to dispel.

In the end, the word "engineering" is not entirely out of place. There is method, there is iteration, there are repeatable criteria. But the raw material is not advanced mathematics: it is clear language. If you know how to explain a brief to a competent person who just arrived, you already have almost everything. The rest is practice, and practice is one prompt away.

Sources

  1. Wikipedia. Prompt engineering. Definición general de la práctica de estructurar instrucciones para modelos de IA generativa. en.wikipedia.org/wiki/Prompt_engineering.
  2. OpenAI. Prompt engineering: Best practices for prompt engineering with the API. Documentación oficial para desarrolladores. platform.openai.com/docs/guides/prompt-engineering.
  3. Google. Prompting guidelines / Introduction to prompt design. Documentación de Gemini API y Vertex AI. ai.google.dev/gemini-api/docs/prompting-intro.
  4. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q. & Zhou, D. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. Advances in Neural Information Processing Systems (NeurIPS). arXiv:2201.11903.

Learn more about AI

See all Learn AI