Claude

Claude Code best practices: the official resources

Anthropic's own docs, courses, talks and videos on using Claude Code well, collected in one place.

Beginner 5 min read 6 sections 2026-10-30 Updated 2026-10-31

Anthropic builds Claude Code, and its team has already written the best guidance on how to use it. Rather than rewrite that, this page points you to it. Everything below is made and kept up to date by Anthropic. We add a one-line summary so you can pick where to start.

Claude Code changes every few months, so we favor pages Anthropic keeps current over one-off posts. Talks and events show their date so you can tell how recent they are.

The short version

Anthropic's best-practices guide boils down to this. Claude Code's defaults already handle most plain prompts well, so these are for when they don't:

  • Tell Claude what it can't see. Put the exact test, typecheck and lint commands, the team's decisions and the misleading corners of the codebase in a short CLAUDE.md. Leave out what Claude can read from the repo. Our CLAUDE.md guide shows how.
  • Give it a check to run. A test, a build or a linter that comes back pass or fail lets Claude find and fix its own mistakes instead of stopping when the work only looks done. Ask for the command it ran and the output as evidence.
  • Enforce the rules that can't have exceptions. A line in CLAUDE.md works most of the time. For "always" and "never", use hooks and permission rules, which Claude Code enforces whatever Claude decides.
  • Steer early. Watch the first minute and press Esc the moment it drifts. After two failed corrections, run /clear and write a better prompt instead of a third.
  • Drop the old workarounds. ALL CAPS and IMPORTANT, "think harder", and "keep going, don't be lazy" are no longer needed with current models. Plain, specific instructions work better.

Start here

Set up your project

Stay current

Courses and training

Talks and videos

Keep going