一行要約
短い導線ページだが、主張は明確 — prompt engineering に入る前に成功基準と eval を持て、そしてすべての失敗が prompt engineering で解決すべきものではない。
要点
始める前の3つの前提
This guide assumes that you have:
- A clear definition of the success criteria for your use case
- Some ways to empirically test against those criteria
- A first draft prompt you want to improve
本ガイドは次を前提とする。1. ユースケースの成功基準が明確に定義されていること、2. その基準に対して経験的にテストする手段があること、3. 改善したい prompt の初稿があること。
If not, spend time establishing that first. なければ、まずそれを固めることに時間を使え。
初稿がないなら、Claude Cookbook の metaprompt レシピで生成できる。
いつ prompt engineering をするのか
Not every success criteria or failing eval is best solved by prompt engineering. For example, you can sometimes improve latency and cost more easily by selecting a different model. すべての成功基準や、失敗した eval が、prompt engineering で解決するのが最善とは限らない。たとえば別のモデルを選ぶほうが、レイテンシとコストを容易に改善できる場合がある。
技法はどこにあるか
All prompting techniques (from clarity and examples to XML structuring, role prompting, thinking, and prompt chaining) are covered in Prompting best practices. That’s the living reference; start there. 明確さと例示から、XML による構造化、役割の付与、thinking、prompt chaining に至るまで、すべてのプロンプト手法は Prompting best practices に載っている。あれが生きた参照であり、そこから始めよ。
Claude 固有でない一般論は claude.com/blog/best-practices-for-prompt-engineering にある。
対話的に学ぶなら
- GitHub の prompt-eng-interactive-tutorial — 例が豊富なチュートリアル
- Google Sheets 版 — 対話的スプレッドシートとしての軽量版
そのまま使える具体例
作業の順序:
1. 成功基準を定義する → develop-tests
2. 経験的にテストする手段を作る → develop-tests(eval)
3. prompt の初稿を用意する → なければ metaprompt レシピ
4. 技法を適用する → claude-prompting-best-practices(living reference)
5. モデル固有の差分を当てる → prompting-claude-<model>「prompt engineering で解くべきか」の判断:
レイテンシ / コストの問題 → 先にモデル選択と effort を見直す
出力の一貫性の問題 → structured outputs で保証できないか見る
正確さ / 接地の問題 → reduce-hallucinations の技法原典で言及されている関連文書
- claude-prompting-best-practices — living reference。技法の本体
- develop-tests — 成功基準と eval(これが前提条件)
- choosing-a-model — prompt ではなくモデルで解くべき場合
- reduce-latency — レイテンシの改善
- increase-consistency — 一貫性の改善