Build a custom browser-based annotation interface tailored to your data for reviewing LLM traces and collecting structured feedback. Use when you need to build an annotation tool, review traces, or collect human labels.
日本語の概要は準備中です。原文の説明を表示しています。
Run error analysis on a dataset. Build a review UI, select diverse samples, monitor annotations, and organize failure modes.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
You are running an interactive error analysis session. The user has a dataset (JSONL, CSV, JSON, etc.) of LLM outputs or traces and wants to discover failure modes by reviewing samples.
This skill is meant for interactive sessions only.
This skill has two parts:
Read this file first to build everything. Once the app is running and the human starts reviewing, follow review-loop.md.
Each phase takes time, especially building the interface. Tell the user what you are doing at each step. Before starting a phase, say what you are about to do and why. When a step finishes, say what you did and what comes next. For example: "Reading 10 sample records to understand the data shape", "Building the HTML app with three views: article, map, and progress", "Clustering on 5 features to select diverse samples." Do not go silent for long stretches.
Before building anything, study the dataset thoroughly.
Load the file. Examine 5 to 10 records across the distribution. For each record, identify:
The data could take many forms. Determine which pattern fits:
For multi-turn traces specifically, identify:
Think about what differs between data points and within each data point. You will use these dimensions to decide the visual design.
Between data points (vary across records):
Within each data point (vary across parts of one record):
Think of a few plausible failure categories in this domain. Expect the human to discover most of them during review.
Before writing any code, design how every dimension of variation maps to a visual property. Use Gestalt principles and information visualization fundamentals.
Map each dimension of variation to exactly one visual channel. Do not use the same channel for two different things.
Color hue. Use for the categorical dimension with the most important distinction.
Opacity / saturation. Use to show whether the human needs to read this content carefully.
Spacing. Use for hierarchical structure.
Typography. Use for content type.
Border / container. Use for grouping related parts.
Structural outlier flags. Show in the header only, not inline.
http.server, no dependencies):
GET / serves the HTML appGET /api/samples returns the current sample setPOST /api/samples lets the agent push new samplesGET /api/annotations returns the current annotationsPOST /api/annotations lets the app save annotations on every changeGET /api/graph returns the 2D projection of all records for the cluster mapGET /api/patterns returns the agent's current failure mode taxonomyPOST /api/patterns lets the agent push the updated taxonomyGET /api/suggestions returns agent-suggested annotationsPOST /api/suggestions lets the agent push suggestionserror_discovery_data/ directory:
samples.json, annotations.json, graph.json, patterns.json, suggestions.jsonThree views, toggled from the top bar:
Content view design. Apply the visual encoding from Phase 2:
Header: title + label + topic. Keep it minimal. Add structural outlier flags (from Phase 2) only when the record is a genuine outlier.
Body: render the primary content using the appropriate treatment per content type.
For multi-turn traces (agent logs, conversations, chat):
For single text content (articles, summaries, etc.):
For code / diffs:
For input/output pairs:
Inline annotation: the reviewer selects text, a floating popover appears with a text input, they press Enter to save, and the span is highlighted. When the popover appears and the input is focused, the browser clears the native text selection. To prevent this, wrap the selected range in a temporary highlight span (e.g., class "pending-highlight" with a visible background) BEFORE focusing the input. Remove the temporary highlight when the annotation is saved, cancelled, or the popover is dismissed by clicking outside. This way the reviewer always sees what text they are annotating.
Margin notes: annotations and suggestions must appear as side notes in a right margin column, aligned vertically with their corresponding highlighted text. Use a two-column layout: the article body on the left (flex: 1, max-width ~720px) and a margin-notes column on the right (width ~240px). Each margin note is position: absolute inside the margin column, with its top offset calculated from the highlight element's position relative to the margin container (use getBoundingClientRect on both the highlight and the margin container, take the difference — do NOT add scrollTop, as that double-counts the scroll offset). Stack notes with a minimum gap so they do not overlap. Include hover linking: hovering a margin note outlines its highlight, and hovering a highlight outlines its margin note. Each margin note shows the quoted text, the reviewer's note, and edit/delete buttons (visible on hover). Do NOT use hover tooltips as the primary way to show annotation content — margin notes replace tooltips.
Agent suggestions: visually distinct from human annotations in both the inline highlight (dashed border, muted tint) and the margin note (different left-border color, an "agent suggestion" tag). The margin note shows accept/dismiss buttons (always visible, not hover-gated). The reviewer can accept (which promotes it to an annotation) or dismiss.
No quality labels, no dropdowns, no structured forms. Free-text notes only.
Auto-save to server on every change. Keep a localStorage backup.
Poll for new samples and suggestions periodically. Show a banner or toast when new ones arrive.
Map view:
Once the app is running and the human starts reviewing, follow review-loop.md for the ongoing interactive session, including how to monitor annotations as they arrive.
If the session ends before a human can review (a non-interactive run, for example codex exec or claude -p), build and smoke-test the app, then stop the server and give the command to launch it later; never claim the review loop ran or that anything is still running.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Build a custom browser-based annotation interface tailored to your data for reviewing LLM traces and collecting structured feedback. Use when you need to build an annotation tool, review traces, or collect human labels.
日本語の概要は準備中です。原文の説明を表示しています。
Audit an LLM eval pipeline and surface problems: missing error analysis, unvalidated judges, vanity metrics, etc. Use when inheriting an eval system, when unsure whether evals are trustworthy, or as a starting point when no eval infrastructure exists. Do NOT use when the goal is to build a new evaluator from scratch (use error-discovery, write-judge-prompt, or validate-evaluator instead).
日本語の概要は準備中です。原文の説明を表示しています。
Entry point for evals. Use when the user asks for help with evals, does not know where to begin, or asks for something no other skill in this plugin matches. Do NOT use when a more specific skill in this plugin already matches; load that skill directly.
日本語の概要は準備中です。原文の説明を表示しています。
Guides evaluation of RAG pipeline retrieval and generation quality. Use when evaluating a retrieval-augmented generation system, measuring retrieval quality, assessing generation faithfulness or relevance, generating synthetic QA pairs for retrieval testing, or optimizing chunking strategies.
日本語の概要は準備中です。原文の説明を表示しています。
Create diverse synthetic test inputs for LLM pipeline evaluation using dimension-based tuple generation. Use when bootstrapping an eval dataset, when real user data is sparse, or when stress-testing specific failure hypotheses. Do NOT use when you already have 100+ representative real traces (use stratified sampling instead), or when the task is collecting production logs.
日本語の概要は準備中です。原文の説明を表示しています。
Calibrate an LLM judge against human labels using data splits, TPR/TNR, and bias correction. Use after writing a judge prompt (write-judge-prompt) when you need to verify alignment before trusting its outputs. Do NOT use for code-based evaluators (those are deterministic; test with unit tests per `write-code-eval`).
日本語の概要は準備中です。原文の説明を表示しています。