prompt-versioning

prompt-versioning is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 47 tokens per session (1,191 once invoked), scanned A, original, Apache-2.0.

A guide to treating prompts as tracked project files that can be tested, reviewed, released, and reverted like code.

In plain words
What is it for?
Use it to manage prompt variants, few-shot examples, evaluation baselines, development and production releases, and recovery from a bad prompt change.
Why use it?
It helps teams compare prompt changes with evidence instead of relying only on opinions. It also makes model-specific variants, staged releases, and rollback possible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to manage prompt variants, few-shot examples, evaluation baselines, development and production releases, and recovery from a bad prompt change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnpiyush/agentx/prompt-versioning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jnPiyush/AgentX --skill prompt-versioning
Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompt-versioning

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnpiyush/agentx/prompt-versioning/github.svg)](https://agentmods.dev/skills/jnpiyush/agentx/prompt-versioning)
Your own site
<a href="https://agentmods.dev/skills/jnpiyush/agentx/prompt-versioning"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/prompt-versioning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompt-versioning

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnpiyush/agentx/prompt-versioning"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/prompt-versioning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,191 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01191
Opus 5.5 $0.00019 $0.00476
Sonnet 5.5 $0.00009 $0.00238
Haiku 4.5 $0.00005 $0.00119

Measured 1mo ago against content hash 9bc0b5704b23, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prompt-versioning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/ai-systems/prompt-versioning/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt Versioning

WHEN: Managing prompts as versioned production assets with diffable changes, prompt variants, few-shot evolution, evaluation baselines, promotion criteria, and rollback safety.

When to Use

  • Introducing prompt files into a team workflow for the first time
  • Managing prompt variants per model, task, or environment
  • Reviewing prompt changes with eval evidence instead of subjective judgment only
  • Promoting prompts through dev, canary, and production stages
  • Rolling back bad prompt releases safely

Decision Tree

Changing a prompt?
+- Small wording tweak only?
|  - Still run regression tests against the fixed dataset
+- Few-shot examples changed?
|  - Treat as a semantic behavior change and compare to baseline
+- New model target?
|  - Branch or parameterize prompt variants per model family
+- Multiple environments?
|  - Keep one source prompt with explicit overlays or clear variant files
+- Need rollback?
|  - Keep last-known-good version and accepted baseline together
-- Need reviewability?
   - Store prompts as files, never hidden inside code or portal-only state

Core Rules

  1. Every prompt must live in a repo file, not only in code, a portal, or a secret note.
  2. Every meaningful prompt change requires evaluation evidence against a stable dataset or rubric.
  3. Prompt variants must have a naming scheme that communicates role, model target, and lifecycle stage.
  4. Accepted baselines belong next to prompt evolution, not in someone else's memory.
  5. Rollback must be trivial: the previous approved prompt and its baseline should be easy to restore.

Directory Pattern

prompts/
  support-agent.md
  support-agent.gpt-5.md
  support-agent.claude-opus.md
templates/
evaluation/
  datasets/
  rubrics/
  baseline.json

Versioning Pattern

  • Use Git as the source of truth.
  • Add a short header in each prompt with purpose, target model family, owner, and last validated date.
  • When variants diverge materially, split them into separate files rather than hiding branches inside code.
  • Record why a prompt changed, not only what text changed.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 9bc0b5704b23
  2. 1mo ago First seen · 129 lines · 47 tokens per session scan A c2f911852239

Subscribe to this mod's changes

prompt-versioning is a skill published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,191 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

typesafe-ai

Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when…

nicknisi/dotfiles · 123 tokens

prompt-versioning-hygiene

This skill should be used when the user mentions "prompt engineering", "prompt versioning", "prompt management", "system prompt", "prompt template", "manage prompts", or "prompts scattered in code". It provides a methodology for treating prompts as versioned, reviewable, testable code rather than magic strings buried…

sigistry/marketplace · 75 tokens

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens

model-merging

Merge multiple fine-tuned models using mergekit to combine capabilities without retraining. Use when creating specialized models by blending domain-specific expertise (math + coding + chat), improving performance beyond single models, or experimenting rapidly with model variants. Covers SLERP, TIES-Merging, DARE, Task…

davila7/claude-code-templates · 73 tokens

prompt-engineer

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot…

Jeffallan/claude-skills · 93 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens