/builder-ai:prompt-versioningfrom builder-ai
Use whenever writing or modifying a prompt that will run in production. Enforces version-controlled prompts in prompts/<feature>/v<x.y.z>.md. Blocks "the prompt is in the code somewhere" completions.
Ships in builder-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A PROMPT WITHOUT A VERSION NUMBER CANNOT BE DEBUGGED, ROLLED BACK, OR IMPROVED.
"It's tracked in git" is not versioning — the file has no history of intent.
"I'll version it later" means you'll debug a production regression with no baseline.
prompts/<feature>/v<x.y.z>.md with a CHANGELOG entry IS versioning.
Trigger whenever:
prompts/
<feature-name>/
v1.0.0.md ← original version
v1.1.0.md ← iteration (changed few-shots, added constraint)
v2.0.0.md ← breaking change (new output schema)
CHANGELOG.md ← what changed between versions and why
The current version is the highest version number. Never delete old versions — they are the rollback path.
| Bump | When | Example |
|---|---|---|
| Patch (x.y.Z) | Whitespace, typo, minor wording — output distribution unchanged | "Please" → "please" |
| Minor (x.Y.0) | New instruction, example, or constraint — output likely changes | Added 3 few-shot examples |
| Major (X.0.0) | New output schema, restructured reasoning, different task framing | JSON → structured XML |
---
version: 1.2.0
feature: <feature-name>
model: claude-sonnet-4-6
temperature: 0.3
max_tokens: 512
created: 2026-06-07
eval_suite: evals/<feature-name>/
---
<system>
[system prompt text]
</system>
<user>
[user turn template — use {{variable}} for substitutions]
</user>
All fields are required. eval_suite links to the eval that validates this version.
Before writing the prompt text, create the file at its versioned path:
prompts/<feature>/v1.0.0.md
Fill in the frontmatter completely. Writing the metadata first makes the constraints explicit before the prompt body.
Write the prompt in the versioned file — not in a scratch pad, not in the chat, not inline in the codebase as a string. The file IS the source of truth. If the codebase contains the prompt text as a string, the prompt is not versioned. The code must reference prompts/<feature>/v<x.y.z>.md as a file path — not copy its content inline. Inline prompts cannot be rolled back in 30 seconds; they require a code deploy.
Every version requires a CHANGELOG entry:
## v1.2.0 — 2026-06-07
Changed: Added refusal instruction for out-of-scope queries
Why: Eval showed 8% refusal rate drop in v1.1.0 failure analysis
Eval: evals/<feature>/results-2026-06-07.md (89% → 93%)
No version goes to production without an eval run. Reference the eval in the frontmatter's eval_suite field.
If a version regresses in production, the rollback is a one-line change: point the code to the previous version file.
# Before (broken)
PROMPT_PATH = "prompts/classifier/v1.2.0.md"
# After (rollback — takes 30 seconds)
PROMPT_PATH = "prompts/classifier/v1.1.0.md"
This is only possible if the old version was not overwritten. Never edit in place — always create a new version file.
These thoughts mean the prompt is not versioned — stop:
When prompt-versioning is satisfied, state it like this:
Prompt versioned.
File: prompts/<feature>/v<x.y.z>.md
Frontmatter: model, temperature, max_tokens, eval_suite — all set
CHANGELOG.md: entry written (what changed, why, eval reference)
Previous version: v<prev> → this version: v<x.y.z>
Eval: <pending / evals/<feature>/results-<date>.md ✓>
Prompts are the most fragile part of an LLM system. A word change shifts the output distribution. Without versioning you cannot: compare what changed, reproduce the version that worked, run A/B tests with confidence, or diagnose a regression after it reaches users.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
builder-ai@rbraga01 is listed by rbraga01/a-team — review the source before installing
npx claudepluginhub rbraga01/a-team --plugin builder-ai8 skills in this plugin
/ai-cost-auditUse before launching any LLM feature or when monthly API costs are growing unexpectedly. Requires token count measurement, call volume analysis, and cost projection at 10× scale. Blocks "it's cheap enough now" completions./ai-safety-reviewUse before shipping any LLM feature that touches users. Reviews prompt injection, hallucination risk, output misuse, agentic scope, and abuse vectors. Blocks "nobody will try that" completions./context-optimizationUse when prompt cost is too high, latency is above threshold, or context window limits are being approached. Requires measurement before and after each reduction. Blocks "I shortened the prompt so it should be cheaper" completions./eval-before-shipUse before merging, deploying, or demo'ing any LLM feature. Requires documented eval results — pass rate, failure analysis, baseline comparison. Blocks "it looked good when I tested it" completions./fallback-requiredUse before merging any PR that adds an LLM API call. Every call must handle timeout, malformed output, low confidence, and refusal — with a defined, user-safe fallback for each. Blocks "add error handling later" completions./model-benchmarkingUse when selecting a model for any production feature, or evaluating whether to switch models. Requires task-specific benchmarking — not leaderboard lookup. Blocks "GPT-4 is the best model" decisions.