The Prompt Engineering Pyramid: Before vs After
A vague prompt has no foundation. A refined prompt has five layers — and each one multiplies precision.
What the layers mean
- Role & goal: who Claude is acting as and what it's optimizing for.
- Context: the data, constraints, and history Claude needs to ground the answer.
- Examples: 2–5 input/output pairs that pin down the desired pattern (few-shot).
- Format: JSON schema, XML tags, or markdown structure for downstream parsing.
- Specific output: the precise artifact you want — the apex sits on the other four.
Image license: CC BY 4.0. Embed via <img> or download and re-host with attribution.