OmniscioGuidesClaude Code prompt library
Claude Code prompt library: six patterns that work
A prompt that works is not a magic sentence. It is a request shaped so Claude can act on it without asking you three questions first: it names the outcome, somewhere to check the work, and how the answer should come back.
This page covers what Anthropic's prompt library is, the six patterns behind the prompts on it, where the prompts come from, and how to turn one that works for your project into something your whole team can run.
Sources read on November 22, 2026. By the Omniscio team. Updated .
What the prompt library is
The prompt library is a set of prompts to copy into Claude Code. Anthropic publishes it for two situations: to explore ways of working you haven't tried, and for when you're not sure where to start on a task.
The prompts are starting points rather than scripts. Under any prompt on the page, a Why this works section opens up the pattern behind it, so that the next prompt on the same job can be written by you rather than copied.
That framing is the useful part. A prompt that happened to work for someone else's repository rarely survives being pasted into yours, but the shape it had usually does. The next section is that shape.
The six patterns behind the prompts
The prompts share a small set of patterns, and Anthropic's own examples show each one on its own.
1. Describe the outcome, not the steps
Say what you want and let Claude find the files. The example below works without naming a single file path:
add rate limiting to the public API and make sure existing tests still pass2. Give it a way to check its own work
Ask for the run, the test, the comparison or the verification 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 matchesTo check the finished change against the running app, Anthropic points at /verify, which is documented with its skills.
3. Point at a reference
Name an existing file, test or pattern to match, so the new code looks like what you already have:
add a settings page that follows the same layout as the profile page4. State the measurable target
When the goal is performance or coverage, give the metric and the threshold, so "done" is unambiguous:
get the bundle size under 200KB and show me what you removed5. Hand over the artifact
Paste the error, the log, the screenshot or the plan output into the prompt, or type @ to reference a file. Claude then reads the source instead of your description of it:
why is the build failing? @build.log6. Say how you want the answer
Name the format, the length or the audience, so the explanation fits how you will use it. To make one 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 browserSources: "Prompt library" and "What makes these prompts work" in Prompt library, read November 22, 2026.
Where the prompts come from
Anthropic assembles the library from published material rather than inventing prompts for the page, and links each prompt to its source. There are four:
- Common workflows: step-by-step guides for the core tasks.
- Best practices: prompting patterns and project setup.
- How Anthropic teams use Claude Code: real workflows from engineering, product, design and data teams, with deeper write-ups for legal, marketing and cybersecurity.
- The scaling agentic coding guide: Anthropic's enterprise adoption guide, published as a PDF.
The Common workflows page it draws on covers the jobs a working repository throws up: exploring unfamiliar code, fixing a bug, refactoring, writing tests, opening a pull request and writing documentation.
Two of our own pages go deeper on that material: the best practices guide covers how to work with a session day to day, and the everyday tasks guide walks the common jobs step by step.
From one good prompt to something repeatable
A prompt that worked once is a starting point, not a tool. Anthropic's next step is to make it repeatable in two places: save it as a skill, so anyone on the team can run it as a slash 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, so the prompt is checked against the work it is about to cause.
Those three pieces have their own guides: skills for the saved command, CLAUDE.md for the project context, and permission modes for plan mode and what it approves.
If you keep several sessions going at once, the patterns matter more rather than less: a prompt that states its own check is the one you can leave running while you read another session, and one that leaves out the target is the one that comes back with a question.
Source: "Related resources" in Prompt library, read November 22, 2026.
Rolling the same prompts out to a team
Anthropic names two pages for a team rollout: administration, for managed settings and policy, and costs and usage, for how the work is billed on your plan.
The library itself needs no rollout: it is documentation you read and copy from.
The parts that do need a decision are the ones that change every session: what goes in CLAUDE.md, which prompts become shared skills, and which permission mode a session starts in. The managed settings guide covers the settings that apply across a team.
Where these answers come from
- Everything on this page about the library, its patterns, its example prompts and where they come from: Prompt library, read November 22, 2026.
- The two pages it names for a rollout, administration and costs, were named by the library page; the claims here are the library page's own.
No prompt on this page was run against a repository to check it: every example is Anthropic's own wording from the library, quoted as it appears.
Common questions
What is the Claude Code prompt library?
It is a library of prompts to copy into Claude Code, published in Anthropic's documentation. Anthropic suggests it for exploring ways of working you haven't tried, or for when you're not sure where to start. The prompts are starting points rather than scripts.
Do I have to use the prompts word for word?
No. Each prompt is a starting point, and Anthropic puts a Why this works note under each one so you can see the pattern behind it and write your own. The six patterns are the part worth keeping.
How do I make a prompt I like run every time?
Save it as a skill, so anyone on your team can run it as a slash command, and record the conventions Claude learned in CLAUDE.md so every session starts with that context. For larger or riskier changes, plan mode shows you the file list before any edits happen.
Are the prompts written for one type of team?
One of the library's sources is Anthropic's write-up of real workflows from its engineering, product, design and data teams, with deeper dives on legal, marketing and cybersecurity. What the prompts share is the six patterns, whichever team wrote them.