# Prompt engineering

> Prompt engineering is the practice of writing and refining instructions and context for an AI model so that it produces accurate, useful and consistent output for a specific task, including the role, goal, inputs, format and constraints.

Canonical page: https://academy.fordevv.com/glossary/prompt-engineering

Also known as: Prompting, Prompt design, Context engineering, Prompt writing.

## Why it matters

The same AI tool gives very different results depending on how it is asked. Clear instructions and good context reduce errors, save time on rework and make output more consistent across a team. As AI moves into agents and workflows, the same skill becomes context engineering: deciding what information, examples and rules the model sees for each step.

## How it works

Practical prompts usually include some of these elements:

- **Role and goal**: what the model should act as and what the result is for.
- **Context**: the source material, audience and relevant facts, rather than relying on the model's general knowledge.
- **Instructions**: the steps or criteria to follow.
- **Format**: length, structure, tone, tables or lists.
- **Constraints**: what to avoid, what to do when information is missing.
- **Examples** of good output.

Then the user reviews the result and refines. Teams often keep a shared prompt library for repeated tasks so quality does not depend on one person.

## Example

A procurement analyst first asks an assistant to "summarise this tender". The result is generic. She rewrites the prompt: act as a procurement analyst, summarise the attached tender for a bid/no-bid meeting, list deadlines, mandatory requirements and evaluation criteria in a table, and mark anything unclear as a question rather than guessing. The output is now usable in the meeting.

## Common mistakes

- Expecting one perfect prompt instead of iterating.
- Leaving out the source material and trusting the model's memory.
- Not checking the output against the source.

## In practice at Fordevv Academy

Prompt and context skills are taught in our AI area and practised on real work in application assignments between sessions; see the [catalog](https://academy.fordevv.com/programs). Why prompting alone is not a strategy is covered in [AI tools need a curriculum](https://academy.fordevv.com/insights/ai-tools-need-a-curriculum).

Topic: [AI and agentic skills](https://academy.fordevv.com/insights/topics/ai-and-agentic-skills)

## Related terms

- [AI literacy](https://academy.fordevv.com/glossary/ai-literacy)
- [AI agent](https://academy.fordevv.com/glossary/ai-agent)
- [Responsible AI](https://academy.fordevv.com/glossary/responsible-ai)
- [Agentic AI](https://academy.fordevv.com/glossary/agentic-ai)

## Related programs

- [Prompt and Context Engineering](https://academy.fordevv.com/programs/prompt-and-context-engineering)
- [Building Your Team's Prompt Library](https://academy.fordevv.com/programs/building-your-team-s-prompt-library)
- [Generative AI for Professionals: Practical Productivity](https://academy.fordevv.com/programs/generative-ai-for-professionals-practical-productivity)

Updated: 2026-12-01
