Claude Code Prompt Templates
A curated set of prompt templates for common engineering tasks in Claude Code.
Each template uses a clear role, XML-tagged inputs, and an explicit output
format so Claude produces structured, reviewable results.
How to use
- Copy a template into Claude Code.
- Replace every
[placeholder] and fill the XML input blocks.
- Delete sections that don't apply — empty placeholders dilute the prompt.
- For multi-file work, prefer running this in a repo where Claude Code can
read existing files; reference paths with
@path/to/file instead of
pasting code when possible.
General tips that apply to all templates:
- Be specific about constraints (perf budgets, deps, runtime, target users).
- Ask Claude to plan first, then implement — this is baked into every template.
- If the task is large, run it in plan mode first and confirm the plan before
execution.
1. Production Feature Builder
2. Full App From Scratch
3. Codebase Understanding + Refactor