# Prompt Change Gate — Catch Prompt Regressions Early

> Give your agent a discipline: golden cases before and after every prompt change, and a regression-first report it must not ignore.

Prompt Change Gate — Catch Prompt Regressions Early is a paid AI agent skill on Agensi by LINH RATHHENRY, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [LINH RATHHENRY](https://www.agensi.io/creators/linh-rathhenry)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/prompt-change-gate-catch-prompt-regressions-early
- Tags: prompt-engineering, testing, llm-ops, python, json

## About this skill

The product here is a workflow for your agent, packaged as a skill — the small local tool underneath is just its engine. SKILL.md teaches your agent a habit most teams never build: before any prompt, model, or extraction-schema change ships, run a set of golden cases (input text → the JSON that must come back) through the old prompt and the new one, and read a report that leads with regressions — cases that passed before and fail now. The skill states the rule plainly: never ship a prompt change with regressions nobody has reviewed. What the engine does: golden cases in one JSON file (input text, the fields and values that must come back, forbidden substrings that must never appear); provider-neutral (runs any command that reads text on stdin and prints the model's raw output); real-world output shapes (extracts JSON embedded in prose or code fences; valid JSON of the wrong shape still fails); recursive value matching with a forgiving normalizer (trimmed case-insensitive strings, numeric tolerance, "$1,234.56" = 1234.56) at every level; a gate that cannot pass vacuously (empty case file or duplicate case IDs are setup errors, exit 2); CI-ready exit codes, with a GitHub Actions example included. Honest scope: zero-install (standard-library Python only), extraction-focused, agent-native; checks structured output, not open-ended generation quality; runs entirely on your machine. Includes a full working demo with no API calls: a good fake model and a "broken" one simulating a prompt change that dropped a field and changed the date format — the gate catches all 8 bundled invoice cases as regressions. What's inside: SKILL.md; prompt_gate/ engine; fixtures/invoice_cases.json (8 invoice-extraction golden cases); demo/ with generated reports; examples/github-actions.yml; tests/ (39 pytest tests); README. Requirements: Python 3.10+.

## Requires

- Python

## Known limitations

Only supports JSON object extraction. Not suitable for open-ended creative writing. Requires a local Python environment and model wrapper scripts that handle stdin/stdout.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Prompt Change Gate — Catch Prompt Regressions Early skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent breaking changes in my LLM pipeline?

This skill is a testing framework that compares a baseline prompt against a candidate prompt to detect 'regressions'—instances where a previously successful extraction now fails due to a prompt change.

### Which AI models or providers are supported by Prompt Change Gate?

It is compatible with any model or agent (OpenAI, Anthropic, or local LLMs) as long as you can trigger the model's output via a shell command or script.

### Why should I use this instead of just asking another LLM to check my outputs?

Unlike LLM-based evaluators which are non-deterministic, this tool uses rule-based matching with flexible tolerances for numbers and strings to provide 100% consistent, reliable results.

### Are there specific types of tasks that this regression suite cannot test?

The tool is designed for structured JSON extraction; it currently requires the model to output at least one complete JSON object and does not support testing for creative writing or open-ended chat.

### Can I automate these tests as part of my Continuous Integration (CI) workflow?

Yes, the tool uses standard exit codes and outputs Markdown reports, making it easy to integrate into your existing GitHub Actions, GitLab CI, or Jenkins pipelines to block unstable builds.

### What is included in the purchase of this skill?

You will receive the local Python-based tool, documentation on defining 'golden' test cases, and instructions for integrating the gate into your development environment.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
