# Prompt engineering

Canonical page: https://www.theglitch.ai/ai-glossary/prompt-engineering

Writing and testing instructions so a model does what you want reliably.

[Prompt engineering, common card \#175 in The Glitch AI glossary: Writing and testing instructions so a model does what you want reliably.](https://www.theglitch.ai/images/cards/glossary/prompt-engineering.png?v=329f45a8e0d9ec2d)

GLS 175 · common

For: Beginner · Must know

## Why it matters

Most quality gains in AI features still come from clearer instructions, better examples and testing.

## In practice

Adding the audience, the format and one example turns a vague answer into a usable one.

## Watch for

A prompt that works once is a guess; test it on varied cases.

## Related terms

[Prompt](https://www.theglitch.ai/ai-glossary/prompt) · [Context engineering](https://www.theglitch.ai/ai-glossary/context-engineering) · [Few-shot prompting](https://www.theglitch.ai/ai-glossary/few-shot-prompting)

## Try it here

[Prompt workbench](https://www.theglitch.ai/tools/prompt-workbench)

## Sources

- [Wikipedia: Prompt engineering](https://en.wikipedia.org/wiki/Prompt_engineering)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
