Mastering Effective, Efficient, and Reliable Prompting for Claude Sonnet 5.5
Introduction: Why Sonnet 5.5 Deserves Its Own Prompting Guide
- The problem with generic prompt advice
- What this book covers
- What this book is not
- How to use this book
- A note on versions and change
Chapter 1: Why Sonnet 5.5 Is Different
- What “Sonnet 5.5” means: the model family and its positioning
- Key behavioral changes compared to earlier Claude versions
- What “prompting” actually controls versus what API configuration controls
- Why generic prompt-engineering advice often misses the mark
- How this book is structured for progressive mastery
Chapter 2: The Prompting Landscape: Instructions, Configuration, and Safeguards
- The dual levers: what you write in the prompt versus what you set in the API call
- Effort levels: what they are, what they control, and how to choose
- Thinking configuration: upfront thinking versus between_tools and adaptive reasoning
- Token budgets and max_tokens as design decisions
- Where application-level safeguards matter more than prompt instructions
- Summary
Chapter 3: Reading the Official Documentation: What Anthropic Says About Sonnet 5.5
- The “Prompting Claude Sonnet 5.5” document: structure and intent
- Categories of official guidance: documented behavior, recommendations, observations, beta features
- How to interpret empirical claims from the documentation
- Where the documentation is silent and what that means
- Navigating version-specific and evolving behavior
- Summary
Chapter 4: The Anatomy of an Effective Prompt
- Role and context: when it helps, when it is noise
- Objectives and success criteria: stating what “good” looks like
- Task decomposition: breaking complex work into model-friendly units
- Constraints and priorities: guiding tradeoffs without overconstraining
- Input organization: structuring information for clarity and retrieval
- Examples and output specifications: when they are essential versus optional
- Evaluation criteria: giving the model a standard for self-checking
- Stopping conditions: telling Claude when it is done
- Summary
Chapter 5: Concise Versus Detailed: Finding the Right Level of Instruction
- The cost of verbosity: token overhead, attention dilution, and contradictory instructions
- The cost of brevity: ambiguity, missed constraints, and inconsistent output
- When concise prompts succeed: routine tasks, constrained domains, expert users
- When detailed prompts are necessary: novel tasks, ambiguous domains, production reliability
- How to compress prompts without losing essential guidance
- Testing prompt length as a variable
- Summary
Chapter 6: Ambiguity, Conflicting Requirements, and Robustness
- Why ambiguous prompts produce unreliable results
- Resolving conflicting requirements: prioritization strategies
- Explicit ambiguity-handling instructions: what to do when unsure
- Designing for changing inputs: prompts that adapt rather than break
- Failure recovery: asking the model to flag problems instead of hallucinating solutions
- Summary
Chapter 7: Effort Calibration: Quality, Latency, Cost, and the Tradeoff Triangle
- What “effort” means for Sonnet 5.5: official definition and practical effects
- Low effort: when to use it, what you gain, what you risk
- Medium effort: the default operating point for agentic work
- High effort: the API default for excellent results
- Xhigh and Max: complex reasoning, high-stakes tasks, and when it earns its cost
- Measuring the impact: quality vs latency vs token usage vs cost
- How prompt complexity interacts with effort levels
- Decision framework: choosing the right effort for your task
- Summary
Chapter 8: Steering Initiative and Scope: Controlling How Far Claude Goes
- The initiative problem: why Claude adds extra steps, explanations, and recommendations
- When extra initiative is valuable and when it is wasteful
- Explicit scope-limiting instructions: patterns that work
- Preventing unnecessary additions: concise task-bounding language
- Handling open-ended requests: when broadness is a feature versus a bug
- User-facing progress updates: prompting Claude to report back during long tasks
- Controlling follow-up questions and clarifications
- Summary
Chapter 9: Thinking Configuration: Adaptive Reasoning and Strategic Depth
- The three modes: upfront thinking, between_tools, and adaptive thinking
- When upfront thinking helps: complex reasoning before action
- When between_tools helps: iterative planning during tool use
- When adaptive thinking helps: letting the model choose
- Reasoning tasks that produce structured output: special considerations
- How thinking affects latency, token cost, and output quality
- Common misconceptions about thinking and “smarter” responses
- Reading responses by block type
- Summary
Chapter 10: Structured Outputs and JSON Reliability
- Why structured output matters for production workflows
- Prompt-level techniques: schema specification, examples, and constraints
- API-level structured outputs: the dedicated feature and how it differs from prompting
- JSON reliability: factors that improve or degrade format adherence
- Handling schema violations: tolerance, error recovery, and retries
- Complex schemas: nested objects, arrays, unions, and optional fields
- When to use structured outputs versus parsing free-form responses
- Summary
Chapter 11: Tool Use, Research, and Current Information
- How tool use integrates with prompting: definitions, instructions, and constraints
- Tool use for research: prompting Claude to gather and synthesize current information
- Prompting for appropriate tool selection: avoiding overuse and underuse
- Tolerant tool-call handling: parsing errors, retries, and fallback behavior
- Long-running agentic workflows: structuring multi-step tool interactions
- Combining tool results with reasoning: synthesis and verification patterns
- Summary
Chapter 12: Visual Inputs: Charts, Diagrams, and Technical Drawings
- What kinds of visual inputs Sonnet 5.5 handles well
- Prompting for chart and graph analysis: reading values, trends, and patterns
- Technical drawings and schematics: structured extraction from diagrams
- Combining visual and textual prompts: coordinated instructions
- Limitations and failure modes with complex visuals
- Crop tool: improving accuracy on dense charts and drawings
- Summary
Chapter 13: Long-Context Tasks and Massive Inputs
- Context window capabilities and practical limits
- Organizing large inputs: summaries, indexes, and structured access
- Prompting strategies that degrade with context length and alternatives
- Multi-pass processing: chunking, summarizing, and integrating
- Maintaining coherence across long conversations
- When long context helps and when smaller focused contexts work better
- Summary
Chapter 14: Research, Writing, and Content Workflows
- Research prompts: scoping, sourcing, synthesizing, and citing
- Writing prompts: drafting, voice, structure, and completeness
- Editing prompts: critique, revision, tone adjustment, and style enforcement
- Summarization: faithful compression without loss of meaning
- Analysis prompts: comparing sources, extracting insights, and drawing conclusions
- Chain-of-prompts for complex content projects
- Summary
Chapter 15: Coding, Debugging, and Software Engineering
- Coding task scoping: when to be specific and when to trust the model
- Debugging prompts: providing context, error messages, and expected behavior
- Software engineering: architecture, refactoring, and design review
- Verification requirements: testing, edge cases, and self-check patterns
- Incremental development: building codebase changes step by step
- When additional tools or human review are non-negotiable
- Summary
Chapter 16: Data Extraction and Document Processing
- Field extraction: schemas, mappings, and handling ambiguity
- Document classification and categorization
- Entity recognition and relationship extraction
- Dealing with poor-quality, noisy, or inconsistent source documents
- Batch processing patterns and maintaining consistency
- Validation and spot-checking strategies
- Summary
Chapter 17: Planning, Agentic Workflows, and Multi-Step Tasks
- Task planning: prompting Claude to generate executable plans
- Step-by-step execution: maintaining state and progress
- Agentic loops: when Claude should decide what to do next
- Mid-turn user messages: handling interruptions and new information
- Error recovery in long workflows: backtracking and correction
- Designing workflows that are robust to individual step failures
- Summary
Chapter 18: Prompt Injection, Safety, and Refusals
- Prompt injection fundamentals: what it is and how it works
- System prompt versus user message: trust boundaries
- Mid-turn prompt-injection considerations with user messages during long tasks
- Tool-result handling: why untrusted data needs sanitization
- Refusal behavior: categories, triggers, and workarounds (where legitimate)
- Reasoning-extraction requests: what is possible and what is restricted
- When application-level safeguards are required beyond prompts
- Summary
Chapter 19: Reliability Engineering: Making Prompts Production-Ready
- What “reliable” means for LLM prompts: consistency, correctness, and recoverability
- Versioning prompts: tracking changes and impact
- A/B testing prompts: comparing quality and efficiency
- Monitoring output quality: metrics and alerting
- Handling model updates: when behavior changes and how to adapt
- Building fallback strategies for when prompts fail
- Summary
Chapter 20: Prompt Optimization: Improving Without Bloating
- Diagnose-first optimization: identifying the real bottleneck
- Reducing instruction overhead: compression techniques
- Improving accuracy without adding tokens
- Latency optimization: prompt structure, effort, and thinking choices
- Cost optimization: token efficiency across the request-response cycle
- When to stop optimizing: diminishing returns and engineering judgment
- Summary
Chapter 21: Common Failures and Anti-Patterns
- Over-instructing: the paradox of too many rules
- Under-scoping: open-ended prompts that run too far
- Ambiguous success criteria: when “good” means nothing
- Assuming capabilities: expecting what the model cannot reliably do
- Ignoring effort and thinking configuration
- Treating prompts as static: neglecting iteration and testing
- Confusing prompt-level fixes with system-level requirements
- Summary
Chapter 22: Comparative Strategies: Matching Approach to Task Type
- Simple requests: minimal instruction, low effort, no thinking
- Reasoning-intensive tasks: structured thinking, higher effort, verification
- Coding tasks: context-rich, verification-aware, incremental
- Research tasks: tool-heavy, iterative, synthesis-focused
- Agentic workflows: stateful, adaptive, robust to failure
- Structured JSON generation: schema-driven, validation-heavy
- Multimodal tasks: coordinated visual and textual instructions
- Decision guide: matching approach to task
- Summary
Chapter 23: Principles, Patterns, and What Comes Next
- Core principles of effective Sonnet 5.5 prompting
- The most impactful patterns reviewed
- What prompting practice will look like as models evolve
- Staying current: monitoring Anthropic documentation and platform changes
- Final thoughts on treating LLMs as collaborative tools, not oracles
Conclusion: The Craft of Prompting
- From novice to practitioner: the journey mapped
- What makes a great prompter: skills and mindset
- The enduring value of understanding how the model works