Retour au classement

anthropics/prompt-eng-interactive-tutorial

Jupyter Notebook

Anthropic's Interactive Prompt Engineering Tutorial

prompt-engineeringllmanthropicjupyterinteractive
Croissance des étoiles
Étoiles
37.2k
Forks
4.1k
Croissance hebdomadaire
Issues
38
10k20k30k
avr. 2024janv. 2025oct. 2025juil. 2026
README

Welcome to Anthropic's Prompt Engineering Interactive Tutorial

Course introduction and goals

This course is intended to provide you with a comprehensive step-by-step understanding of how to engineer optimal prompts within Claude.

After completing this course, you will be able to:

  • Master the basic structure of a good prompt
  • Recognize common failure modes and learn the '80/20' techniques to address them
  • Understand Claude's strengths and weaknesses
  • Build strong prompts from scratch for common use cases

Course structure and content

This course is structured to allow you many chances to practice writing and troubleshooting prompts yourself. The course is broken up into 9 chapters with accompanying exercises, as well as an appendix of even more advanced methods. It is intended for you to work through the course in chapter order.

Each lesson has an "Example Playground" area at the bottom where you are free to experiment with the examples in the lesson and see for yourself how changing prompts can change Claude's responses. There is also an answer key.

Note: This tutorial uses our smallest, fastest, and cheapest model, Claude 3 Haiku. Anthropic has two other models, Claude 3 Sonnet and Claude 3 Opus, which are more intelligent than Haiku, with Opus being the most intelligent.

This tutorial also exists on Google Sheets using Anthropic's Claude for Sheets extension. We recommend using that version as it is more user friendly.

When you are ready to begin, go to 01_Basic Prompt Structure to proceed.

Table of Contents

Each chapter consists of a lesson and a set of exercises.

Beginner

  • Chapter 1: Basic Prompt Structure

  • Chapter 2: Being Clear and Direct

  • Chapter 3: Assigning Roles

Intermediate

  • Chapter 4: Separating Data from Instructions

  • Chapter 5: Formatting Output & Speaking for Claude

  • Chapter 6: Precognition (Thinking Step by Step)

  • Chapter 7: Using Examples

Advanced

  • Chapter 8: Avoiding Hallucinations

  • Chapter 9: Building Complex Prompts (Industry Use Cases)

    • Complex Prompts from Scratch - Chatbot
    • Complex Prompts for Legal Services
    • Exercise: Complex Prompts for Financial Services
    • Exercise: Complex Prompts for Coding
    • Congratulations & Next Steps
  • Appendix: Beyond Standard Prompting

    • Chaining Prompts
    • Tool Use
    • Search & Retrieval
Dépôts similaires
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

HTMLawesomeOtherchatgptai
prompts.chat
166.3k21.5k
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

Jupyter NotebooktutorialMIT Licenseaichatgpt
113.4k60.9k
JuliusBrussee/caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

JavaScriptnpmskillMIT Licenseaianthropic
caveman.so
92.5k5.2k
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

JavaScriptnpmskillMIT Licenseagent-skillsai-agents
ponytail.dev
88.5k4.8k
dair-ai/Prompt-Engineering-Guide

🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.

MDXMIT Licensedeep-learningprompt-engineering
promptingguide.ai
76.9k8.4k
headroomlabs-ai/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

PythonPyPIApache License 2.0agentai
headroom-docs.vercel.app/docs
61.9k4.7k
asgeirtj/system_prompts_leaks

Extracted system prompts from Anthropic - Claude Fable 5, Opus 4.8, Claude Code, Claude Design. OpenAI - ChatGPT GPT-5.6, Codex GPT-5.6, GPT-5.5. Google - Gemini 3.5 Flash, 3.1 Pro, Antigravity. xAI - Grok, Cursor, Copilot, VS Code, Perplexity, and more. Updated regularly.

JavaScriptnpmCreative Commons Zero v1.0 Universalaianthropic
60.1k9.8k
elder-plinius/CL4R1T4S

LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE! - AI SYSTEMS TRANSPARENCY FOR ALL! 👐

GNU Affero General Public License v3.0aichatgpt
45.9k9.3k
Imbad0202/academic-research-skills

Academic Research Skills for Claude Code: research → write → review → revise → finalize

PythonPyPIskillOtheracademic-writingai-research
buymeacoffee.com/crucify020v
39.3k3.2k
wshobson/agents

Multi-harness agentic plugin marketplace for Claude Code, Codex CLI, Cursor, OpenCode, GitHub Copilot, and Gemini CLI

PythonPyPIskillMIT Licenseagentsanthropic
sethhobson.com
38.2k4.1k
github/awesome-copilot

Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.

PythonPyPIawesomeMIT Licenseaigithub-copilot
awesome-copilot.github.com
37k4.6k
linshenkx/prompt-optimizer

An AI prompt optimizer for writing better prompts and getting better AI results.

TypeScriptnpmOtherllmprompt
prompt.always200.com
32.6k3.8k