/ai-evals:trace-codesfrom ai-evals
Clusters free-form notes from agent trace reviews into named yes/no failure or quality patterns (trace codes). Outputs a codes file, labeling sheet, and rubric updates. Use when analyzing annotated traces to find failure modes or patterns.
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.
Trace analysis has three steps: build a set of inputs and run the agent, read the traces and write notes, then cluster the notes into codes. A person does the reading. This skill does the clustering and everything that follows from it.
A trace code is a short name for one pattern seen across traces, defined so that anyone can answer yes or no for a single trace. Codes become the vocabulary for the rubric, the backlog and the automated evals.
Do not write the notes yourself. If the user has traces and no notes, tell them to read and annotate at least ten first. Reading is where product judgment comes in, so a person does it. You may help them read faster (summarize a long trace, point at the tool calls) but the observations must be theirs.
| Input | Required | Typical form |
|---|---|---|
| Notes | Yes | A CSV or JSON with a trace id and a free-text note per trace, pasted text, or a review page that stores notes (see below). |
| Traces | Helpful | The files or folder the notes refer to, so examples can quote what happened |
| Rubric | Helpful | The current eval rubric, to map each code to a line |
| Existing codes | If any | A previous trace codes file to merge into |
Find these in the working folder before asking. If the notes have no trace ids, number them and say so.
One note often contains several observations ("stale revenue number, also no source for the third company, good scoping question"). Split each note into single observations and keep the trace id with each. Keep positive observations too. A code can describe something the agent should keep doing.
Group observations that describe the same pattern. For each group write:
Rules:
Add three tags to every code:
Work through these questions in order:
Rank codes by how often they occur and how much each one costs the user or the business. An irreversible or trust-breaking failure outranks a frequent cosmetic one. If user feedback exists (tickets, thumbs, complaints), note which codes it supports. Name the top three.
If a rubric exists, list the changes the codes imply, one per line: add a line, sharpen a line,
or no change because an existing line already caught it. Do not edit the rubric here. Offer to
run eval-rubric in v2 mode with these codes.
Save three files in the working folder:
trace-codes.md: a summary table (code, definition, count, rubric group, layer, next step),
then one section per code with its examples, then Unclustered, then proposed rubric changes.trace-codes.csv: one row per code with the same fields, for other skills and tools to read.trace-labels.csv: one row per annotated trace and one column per code. Pre-fill a cell with
suggested only where the reviewer's own note supports it. Leave the rest blank. The reviewer
confirms or corrects every cell with yes or no. These human labels are what judges get
calibrated against later, so never present suggestions as labels.In the reply, give the number of traces and codes, the top three codes with counts, and the one question the reviewer should settle first (usually a code with a fuzzy boundary).
If the notes are in a published review page with its own database (such as one built with
trace-review-app), read them from the page instead of asking for an export. Then write the
result back so the team sees it in the page, in one document at codes/current:
{
"generated": "2026-10-28T16:40:00Z",
"from": "18 notes by 2 reviewers",
"codes": [
{"name": "Cites a link it never opened",
"definition": "Yes if a cited source was not in what search returned, or does not open.",
"count": 3, "traces": ["trace-06", "trace-09", "trace-01"],
"example": "Trace 6: the Okta press release link is a 404.",
"next": "Write a check"}
],
"rubric": [{"change": "New", "id": "G5", "line": "Cites only pages it opened in this session."}]
}
traces uses the page's own trace ids. rubric is optional; eval-rubric in v2 mode can add it
later. Writing replaces the previous codes, so keep a copy of anything worth keeping first. Still
save the three files below.
When a trace codes file already exists, assign new observations to existing codes first. Create a new code only when several observations fit none. Report what changed: counts that moved, new codes, and codes that should now be split or retired. Keep code titles stable so earlier labels stay valid.
If the last ten traces produced no new code, the reviewer has likely seen enough for this version of the agent. Say so. Reading starts again whenever the agent changes in a meaningful way: a new tool, a new prompt, a new model.
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