Prompting Claude
Work across Fable, Opus, Sonnet and Haiku with clear document, coding and tool instructions.
Model selection
| Model or service | Use case | Model ID or access |
|---|---|---|
| Claude Sonnet 5.5 | Balanced daily work | claude-sonnet-5-5 |
| Claude Opus 5.5 | Long-running coding and analysis | claude-opus-5-5 |
| Claude Fable 5.2 | Demanding reasoning and agent work | claude-fable-5-2 |
| Claude Haiku 5.5 | Low-latency extraction and routing | claude-haiku-5-5 |
Which model to choose
The official catalog recommends Opus 5.5 as a starting point. Compare Sonnet 5.5 for faster work, Fable 5.2 for demanding cases that Opus cannot complete, and Haiku 5.5 for repeated low-latency extraction.
Using the chat or local app
Attach the document, label what it represents, and state whether you want a review or changes. Place the final question after a long document and identify the audience for the answer.
Using the API
Keep durable rules in system and task material in messages. Configure adaptive thinking and effort for the selected model; current Opus and Fable models always reason. Do not end a request with a partial assistant prefill: current models reject it. For strict machine-readable output use the supported structured-output schema.
POST /v1/messages
{
"model": "claude-opus-5-5",
"max_tokens": 1200,
"system": "Cite the supplied material for each finding.",
"messages": [
{
"role": "user",
"content": "Review this proposal: {{proposal}}"
}
]
}Prompting advice
- Give one representative example for a required writing style or format.
- Use document labels so a review can cite specific passages.
- Give the exact completion checks and explain what the model cannot infer from the repository or attached material.
Agent usage
Claude Code
2.1.332 is the CLI stable-release snapshot, separate from Claude model versions. Use the model selector to inspect models enabled by your account or provider.
- Explain missing context and give a concrete check. Keep CLAUDE.md focused on enduring project rules rather than repeating defaults.
- Use permissions, sandboxing or hooks for rules that must be enforced; prose in a prompt is not an access-control mechanism.
claude --version
# In a session: /modelExample prompt template
Implement {{change}} in {{project}}. Keep {{existing contract}} working and use the project conventions. Verify using {{check command}} and inspect {{expected result}}. If a required detail is absent, identify the gap before making a decision that changes the contract. Report the modified files and the actual check result.Example prompt template
<document name="proposal">{{proposal}}</document>
Review this proposal for the project owner. List blocking risks, each with the supporting passage and the smallest verification that would resolve it.