Prompt Regression Suite logo

Prompt Regression Suite

CommunityPopular
mohitagw15856
prompt-regression-suite

Design a regression test suite that catches an LLM feature getting worse when the prompt, model, or context changes. Use when asked to stop prompt changes breaking production, set up golden tests or CI gates for an LLM feature, or test a model/prompt upgrade before shipping it. Produces a golden case set, per-case pass criteria, CI gate thresholds, and a triage protocol for failures. For designing first-time evaluation of a new feature use ai-eval-plan instead.

Overview

Publishermohitagw15856
Repositorypm-claude-skills
Skill nameprompt-regression-suite
Stars
1.4K
Forks
257
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mohitagw15856 on GitHub. Read the source before you install it.

Installation

Install the Prompt Regression Suite AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-agentops/skills/prompt-regression-suite
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git /tmp/pm-claude-skills
mkdir -p .claude/skills
cp -r /tmp/pm-claude-skills/plugins/pm-agentops/skills/prompt-regression-suite .claude/skills/prompt-regression-suite
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prompt Regression Suite in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Prompt Regression Suite on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Prompt Regression Suite is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Prompt Regression Suite Skill

Every prompt tweak, model upgrade, and context change is a deploy. This skill designs the suite that runs on each one and answers a single question: did anything that used to work stop working?

What This Skill Produces

  • A golden case set: curated inputs with per-case pass criteria
  • Scoring methods per case class (exact, rubric-judge, property checks)
  • CI gate thresholds — what blocks a merge vs. what warns
  • A failure triage protocol — flaky vs. regressed vs. golden-set-wrong

Required Inputs

Ask for (if not already provided):

  • The feature and its contract — what the LLM step receives and must produce
  • What has broken before (or nearly) — past incidents seed the best cases
  • Real traffic examples — 10-20 representative inputs, including ugly ones
  • What triggers a run — prompt edits, model bumps, retrieval changes, all of the above?

Building the Golden Set

Compose the set from four deliberate classes — not a random sample:

ClassPurposeShare
Core pathsThe 5-10 inputs that represent most real traffic~40%
Past failuresEvery input that caused a bug, complaint, or incident — permanently~25%
Edge & adversarialEmpty/huge inputs, wrong language, injection attempts, off-topic~25%
CanariesCases pinned to behaviours you never want to change (refusals, format, tone)~10%

Keep it small enough to run on every change (30-80 cases beats 500 nobody runs). Version it in git next to the prompt.

Scoring Per Case

Choose the cheapest check that catches the regression:

  1. Exact / structural — JSON parses, required fields present, enum values legal. Free and deterministic; use wherever the contract is structural.
  2. Property checks — output contains/never-contains X, length bounds, citation count. Deterministic proxies for quality.
  3. LLM-as-judge with a rubric — only where judgement is unavoidable. Pin the judge model + rubric version, score against the baseline output, and spot-check judge agreement with a human on ~20 cases before trusting it.

Every case records: input, pass criteria, scoring method, and the baseline output at the time it was added.

CI Gates

  • Block the merge: any past-failure or canary case fails; structural pass rate < 100%; overall pass rate drops more than [X]% vs. baseline.
  • Warn, don't block: judge-scored quality drifts within tolerance; latency/cost moves past its soft budget (pair with llm-cost-latency-budget).
  • Every run logs model ID, prompt version, and per-case results — regressions must be diffable to the exact change.

Failure Triage Protocol

When a case fails, classify before "fixing":

  1. Flaky — re-run N times; if intermittent, tighten the prompt/temperature or the check, don't ignore it.
  2. Genuine regression — the change made it worse: revert or fix the change.
  3. Golden set wrong — the new behaviour is actually better: update the case via review, never silently, and record why the expectation changed.

Output Format

Prompt Regression Suite: [feature]

Trigger: runs on [prompt edit / model bump / retrieval change] via [CI job].

Golden set ([n] cases):

#ClassInput (summary)Pass criteriaMethod

Gates: merge blocks when [conditions]. Warnings on [conditions].

Triage: [the three-way protocol, with who owns updates to the golden set]

Maintenance: every production incident adds a case within [period]; the set is reviewed for dead cases each [quarter].

Quality Checks

  • Every past production failure appears as a permanent case
  • Canary cases cover the behaviours that must never change (refusals, format, safety)
  • No case relies on an LLM judge where a structural or property check would do
  • Gate thresholds are numbers, not "significant degradation"
  • The suite is fast and cheap enough that it actually runs on every change — state its runtime and cost

Anti-Patterns

  • Do not test only happy paths — the suite exists for the inputs that hurt you
  • Do not let anyone update golden expectations in the same PR that broke them, without review
  • Do not use an unpinned judge model — a judge that upgrades itself moves your baseline silently
  • Do not treat pass-rate-vs-baseline as the only gate — one dead canary matters more than 2% aggregate drift
  • Do not grow the set unboundedly — a suite too slow to run on every change protects nothing

Example Trigger Phrases

  • "Stop prompt changes breaking production."
  • "Set up golden tests or CI gates for an LLM feature."
  • "Test a model/prompt upgrade before shipping it."

Frequently asked questions

What does the Prompt Regression Suite AI skill do?

Design a regression test suite that catches an LLM feature getting worse when the prompt, model, or context changes. Use when asked to stop prompt changes breaking production, set up golden tests or CI gates for an LLM feature, or test a model/prompt upgrade before shipping it. Produces a golden case set, per-case pass criteria, CI gate thresholds, and a triage protocol for failures. For designing first-time evaluation of a new feature use ai-eval-plan instead.

Why use Prompt Regression Suite on TypingMind?

Because you install it once and use it with any model. Prompt Regression Suite is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Prompt Regression Suite in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-agentops/skills/prompt-regression-suite. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Prompt Regression Suite?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Prompt Regression Suite?

As many as you like. As long as a model supports skills, you can use Prompt Regression Suite with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Prompt Regression Suite AI skill free?

Yes. It is published on GitHub by mohitagw15856 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇