ClaudeMap

Claude Prompting Best Practices

Anthropic's official prompting guidance — clear instructions, examples, XML structure, and thinking.

Prompt Librariesofficialpromptsdocsanthropic

Anthropic's official prompting best-practices page: how to be clear and contextual, use examples (multishot), let Claude think (chain of thought), structure with XML tags, chain prompts, and migrate away from prefilled responses. The successor to the former standalone prompt library page, and the right first stop before reaching for community prompt lists since it is maintained against current Claude models.

What it does

  • Anthropic's reference for prompt engineering with current Claude models — name-checks Fable 5.1, Mythos 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5
  • Three-part structure: model-specific guidance first, techniques for all current models after, migration considerations last
  • Techniques span clarity and directness, added context, examples, XML-structured prompts, roles, long-context prompting and output formatting
  • Dedicated sections for tool use (including parallel calling), thinking and interleaved thinking, and agentic systems with multiwindow workflows

When to use it

The first stop before shipping or debugging production prompts — model-specific behavior differences come before general techniques.

Getting started

No install — reference docs at platform.claude.com; a .md variant of the page is fetchable for offline reading

Things to know

Guidance is scoped to current Claude models and rolls with new generations — read the model-specific part before migrating older prompts.

Charted

Related on the map

  • Version-by-version teardown of Claude Code's system prompts and 27 built-in tool descriptions, updated with every release.

    • system-prompt
    • claude-code
    • analysis
    • prompt-engineering
  • A single-file CLAUDE.md distilling Karpathy's coding observations into four working rules (211k stars).

    • claude-md
    • rules
    • prompt-engineering
    • best-practices
  • prompts.chat

    Prompt Library

    The de-facto standard ChatGPT role-prompt collection (f.k.a. Awesome ChatGPT Prompts).

    • prompts
    • awesome-list
    • roles
    • community