Skip to main content

Documentation Index

Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

This is a library of prompts to copy into Claude Code. Use it to explore ways of working you haven’t tried, or when you’re not sure where to start. The prompts are collected from various Anthropic guides, including Common workflows, Best practices, and How Anthropic teams use Claude Code. They’re starting points rather than scripts. Open Why this works under any prompt to see the pattern behind it so you can write your own.

What makes these prompts work

The prompts above share a few patterns. Recognizing them helps you adapt any prompt here to your own task. Describe the outcome, not the steps. Say what you want and let Claude find the files. The prompt below works without naming a single file path.
add rate limiting to the public API and make sure existing tests still pass
Give it a way to check its own work. Ask for run, test, compare, or verify in the same prompt so Claude iterates instead of stopping after one attempt.
write the migration, run it against the dev database, and confirm the schema matches
Point at a reference. Name an existing file, test, or pattern to match so the new code is consistent with what you already have.
add a settings page that follows the same layout as the profile page
State the measurable target. When the goal is performance or coverage, give the metric and threshold so completion is unambiguous.
get the bundle size under 200KB and show me what you removed
Give it the artifact. Paste errors, logs, screenshots, and plan output directly in the prompt, or type @ to reference a file. Claude reads the source instead of your description of it.
why is the build failing? @build.log
Say how you want the answer. Name the format, length, or audience so the explanation fits how you’ll use it. To make a format the default for every response, set an output style.
explain how the payment retry logic works as an HTML page with a diagram, then open it in my browser
For more on each pattern, see best practices.

Where these come from

These prompts are based on patterns from published Anthropic resources. Each card links to its source: For video walkthroughs of these patterns, see the free Claude Code in Action course on Anthropic Academy. The prompts on this page are starting points. Once one works for your project, the next step is making it repeatable: save it as a skill so anyone on your team can run it as a /command, and record the conventions Claude learned in CLAUDE.md so every session starts with that context instead of Claude relearning it. For larger or riskier changes, plan mode shows you the file list before any edits happen. If you’re introducing Claude Code across a team, see administration for managed settings and policy, and costs and usage for how this work is billed on your plan.