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.
npx skills add jnPiyush/AgentX --skill prompt-versioninggit clone --depth 1 https://github.com/jnPiyush/AgentXWrote 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.
[](https://agentmods.dev/skills/jnpiyush/agentx/prompt-versioning)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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 2mo 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.
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
- Every prompt must live in a repo file, not only in code, a portal, or a secret note.
- Every meaningful prompt change requires evaluation evidence against a stable dataset or rubric.
- Prompt variants must have a naming scheme that communicates role, model target, and lifecycle stage.
- Accepted baselines belong next to prompt evolution, not in someone else's memory.
- 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.
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.
- 2mo ago Changed 9bc0b5704b23
- 2mo ago First seen · 129 lines · 47 tokens per session scan A c2f911852239
prompt-versioning is a skill published in the GitHub repository jnPiyush/AgentX (19 stars, last pushed today), 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.
prompt-versioning compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prompt-versioningjnPiyush/AgentX | Skill | 19 | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| prompt-versioning-hygienesigistry/marketplace | Skill | 3 | 3d ago | MIT | A | 75 | Claude Code |
| llm-app-patternsdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 54 | Claude Code, Codex |
| emerging-techniques-model-mergingdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 77 | Claude Code, Codex |
| enhance-promptgoogle-labs-code/stitch-skills | Skill | 15k | today | Apache-2.0 | A | 41 | Claude Code |
| prompt-engineerJeffallan/claude-skills | Skill | 13k | today | MIT | A | 93 | Claude Code |
| prompt-optimizationlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 105 | Claude Code, Codex |