Docs-backed prompt library

Proven prompts for coding with Claude

Pick a category, skim the list, copy the prompt — all on one screen.

Build Reference patterns Best practices Claude Code

API endpoint from pattern

Add a route that matches your backend conventions, with tests.

The prompt
Add a <METHOD> <route> endpoint following the pattern in @<router-file>. Validate the input, return typed responses, and add one happy-path test plus one error-case test.

Official basis Reference existing patterns and give Claude a check it can run. docs ↗

PromptCategoryTechniqueSource
API endpoint from pattern Add a route that matches your backend conventions, with tests. Build Reference patterns Best practices
Build to a verifiable check Build against a concrete, runnable check. Build Verify your work Best practices
Component clone Spin up a new component that matches an existing one. Build Reference patterns Best practices
Feature from spec Implement one feature that fits the file's existing conventions. Build Give specific context Prompting
Go above and beyond Get an ambitious first version instead of a bare minimum. Build Go above & beyond Prompting
Mockup to code Recreate a design and self-check it visually. Build Use images Common workflows
Package a workflow as a Skill Turn a repeated workflow into a reusable Skill. Build Build Skills Agent Skills
Plan-first scaffold Get an agreed plan before a single line is written. Build Plan first Best practices
Scaffold with TDD Lock behavior with tests before writing the implementation. Build Verify your work Best practices
Spec-first interview Turn a fuzzy feature idea into a written spec. Build Plan first Best practices
Describe the symptom Hand Claude a well-scoped bug it can act on immediately. Debug Give specific context Best practices
Investigate with a subagent Explore a subsystem without bloating your main context. Debug Use subagents Best practices
Pipe logs to Claude Triage a log file without leaving the terminal. Debug Headless & pipes Best practices
Print-debug plan Instrument a hard-to-see bug, then clean up after. Debug Verify your work Best practices
Read before you claim Stop confident-but-wrong answers about unread code. Debug Read before claiming Prompting
Regression bisect Pin a regression to the exact change that introduced it. Debug Point to sources Best practices
Reproduce then fix Turn a bug into a permanent regression test. Debug Verify your work Common workflows
Root-cause first Understand a bug before touching any code. Debug Fix root causes Best practices
Screenshot diagnosis Diagnose a visual or UI bug straight from an image. Debug Use images Common workflows
Stack-trace triage Get a fast, precise read on where a crash originates. Debug Give specific context Common workflows
Extract & dedupe Remove duplication without altering behavior. Refactor Verify your work Best practices
Fan out a migration Plan a repetitive change across many files. Refactor Fan out Best practices
Find deprecated usage first Map the blast radius before starting a migration. Refactor Plan first Common workflows
General solution, not test-gaming Prevent solutions that only satisfy the test cases. Refactor Solve the general case Prompting
No over-engineering Keep a refactor tight and scoped to what was asked. Refactor Small, scoped changes Prompting
Rename safely Rename a symbol everywhere without collateral edits. Refactor Small, scoped changes Prompting
Simplify function Make a gnarly function readable without changing what it does. Refactor Small, scoped changes Common workflows
Split a large file Break up a sprawling file into focused modules. Refactor Plan first Common workflows
Type-tighten Firm up weak types and surface hidden bugs. Refactor Verify your work Best practices
Understand git history first Learn the context behind code before you change it. Refactor Point to sources Best practices
Diff review A focused correctness pass on the change you just made. Review Adversarial review Best practices
Edge-case hunt Find the tests you forgot to write. Review Find edge cases Common workflows
Explain-back Understand unfamiliar code and catch surprises in it. Review Ask like a senior Best practices
Fresh-context adversarial review An unbiased review that won't rubber-stamp your own code. Review Adversarial review Best practices
Performance sniff Catch scaling problems before they hit production. Review Ask like a senior Best practices
PR-ready check Self-review a PR the way a demanding reviewer would. Review Adversarial review Common workflows
Review against the plan Verify the change actually matches the agreed plan. Review Review vs plan Best practices
Security pass A targeted security review of sensitive code. Review Adversarial review Best practices
Structured review rubric Get a review you can parse by concern. Review Structure with XML Prompting
Writer / Reviewer split Get reviewer eyes that aren't biased toward the author. Review Adversarial review Best practices
API endpoint from pattern Add a route that matches your backend conventions, with tests. Reference patterns Build Build to a verifiable check Build against a concrete, runnable check. Verify your work Build Component clone Spin up a new component that matches an existing one. Reference patterns Build Feature from spec Implement one feature that fits the file's existing conventions. Give specific context Build Go above and beyond Get an ambitious first version instead of a bare minimum. Go above & beyond Build Mockup to code Recreate a design and self-check it visually. Use images Build Package a workflow as a Skill Turn a repeated workflow into a reusable Skill. Build Skills Build Plan-first scaffold Get an agreed plan before a single line is written. Plan first Build Scaffold with TDD Lock behavior with tests before writing the implementation. Verify your work Build Spec-first interview Turn a fuzzy feature idea into a written spec. Plan first Build Describe the symptom Hand Claude a well-scoped bug it can act on immediately. Give specific context Debug Investigate with a subagent Explore a subsystem without bloating your main context. Use subagents Debug Pipe logs to Claude Triage a log file without leaving the terminal. Headless & pipes Debug Print-debug plan Instrument a hard-to-see bug, then clean up after. Verify your work Debug Read before you claim Stop confident-but-wrong answers about unread code. Read before claiming Debug Regression bisect Pin a regression to the exact change that introduced it. Point to sources Debug Reproduce then fix Turn a bug into a permanent regression test. Verify your work Debug Root-cause first Understand a bug before touching any code. Fix root causes Debug Screenshot diagnosis Diagnose a visual or UI bug straight from an image. Use images Debug Stack-trace triage Get a fast, precise read on where a crash originates. Give specific context Debug Extract & dedupe Remove duplication without altering behavior. Verify your work Refactor Fan out a migration Plan a repetitive change across many files. Fan out Refactor Find deprecated usage first Map the blast radius before starting a migration. Plan first Refactor General solution, not test-gaming Prevent solutions that only satisfy the test cases. Solve the general case Refactor No over-engineering Keep a refactor tight and scoped to what was asked. Small, scoped changes Refactor Rename safely Rename a symbol everywhere without collateral edits. Small, scoped changes Refactor Simplify function Make a gnarly function readable without changing what it does. Small, scoped changes Refactor Split a large file Break up a sprawling file into focused modules. Plan first Refactor Type-tighten Firm up weak types and surface hidden bugs. Verify your work Refactor Understand git history first Learn the context behind code before you change it. Point to sources Refactor Diff review A focused correctness pass on the change you just made. Adversarial review Review Edge-case hunt Find the tests you forgot to write. Find edge cases Review Explain-back Understand unfamiliar code and catch surprises in it. Ask like a senior Review Fresh-context adversarial review An unbiased review that won't rubber-stamp your own code. Adversarial review Review Performance sniff Catch scaling problems before they hit production. Ask like a senior Review PR-ready check Self-review a PR the way a demanding reviewer would. Adversarial review Review Review against the plan Verify the change actually matches the agreed plan. Review vs plan Review Security pass A targeted security review of sensitive code. Adversarial review Review Structured review rubric Get a review you can parse by concern. Structure with XML Review Writer / Reviewer split Get reviewer eyes that aren't biased toward the author. Adversarial review Review
navigate open esc close
Copied