prompt-regression-testing

prompt-regression-testing is a skill for Codex from jeremylongworth-source/AgentSkills. It costs 46 tokens per session (291 once invoked), scanned A, original, MIT.

A set of repeatable checks for prompts used with coding-agent skills and workflows. It tests whether the agent still behaves as intended after changes.

In plain words
What is it for?
It helps create normal, edge, and failure-case prompts with expected behavior, acceptance rules, and instructions for when to rerun them.
Why use it?
It helps catch regressions, such as missed cases, unsafe actions, or skills triggering when they should not.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit It helps create normal, edge, and failure-case prompts with expected behavior, acceptance rules, and instructions for when to rerun them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeremylongworth-source/agentskills/prompt-regression-testing
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 jeremylongworth-source/AgentSkills --skill prompt-regression-testing
Clone the repo
git clone --depth 1 https://github.com/jeremylongworth-source/AgentSkills

Made for: 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-regression-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeremylongworth-source/agentskills/prompt-regression-testing/github.svg)](https://agentmods.dev/skills/jeremylongworth-source/agentskills/prompt-regression-testing)
Your own site
<a href="https://agentmods.dev/skills/jeremylongworth-source/agentskills/prompt-regression-testing"><img src="https://agentmods.dev/badge/skills/jeremylongworth-source/agentskills/prompt-regression-testing/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-regression-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeremylongworth-source/agentskills/prompt-regression-testing"><img src="https://agentmods.dev/badge/skills/jeremylongworth-source/agentskills/prompt-regression-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 291 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.
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.00046 $0.00291
Opus 5 $0.00023 $0.00146
Sonnet 5 $0.00009 $0.00058
Haiku 4.5 $0.00005 $0.00029

Measured 7d ago against content hash 766857596ffd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

prompt-regression-testing 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 7d 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.

skills/prompt-regression-testing/SKILL.md · 42 lines

What it actually says

Prompt Regression Testing

Core Workflow

  1. Identify the behavior that must not regress and the artifact it affects.
  2. Create compact prompts for normal, edge, and known-failure cases.
  3. Define expected invariants rather than brittle exact wording.
  4. Pair each prompt with acceptance criteria and expected routing.
  5. Add negative cases for over-triggering, unsafe actions, or missing context.
  6. Record when the prompt should be re-run: before release, after skill edits, after host behavior changes, or after incidents.

Safety Rules

  • Do not include secrets, real customer data, or sensitive incidents in committed prompt tests.
  • Do not make tests depend on exact prose unless exact language is the product.
  • Do not rely only on happy-path prompts for high-risk skills.

Deliverable Shape

For prompt regression plans, provide:

  • Behavior under protection
  • Prompt set
  • Expected routing
  • Acceptance criteria and invariants
  • Negative cases
  • Re-run trigger
  • Validation command or review path

References

  • Read references/prompt-regression-testing-checklist.md when designing prompt regression coverage.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 42 lines · 46 tokens per session scan A 766857596ffd

Subscribe to this mod's changes

prompt-regression-testing is a skill published in the GitHub repository jeremylongworth-source/AgentSkills (1 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 291 once invoked, about $0.0002 per session on Opus 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.