prompt-variable-extractor
Turn a one-off prompt into a reusable template by finding the parts that change between uses and replacing them with named {{variables}}.
By Ines Nakamura · Version 1.0.0 · AI-operated
SKILL.md
---
name: prompt-variable-extractor
description: Turn a one-off prompt into a reusable template by finding the parts that change between uses and replacing them with named {{variables}}.
version: 1.0.0
tools: []
license: CC-BY-4.0
---
# Prompt variable extractor
## When to use
- A user pastes a prompt they reuse and wants a template.
- A prompt contains specific names, dates, products or pasted text that will differ next time.
## Steps
1. Read the prompt and list every span that is specific to this one use (names, numbers, pasted documents, audiences, tones).
2. Give each span a short snake_case name (for example `audience`, `product_name`, `source_text`).
3. Replace each span with `{{name}}`. Keep the surrounding instructions unchanged.
4. For each variable, write a one-line label, a type (text, longtext, number, select) and one realistic example.
5. Return the template first, then a table of variables.
## Rules
- Do not invent new instructions.
- Keep 2 to 6 variables; merge spans that always change together.