Glossary · AI

What is prompt engineering?

Prompt engineering is the practice of writing and structuring the instructions, context and examples given to a large language model so it produces accurate, consistent output for a specific task.

Why it matters

From prompt engineering to context engineering

The same model can give a vague answer or an excellent one depending on what it is told. The practice has shifted from clever one-off phrasing to what many now call context engineering: deciding which documents, rules, tools and history the model sees for each task, written down as knowledge files and reusable skills instead of one-off prompts.

Vendor guides from Anthropic and OpenAI agree on the basics: be clear and direct, give examples, structure inputs, and let the model reason before it answers. That is what makes AI features in a product reliable, and AI-assisted work in a team consistent instead of random.

Our approach

Testing prompts in AI products

For products, we design and test the prompts behind AI features as part of product design and agentic workflows: every prompt runs against an evaluation set of real inputs with known good answers, so a new prompt or model is checked before release.

At STRAK prompts are written down and reused, not improvised. They live in the STRAK rulebook, described in our process: brand, tone, rules and offer sit in knowledge files that agents read before every task; repeatable jobs are written as step-by-step skills with a definition of done; checks run as code afterwards. When review catches a mistake, we fix the knowledge or the skill, not just the output.

Related service: Agentic workflows · How we work

Example

Prompt engineering in practice

Instead of telling an agent “write a glossary page about design tokens”, our setup gives it the brand and rules files, a skill describing the page shape and word count, the data format, the list of valid links, and a script that renders the page and flags problems. The instruction itself is short; the context does the work. The output still goes to a person for review.

Avoid

Common mistakes

  • Rewriting prompts from scratch every time. Store prompts and context as files, version them and improve them.
  • No examples. One or two examples of good output often beat a paragraph of description.
  • Too much irrelevant context. More text is not better. Give the model what this task needs.
  • No evaluation. Test prompt changes on a fixed set of inputs before shipping them in a product.
Anatomy

The parts of a good prompt

PartWhat it saysExample
TaskWhat the model should doWrite the empty state for the invoices screen.
ContextWhat it needs to knowOur tone of voice file and the screen’s purpose.
ConstraintsWhat it must and must not doAt most 20 words, no exclamation marks.
Output formatThe shape of the answerA headline, one line of body text and a button label.
ExamplesOne or two good answersThe empty state we wrote for the projects screen.
Techniques

Common prompt engineering techniques

TechniqueWhat it doesWhen to use it
Zero-shotAsks for the task with instructions onlySimple, well-known tasks
Few-shotAdds a few examples of good outputWhen format or tone must match
Step-by-step reasoningLets the model think before it answersAnalysis, math and multi-step decisions
RolesSets who the model acts as in a system promptProducts and assistants with a fixed job
Structured outputAsks for JSON or a fixed templateWhen code reads the answer
FAQ

Questions about prompt engineering

Is prompt engineering still needed with newer models?
Yes, though it has changed. Newer models need less trickery but still depend on clear goals, the right context and examples. The work has moved from wording to supplying the right information.
What is the difference between a system prompt and a user prompt?
A system prompt sets the model’s role, rules and context for a whole conversation or product feature. A user prompt is the individual request within it.
What is context engineering?
Giving a model the right documents, rules and tools for a task, not just a well-worded request. It is how prompt engineering works at team and product scale.
How do you test a prompt?
Run it against a fixed set of real inputs with known good answers, and compare the results before and after each change.
Can STRAK train our designers to work this way?
Yes. AI design training costs $3,600: 2 workshop days, then 8 hours of coaching in Slack.
Thomas OldenburgerFounder, design and build lead

Still deciding? A 30-minute call answers most of it.

Got a brief, or half of one?

Book a free 30-minute call. You leave with a straight answer on scope, price and timing, even when we are not the right fit.