原典: Anthropic’s Prompt Engineering Interactive Tutorial

一行要約

9章 + 付録の演習付きコース。章の並びを prompting の学習順序に使える(ただし Claude 3 世代向け) — 基本構造 → 明確さ → role → データと指示の分離 → 出力形式 → 段階的思考 → 例 → hallucination 回避 → 複雑なプロンプトの組み立て。

要点

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

このコースを終えると、良いプロンプトの基本構造を身につけ、よくある失敗の型を見分けてそれに効く「80/20」の技法を学び、Claude の強みと弱みを理解し、よくあるユースケース向けの強いプロンプトをゼロから組めるようになる。

章の順に進める設計で、各レッスンに “Example Playground”(手を動かす場所)がある。答えの鍵(answer key)も公開されている。

章立て

Beginner

  1. Basic Prompt Structure
  2. Being Clear and Direct
  3. Assigning Roles

Intermediate

  1. Separating Data from Instructions
  2. Formatting Output & Speaking for Claude
  3. Precognition (Thinking Step by Step)
  4. Using Examples

Advanced

  1. Avoiding Hallucinations
  2. Building Complex Prompts (Industry Use Cases)
    • Complex Prompts from Scratch — Chatbot
    • Complex Prompts for Legal Services
    • 演習: Complex Prompts for Financial Services
    • 演習: Complex Prompts for Coding

Appendix — Beyond Standard Prompting

  • Chaining Prompts
  • Tool Use
  • Search & Retrieval

現在の文書群との対応

章現在の対応文書
1–2. 基本構造 / 明確さclaude-prompting-best-practices「Be clear and direct」
3. role同「Give Claude a role」
4. データと指示の分離同「Structure prompts with XML tags」、mitigate-jailbreaks(信頼できないコンテンツの扱い)
5. 出力形式 / Speaking for Claude同「Control the format of responses」。prefill 部分は increase-consistency の移行先を参照
6. 段階的思考thinking。推論を書き出させる形は Fable 5.1 / Fable 5 / Opus 5.5 / Opus 5 / Sonnet 5.5 で断られうるので、thinking に任せる
7. 例claude-prompting-best-practices「Use examples effectively」、define-tools の input_examples
8. hallucination 回避reduce-hallucinations
9. 複雑なプロンプトuse-case-guides
付録: chaining / tool use / retrievalclaude-prompting-best-practices「Chain complex prompts」、define-tools、contextual-retrieval

注意: このチュートリアルは Claude 3 Haiku を前提に書かれている。章5の “Speaking for Claude”(prefill)は Claude 4.6 以降では非対応、章6の推論を書き出させる形は上の5モデルで断られうるので、この2章は新しいモデルを対象にした文書(claude-prompting-best-practices)で読み替える必要がある。

そのまま使える具体例

学習順序として使う:

章扱うもの
1. Basic Prompt Structureプロンプトの骨格
2. Being Clear and Direct曖昧さを消す
3. Assigning Rolessystem prompt での role
4. Separating Data from InstructionsXML タグによる分離
5. Formatting Output出力形式の制御
6. Precognition段階的思考。推論を書き出させる形は、Fable 5.1 / Fable 5 / Opus 5.5 / Opus 5 / Sonnet 5.5 では断られうる(claude-prompting-best-practices)ので thinking に任せる
7. Using Examplesfew-shot
8. Avoiding Hallucinations接地と「わからない」の許可
9. Building Complex Prompts実際のユースケースへの組み立て
付録Chaining / Tool Use / Search & Retrieval

原典で言及されている関連文書