/ai-evals:uigfrom ai-evals
Builds a User Input Grid (UIG) / Synthetic Query Matrix to design eval frameworks, audit test set coverage, and recommend new inputs for AI products. Useful when setting up evals from scratch or assessing dataset gaps.
Ships in ai-evals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A User Input Grid (UIG) — also called a Synthetic Query Matrix (SQM) — is a structured framework for ensuring eval coverage of an AI product reflects the real diversity of users, content domains, input types, and input styles the system will face in production. It comes from the Reforge AI Evals curriculum and a few teams at Amplitude, Linear, and Notion have published versions of it.
The core idea: pick 3–5 dimensions that drive meaningful diversity in your product, define 4–7 values per dimension, and treat the cartesian product (pruned for plausibility) as your eval sourcing matrix. A 4-dimension grid with average ~5 values per dimension gives ~625 theoretical combinations — practical eval sets land at 30–80 high-coverage inputs after pruning.
The reason this matters: most AI eval datasets are built from one of three weak sources — engineer intuition (overfits to features the engineer knows about), real-user logs (overfits to common easy cases users actually try), or synthetic generation without a framework (random uneven coverage). A UIG forces you to be deliberate about what you're testing, makes gaps visible, and gives you a shared vocabulary with the product team for talking about coverage.
This skill triggers in three modes — be explicit about which one you're in before starting:
Greenfield UIG — designing a UIG for a new AI product/feature with no existing dataset. Workflow ends at "framework + example inputs to seed the dataset."
Audit existing dataset(s) — there are one or more eval datasets and you want to know what they're missing. Workflow includes evaluating each dataset against the UIG with STRONG/PARTIAL/WEAK coverage ratings, surfacing gaps, and recommending additions.
Both — design the UIG informed by patterns in the existing dataset, then audit the dataset against the UIG. This is the most common case when a team has been building evals ad-hoc and wants to put structure around them.
If the mode isn't specified, ask in one short question, then proceed.
Before designing dimensions, you need to know: what does this AI product do, who uses it, what data does it have access to, what tools does it call, and what does success look like? Don't skip this — a UIG built without product understanding produces generic dimensions that don't catch real failure modes.
If the user has shared product docs, sample inputs, system prompts, or tool definitions, read them first. If you don't have enough context, ask 2–3 specific questions — not a generic interview. Examples: "What actions can the AI take? Are there topics it explicitly can't handle? What are the most common user goals?"
If there are existing datasets, read them before designing the UIG. Real input data is the best signal you have. Look for:
This "dataset-first reading" surfaces dimensions you'd never invent from first principles.
Pick 3–5 dimensions. Fewer than 3 and the grid doesn't drive enough diversity; more than 5 and the cartesian product explodes and the dimensions start overlapping conceptually.
Two dimensions are nearly universal for any AI product. Use these as defaults, adapted to context:
| Value | Definition | Example |
|---|---|---|
| Action instruction | Direct the AI to perform an operation | "Update the Nike opportunity to Closed Won" |
| Information request | Ask the AI to retrieve or explain something | "What's the status of case #12345?" |
| Aggregation | Compute or summarize across a set | "How many open P1 cases do I have this week?" |
| Multi-step | Chain of operations in one input | "Find at-risk accounts and draft outreach emails" |
| Clarification / follow-up | Continue or refine a prior turn | "Actually, make the tone more formal" |
| Ambiguous / under-specified | Intent unclear, AI must resolve | "Handle this" with no supporting context |
| Edge / out-of-scope | Outside the AI's topics or capabilities | A request the system is not designed to fulfill |
For products with workflow-triggered inputs (no user text — an automated record or event fires the AI): add Automated trigger as a value and ensure your eval dataset includes both human-initiated and system-initiated inputs.
For AI products with traditional search/query interfaces, "Action instruction" may be rare and "Lookup" a better fit — adapt the values to what users actually send.
| Value | Definition | Example |
|---|---|---|
| Well-specified | Complete, unambiguous, all context present | Clear intent, named entities, no missing fields |
| Under-specified | Missing context or intent the AI must infer | Vague instruction, implied subject, no record ID |
| Multi-constraint | Multiple conditions that must all be satisfied | "Empathetic but firm, under 100 words, no jargon" |
| Jargon-heavy | Domain- or org-specific terminology | Internal product codes, CRM field names, acronyms |
| Edge / out-of-scope | Impossible, self-contradicting, or out of bounds | Request the AI cannot or should not fulfill |
Two dimensions are always domain-specific and need to be derived from the product:
For agent products, consider a fifth dimension: Action/Output Type — what the AI produces (drafted email, updated record, routing decision, summary, action refusal). This catches output format and action correctness bugs that input-diversity dimensions alone won't surface.
For each dimension, define 4–7 values. Each value needs a short justification (one sentence on why it's distinct from the others) and a characteristic example input showing what it generates.
Ask the user where to save the output. Default: <product-name>-uig.md in the current working
directory.
Structure the file as follows:
# [Product Name] User Input Grid
Brief intro paragraph — what product, what the UIG covers, target dataset size.
## Dimensions Overview
Summary table: Dimension | Values | Notes
## [Dimension 1] — [Name]
Table: Value | Definition | Example Input | Why distinct
Notes on judgment calls made.
## [Dimension 2] — [Name]
...
## Example Input Combinations
Table of 8–12 rows sampling the grid: one row per combination, with a concrete example input.
This forces you to verify each combination produces a sensible, testable input.
## Dataset Evaluation ← only in modes 2 and 3
Per-dataset coverage tables and overall summary.
## Recommendations
Prioritized gap list with example inputs.
The example inputs section is important — it makes the abstract grid concrete and forces you to verify that each combination produces a sensible input. If a combination feels nonsensical when you try to write an input for it, that's a signal the grid has an implausible region you can prune.
For each dataset, rate coverage on each dimension as STRONG / PARTIAL / WEAK:
For each (dataset × dimension) cell, write a one-paragraph note covering: what's present, what's missing, and the practical implication of the gap. The implication matters more than the gap itself — "no multi-step inputs" is a fact; "the AI could score 95% on this dataset and still be broken when users chain two operations in a single message" is the point.
Seven common failure patterns to watch for:
After per-dataset tables, write an overall coverage summary combining all datasets, then a recommendations section prioritized by impact:
For each recommendation, give 3–6 example inputs with dimension labels and what the test should verify. Don't just say "add multi-step inputs" — write the actual inputs.
If asked to "expand the dataset" or "fill the gaps", generate a fresh markdown file with 30–80 new inputs organized by the gap they fill, each tagged with persona / domain / input type / style. For every input, include an evaluable scoring criterion.
The OR-condition trap: Never write a scoring criterion as "output does X or asks for clarification." That criterion always passes — any AI can deflect with a clarifying question. Instead, split into two rows: one where input is clear and the AI must act, one where input is genuinely ambiguous and graceful clarification is the right response.
Don't generate from random combinations. Walk through the gaps in priority order and write inputs deliberately. Aim for inputs that look like what a real user would actually send — including partial information, casual phrasing, frustration, and incomplete context when that's how real users communicate.
Default to markdown. Ask the user where to save; if unspecified, save to
<product-name>-uig.md in the current working directory.
For UIGs with rich tables that benefit from visual layout, an HTML file is also acceptable as a secondary format. Markdown is the default.
Don't skip the dataset reading step. First-principles UIGs miss things real data would surface. Even 15 minutes reading a sample of real inputs will reshape the grid.
Resist the urge to make dimensions orthogonal at all costs. Some overlap is fine if it produces meaningful coverage. "Input Type" and "Input Style" partially overlap (an ambiguous input is often also under-specified) but they catch different failure modes — ambiguous tests whether the AI resolves intent correctly, while under-specified tests whether it asks the right clarifying question.
A UIG with 4 dimensions averaging 5 values gives 625 combinations. You don't need eval coverage of all 625 — you need coverage of the dimensions, not the full cartesian product. 30–80 deliberately chosen inputs that hit each dimension value at least 3 times is much more valuable than 500 random combinations.
Tables of dimension values should be readable on their own. Someone glancing at the UIG summary table without reading the body should immediately understand the framework. Use short value names (1–3 words) and put the longer descriptions in the per-dimension sections.
The goal isn't "coverage of every value" — it's catching failure modes the team didn't anticipate. When you write the recommendations section, lead with what would have been caught if these inputs had been in the eval set. That framing turns abstract coverage gaps into concrete reasons to invest.
For conversational / multi-turn agents, include at least a few multi-turn sequences in the
dataset — not just isolated inputs. A clarification / follow-up row is only testable in context
of the prior turn. Flag these explicitly in the dataset with a multi_turn: true tag.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub calibre-labs/reforge-ai-evals --plugin ai-evals10 skills in this plugin
/eval-coachAnswer questions about AI evals from the Reforge AI Evals course (its FAQs, course reader and live sessions), and teach the plugin's skills through short hands-on lessons on Mapper, the course agent. Use this skill whenever someone asks a concept or "why/how/when" question about evals, agents, harnesses, traces, rubrics, user input grids, trace codes, code checks, LLM judges, TPR/TNR, judge alignment, datasets, release thresholds, online evals, monitoring or agent success rate; asks "what does the course say about...", "explain...", "what's the difference between..."; or says "teach me evals", "how do I learn this plugin", "quiz me", "continue the tour" or "eval coach". Draws diagrams when an idea has a shape. Do NOT use when the person wants eval work done on their own files (write a rubric, cluster notes, write a judge): load that skill.
/eval-codeWrite deterministic, code-based evaluator functions for an AI product. Use this skill whenever you need to write evaluators that check structural properties of AI outputs (format, count, presence, schema compliance) without calling another LLM. Also use when auditing existing code-based evaluators for brittleness, coverage gaps, or false positives.
/eval-guideEntry point for eval work. Use when someone asks for help with evals in general, does not know where to start, asks "what should I do next", or asks for something no other skill in this plugin matches. Do NOT use when a more specific skill in this plugin already matches the request. Load that skill directly.
/eval-llm-judgeWrite LLM-as-judge evaluator prompts for AI products. Use this skill whenever you need to evaluate semantic properties of AI outputs that cannot be checked programmatically — output quality, tone, factual accuracy, edge case handling, reference alignment. Also use when auditing existing judge prompts for bias, vagueness, or compound criteria. Output is a judge prompt and a runner in the project's own scorer format (a Python runner when the project has none), saved where the project keeps its evaluators.
/eval-rubricWrite or update the eval rubric for an AI agent or AI feature: the pass/fail criteria that define good behavior, in four groups (outcome, trajectory, governance, experience), plus the release thresholds that belong in the PRD. Use this skill whenever someone asks to "write an eval rubric", "define what good looks like", "add evals to my PRD", "what should we evaluate", "turn this PRD into a rubric", "update the rubric from these traces", or shares a PRD, agent spec, system prompt or trace codes and wants evaluation criteria. Also use to audit an existing rubric. Output is an HTML page and a markdown file saved next to the PRD.
/llm-alignAnalyze alignment between LLM judge scores and human labels in an eval dataset. Use this skill whenever someone wants to evaluate how well an LLM judge agrees with human reviewers, calculate TPR/TNR, investigate disagreements, or improve a scorer prompt. Trigger on phrases like: "calculate TPR/TNR", "judge alignment", "where does the LLM disagree with humans", "improve my scorer", "why is the LLM getting these wrong", "compare human labels to LLM scores", "evaluate my eval", or any time someone shares eval results and asks about score quality or judge calibration.
Other plugins' skills for the same job