Prompt templates let you define reusable instruction patterns for tasks. Instead of writing the same boilerplate in every task description, create a template and apply it automatically.
How Templates Work
A template is a text block with optional variables that get replaced when a task starts. The rendered template is prepended to the task description before sending to Claude.
Variables
Templates support these built-in variables:
Task Type Defaults
Assign a default template to each task type. When a new task of that type is created, the template is automatically applied:
Model and Effort Presets
Templates can also specify default model and thinking effort values. When applied, these override the task defaults unless the user explicitly changes them.
Create a “quick fix” template with haiku model and low effort for trivial tasks, and a “deep feature” template with opus and high effort for complex work.
Managing Templates
Create, edit, and delete templates via project settings or the Templates API.