---
title: Prompt Engineering
description: Prompt engineering is the craft of getting reliable results from large language models. You will learn prompting patterns, structured outputs, evaluation, and the limits of prompting versus fine-tuning or retrieval.
category: programming-tech
subcategory: artificial-intelligence
difficulty: beginner, intermediate, advanced
url: /subject/prompt-engineering
---

# Prompt Engineering

Prompt engineering is the craft of getting reliable results from large language models. You will learn prompting patterns, structured outputs, evaluation, and the limits of prompting versus fine-tuning or retrieval.

## Available Resources

1 Books • 2 Courses • 4 Websites • 2 Papers

## Papers

### 1. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models

**Author:** Jason Wei et al.

Shows that prompting a large model with a few worked examples containing intermediate reasoning steps substantially improves arithmetic, commonsense, and symbolic reasoning, and that the effect emerges only at sufficient model scale. The origin of chain-of-thought prompting.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://lnkd.in/gaK5CXzD

**Tags:** prompting, reasoning, llm, few-shot, emergent-abilities

### 2. The Prompt Report: A Systematic Survey of Prompting Techniques

**Author:** Sander Schulhoff, Michael Ilie, Nishant Balepur, Philip Resnik, et al.

A 76-page survey of 1,500+ papers that fixes prompting's inconsistent vocabulary and organizes 58 text techniques plus 40 multimodal ones into a single taxonomy. Readers finish able to name, compare and cite techniques precisely.
This is the reference map of the whole field - it replaces the endless supply of 'top 20 prompting tricks' posts with one rigorously derived taxonomy and a shared vocabulary. Nothing else in prompt engineering has this level of methodological discipline (PRISMA-style review of 1,500+ papers).

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://arxiv.org/abs/2406.06608

**Tags:** prompt-engineering, llm, survey, taxonomy, nlp

## Websites

### 1. Prompt Engineering Guide

Reference covering prompting techniques with worked examples: zero-shot and few-shot, chain-of-thought, self-consistency, ReAct, and tree of thoughts, plus model-specific notes and adversarial prompting risks. Readers finish able to choose techniques deliberately.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://lnkd.in/gJjGbxQr

**Tags:** prompt-engineering, chain-of-thought, few-shot, llm-techniques, react

### 2. Effective Context Engineering for AI Agents

**Author:** Prithvi Rajasekaran, Ethan Dixon, Carly Ryan, Jeremy Hadfield

Anthropic's applied AI team reframes prompting as one part of curating the whole context window. Covers context rot, calibrating system prompt specificity, minimal non-overlapping tool sets, just-in-time retrieval, and compaction, note-taking and sub-agents for long-horizon tasks.
This is the resource that answers the topic's hardest question - where prompting stops and retrieval, memory or architecture must take over. It gives concrete mechanisms (compaction, structured note-taking, sub-agent isolation) rather than the vague 'context is the new prompt' takes that flooded blogs afterwards.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents

**Tags:** context-engineering, ai-agents, prompt-engineering, llm

### 3. GPT-5.2 Prompting Guide (OpenAI Cookbook)

**Author:** OpenAI

OpenAI's own guide to steering its current flagship reasoning model: controlling verbosity, preventing scope drift, reasoning-effort settings, long-context handling, tool-call parallelism, schema-driven extraction from documents, and a migration table from earlier models. Reasoning models broke a lot of received prompting wisdom, and this is the clearest first-party account of what changed.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://developers.openai.com/cookbook/examples/gpt-5/gpt-5-2_prompting_guide

**Tags:** prompt-engineering, openai, reasoning-models, llm

### 4. Prompting Best Practices (Claude Platform Docs)

**Author:** Anthropic

Anthropic's continuously updated prompting reference, organized as per-model behavioural guidance, then techniques that apply to all current models - clarity, examples, XML structuring, extended thinking, tool use, agentic loops - then migration notes for older prompts.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

**Tags:** prompt-engineering, claude, llm, anthropic, documentation

## Books

### 1. Prompt Engineering for LLMs: The Art and Science of Building Large Language Model-Based Applications

**Author:** John Berryman, Albert Ziegler

Two engineers who built GitHub Copilot explain why prompts work in terms of how models complete text, then build up few-shot patterns, chain-of-thought, retrieval-assembled context and evaluation for production applications rather than one-off chat sessions.

**Difficulty:** Intermediate | **Language:** English | **Price:** Paid

**Link:** https://www.amazon.com/dp/1098156153?tag=edmonddante07-20

**Tags:** prompt-engineering, llm, retrieval-augmented-generation, ai-applications

## Courses

### 1. Anthropic's Interactive Prompt Engineering Tutorial

**Author:** Anthropic

Nine notebook chapters with graded exercises: prompt structure, being direct, roles, separating data from instructions, output formatting, step-by-step reasoning, examples, hallucination control, plus chaining and tool use. You write and debug real prompts, not read about them.
The single best free way to actually practise rather than read - every chapter ends in an exercise that is graded against expected output, which is the only mechanism on this list that catches the gap between understanding a technique and being able to apply it. Its example code targets an older Claude model, but the failure modes it drills are model-independent.

**Difficulty:** Beginner | **Language:** English | **Price:** Free

**Link:** https://github.com/anthropics/prompt-eng-interactive-tutorial

**Tags:** prompt-engineering, claude, llm, hands-on-exercises

### 2. Anthropic Learn

Anthropic's free learning hub, now Claude Academy, with self-paced courses and tutorials on AI fluency, model capabilities and limits, prompt writing, and building applications with the Claude API. Learners can write clearer prompts, judge model output critically, and start developing with Claude.

**Difficulty:** Beginner | **Language:** English | **Price:** Free

**Link:** https://www.anthropic.com/learn

**Tags:** prompt-engineering, claude, large-language-models, ai-fluency, claude-api

---

*This content is part of Dantes.io - Your Treasure Map to Knowledge*

*Curated by humans at Dantes.io. Personal study use welcome; republishing this curation requires permission (team@dantes.io).*

View this page online: https://dantes.io/subject/prompt-engineering