Anthropic's free, notebook-based tutorial on writing effective prompts for Claude, from basic structure to complex multi-part prompts.
The Prompt Engineering Interactive Tutorial is an open course published by Anthropic on GitHub. It teaches prompting for Claude through a sequence of chapters, each pairing a short explanation with exercises where learners edit a prompt until the model's response meets a stated goal. Topics progress from basic prompt structure and being clear and direct, through assigning roles, separating data from instructions, formatting output, asking for step-by-step reasoning and using examples, to reducing hallucinations and assembling complex prompts for realistic scenarios.
The tutorial is available as Jupyter notebooks that call the Anthropic API, and a spreadsheet-based version is also offered. It suits developers and technically curious users who want structured practice rather than a list of tips. Running the notebooks requires an API key, which may incur small usage costs. The examples are written for Claude, though most of the techniques transfer to other models.