AI CompendiumA public chart of the language
Home / Prompting & Structure / Prompt Template
Prompting & Structure

Prompt Template

A prompt with variables, versioned like code.

Definition

A reusable prompt with placeholders filled at runtime. Treating templates as versioned artifacts — reviewed, diffed, rolled back — is basic hygiene once prompts drive production behaviour.

Prompts are configuration with the power of code. Without versioning, you cannot reproduce an incident or roll back a bad change.

Versioning prompts is the practice that makes everything else possible: it is what lets you attribute a behaviour change to a specific edit, roll back a bad one, and reproduce an incident. Without it, a quality regression has no diff to inspect.

How people use it
Auditing a behaviour change.
"Nothing shipped this week except a prompt tweak. Check the template history, not the deploy log."
Worked example

Finding the change nobody deployed

Output quality shifted and no code was released.

Check the template history. A prompt edit is a behaviour change and needs the same review and the same rollout discipline as code. Teams that version prompts find this in minutes; teams that do not spend a week looking at the model vendor.

Sources
  • docsPrompt engineering overview ↗Claude platform docs · 2026

    Ties each prompting technique to a success criterion and to empirical evaluation, rather than presenting them as a bag of tricks.

  • docsEvaluation best practices ↗OpenAI API docs · 2026

    Evals as structured tests: task-specific test sets, continuous evaluation, logging, and human calibration of automated scoring.

Related terms