{
  "id": "prompt-template",
  "code": "PTL-0013",
  "term": "Prompt Template",
  "aliases": [
    "prompt scaffold"
  ],
  "category": "foundations",
  "definition": "A prompt template is a reusable prompt with placeholder variables that are filled in at run time, separating the fixed instructions from the per-request data.",
  "description": "Templates make prompts testable and versionable, and they are the unit optimized by frameworks such as DSPy. Keeping untrusted data in clearly delimited slots also supports defenses against prompt injection.",
  "example": null,
  "broader": [
    "prompt"
  ],
  "narrower": [],
  "related": [
    "delimiters",
    "dspy",
    "spotlighting"
  ],
  "introduced": null,
  "sources": [
    {
      "title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques",
      "authors": "Schulhoff et al.",
      "year": 2024,
      "url": "https://arxiv.org/abs/2406.06608"
    }
  ],
  "url": "https://protologue.com/t/prompt-template/",
  "citation": "Protologue. (2026). Prompt Template. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.0.0, PTL-0013). https://protologue.com/t/prompt-template/"
}