# Write an Acceptance Rule for an AI Feature

> Turn "the AI output should be good" into a one-sentence acceptance rule, 3 to 5 checkable criteria (deterministic checks first), named blocking failures, and 20 starter test cases as JSONL with an expect field.

Write an Acceptance Rule for an AI Feature is a free AI agent skill on Agensi by Signal Over Noise, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Signal Over Noise](https://www.agensi.io/creators/jammin411)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/write-an-acceptance-rule-for-an-ai-feature
- Tags: testing, llm-ops, prompt-engineering, jsonl, quality-assurance

## About this skill

"Summaries should be good" is not something you can test. Without a written rule, every prompt or model change turns into an argument about a few hand-picked outputs.

This skill gives your agent a method for writing the rule before you ship or change an AI feature:

- **One acceptance sentence** that two reviewers or a script can apply the same way.
- **3 to 5 criteria**, each with a check. The ladder goes exact field, JSON schema, contains, regex, length, and only then a rubric, which must be written out as 2 to 4 yes/no questions.
- **Named blocking failures** (for example: unparseable output, personal data, obeying instructions inside the input). One blocking failure blocks the release, whatever the average.
- **A ship bar set before the first run.**
- **20 starter cases**: 10 normal, 6 edge, 4 adversarial, saved as JSONL with an `expect` field. Each check is tried on a bad and a good output so it is neither too loose nor too tight.
- **An optional stdlib Python validator** that checks the file's shape (unique ids, required fields, known check types, regexes that compile) and prints counts by case type and check.
- A worked example: a fictional support-ticket summarizer, from vague goal to all 20 cases.

**What it does not do**

It does not call a model, run your evals, or grade outputs. Any runner that reads JSONL and implements these check types can apply them.

## Requires

- Optional: Python 3.10+ (standard library only) for the JSONL validator

## Known limitations

Generates test definitions only. Does not call models or grade live outputs. Custom length/field checks require a runner that supports the skill's extended JSONL format.

## 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 Write an Acceptance Rule for an AI Feature skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problem does this skill solve for AI developers?

This skill transforms vague goals like make the summaries better into a deterministic acceptance framework. It produces a one sentence ground truth, checkable criteria across a hierarchy of methods, and 20 structured test cases to quantify quality before you deploy.

### What information do I need to provide to use this skill?

To get started, you need to provide a description of the AI feature, the vague goal you are currently aiming for, and the desired output format. If available, providing 5 to 10 real examples of inputs helps the skill generate more accurate test cases.

### What are the final deliverables after running this skill?

You will receive a one sentence acceptance rule, 3 to 5 checkable criteria, a list of named blocking failures, a ship bar for quantitative pass rates, and 20 test cases in JSONL format. The output also includes a Python validation script to ensure your test set has the correct structure and regex integrity.

### Are there any limitations to what this skill can test?

The skill focuses on defining rules and generating test sets but does not execute these tests against your model. It is also not intended for load testing, latency checks, cost analysis, or building regression sets from live production failures.

### How should I ask my agent to use this skill?

You can ask your agent to write an acceptance rule for a new AI feature or request that it generate 20 starter test cases for a specific feature description. It is especially useful when you have a ticket that lacks a clear measure of success.

---

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.
