Skip to content
Design
Skill

/template-design

Creating reusable, parameterised prompt templates for consistent outputs.

BOOST
From plugin
ai-design-skills
18844 skills18 commands
Install
$ npx -y skills add owl-listener/ai-design-skills --skill template-design --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/template-design

Context preview

The summary Claude sees to decide when to auto-load this skill.

Creating reusable, parameterised prompt templates for consistent outputs.

SKILL.md

template-design.SKILL.md
name: template-design
description: Creating reusable, parameterised prompt templates for consistent outputs.

Template Design

A prompt template is a reusable prompt structure with variable slots that get filled at runtime. Templates create consistency across similar tasks and make prompt management scalable.

Template Anatomy

A template has:

  • **Fixed text**: The parts that stay the same every time (instructions, format, role)
  • **Variables**: Slots that get filled with specific content (user input, retrieved data, configuration)
  • **Conditional sections**: Parts that appear or disappear based on context
  • **Default values**: What fills a variable if no specific value is provided

Designing Variables

Each variable should be:

  • **Named clearly**: `{user_query}` not `{input1}`
  • **Typed**: Is it free text, a selection from options, a number, a boolean?
  • **Bounded**: What are valid values? What's the maximum length?
  • **Documented**: What is this variable for? Where does its value come from?
  • **Defaulted**: What happens if the value is missing?

Template Patterns

  • **Task template**: A template for a specific type of task. Variables capture the task-specific details while instructions remain constant.
  • **Persona template**: A template where the persona is variable but the task structure is fixed. Useful for multi-persona products.
  • **Format template**: A template where the output format is variable but the analysis approach is fixed.
  • **Escalation template**: A base template with additional sections that activate at higher complexity levels.

Template Composition

Complex prompts can be built from smaller templates:

  • **Base template**: Core instructions that apply to everything
  • **Task overlay**: Task-specific instructions layered on top
  • **Context injection**: Retrieved information inserted at a specific point
  • **User preferences**: Personal settings that modify behavior

Template Quality Criteria

  • **Consistency**: The template produces reliably similar outputs for similar inputs
  • **Flexibility**: The variables allow enough variation for diverse use cases
  • **Clarity**: The template is easy to read, maintain, and modify
  • **Testability**: You can verify the template works with a standard set of test inputs
  • **Maintainability**: Changes to one part don't break other parts

Design Artefacts

  • Template library with documentation
  • Variable specifications per template
  • Test input sets for each template
  • Template versioning and change log
  • Composition rules for combining templates
Read more
Ships withai-design-skills

Part of the Designer Skills suite. Install this collection and four more with one command in Claude Code: /plugin marketplace add Owl-Listener/designer-skills This repo still works on its own. The suite just gives everyone one front door.

Get the whole plugin

Other skills on ai-design-skills.