---
published: true
id: prompt-engineering
title: Prompt Engineering
description: Knowledge captured in João Lopes' learning graph.
tags:
- ai-engineering
- prompting
locale: en
resource: https://joaolopes.dev.br/knowledge/concepts/en/prompt-engineering/
created: '2026-04-05'
---

# Prompt Engineering
The practice of crafting a single message to get a better response from a language model.

## Definition
Prompt engineering focuses on the quality of the input message: word choice, structure, examples, instructions within the prompt itself. It works when the interaction is a single exchange. In an agentic context, prompt engineering is a subset of context engineering. The individual message matters less than the system that assembles everything the model sees across an entire session.

## Source
- [Prompt Engineering — Anthropic Docs](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview)

## Related
- [Context Engineering](/concepts/en/context-engineering.md)
- [Prompt](/concepts/en/prompt.md)
- [Context Window](/concepts/en/context-window.md)
