Creates custom annotation queues in Opik with human-readable views (chat bubbles, email side-by-side) instead of raw JSON. Writes via Opik MCP or SDK.
Ships in opik. 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.
Definition of done: the queue exists with the view saved, and the user knows where to check it — the write returned without a warning, and the answer carries the queue's link. A view is built from the project's real traces or threads, never from a guessed shape. If the queue or the view can't be saved, stop at the first genuine blocker and return exactly one next step.
Operate: look at real items first, cover every shape you saw, show text not JSON, keep scoring in Opik's own panel. This skill writes to Opik only and changes no application code.
/opik-annotate <what annotators judge> ("the drafted reply", "whether the agent solved the ticket"), /opik-annotate <queue name or id> (change that queue's view), or a request to remove a view. Infer the rest; optional overrides: project (default: configured) · scope (default: trace; thread for whole conversations) · feedback definitions (default: the queue's own).
With the Opik MCP connected: list('annotation_queue', project_name=…) shows the project's queues with their scope and item count; read('annotation_queue', id_or_name) returns one with its instructions, feedback definitions and view summary. The view's html is stated by size; read('annotation_queue', id, fields=['annotator_view.html']) returns it whole — read it before changing a view, and change only what was asked.
list('trace', project_name=…, filters='annotation_queue_ids contains "<queue_id>"', size=20) (list('thread', …) for a thread queue), then read('trace', id) on two or three that differ.Note every shape input, output and metadata take: objects, arrays, or strings that hold JSON. A view that handles only the most common shape fails annotators on the rest.
From the queue's instructions and feedback definitions: what is judged goes first; what it is judged against goes beside or below it; what would bias the annotator (judge scores, when they give their own verdict) goes behind kit.revealGate.
Read references/kit-v1.md first: it is the only API, class and token list the page has, and views are stored with that kit version. What the page can rely on:
<script> and <style> only.kit.h and text; innerHTML and its relatives are blocked.kit.mount(render) exactly once. render gets { trace } for a trace queue and { thread, traces } (turns in order) for a thread queue; if render throws or returns nothing, annotators get Opik's default view and see the error, so handle every shape you found instead of relying on that fallback.id, name, input, output, metadata, tags, feedback_scores, start_time, end_time, duration, usage, total_estimated_cost. Thread fields: id, start_time, end_time, duration, number_of_messages, status, tags, feedback_scores, usage, total_estimated_cost. No spans; attachments stored outside the trace are not available, media embedded as data: URLs is.feedback_scores[] with source === "ui" are human; the rest are judges.var(--kit-…) tokens, never hard-coded colours: light and dark themes share the view. Layout must work from 360px wide.Design: lead with what is judged in a highlight card; a row of kit.chip facts that frame the item; counts that matter (words against a limit); fold long text with kit.clampGroup and lists over ~5 items; nothing scrolls inside the view; technical details (model, ids, durations) in a collapsed <details> at the bottom. Normalise every shape into one before rendering. For a thread, kit.turn per message, user on the right, tool calls in a collapsed <details>.
MCP: write('annotation_queue.create', {project_name, name, scope, instructions?, feedback_definition_names?, annotator_view: {html, summary}}), or write('annotation_queue.update', {id, annotator_view: {html, summary}}) for an existing queue. summary is one line starting "Annotators see…" describing the whole view; the queue form shows it as written, so send it with every html change. Remove a view with write('annotation_queue.update', {id, clear_annotator_view: true}). schema('annotation_queue.update') has the full input.
Without the MCP, the Opik SDK (opik>=2.2.122; earlier versions don't send annotator_view). opik.Opik() takes the host, key and workspace from ~/.opik.config or the environment:
import opik
from opik.id_helpers import generate_id
client = opik.Opik()
queues = client.rest_client.annotation_queues
view = {"html": html, "summary": "Annotators see…", "kit_version": 1}
project_id = client.rest_client.projects.retrieve_project(name="<project>").id
queue_id = generate_id()
queues.create_annotation_queue(
id=queue_id, project_id=project_id, name="<name>", scope="trace", annotator_view=view
)
queues.update_annotation_queue("<queue_id>", annotator_view=view) # annotator_view={} clears it
# Read back: None means the view was not stored.
stored = queues.get_annotation_queue_by_id(queue_id).annotator_view
Reading it back is yours to do here; the MCP does it for you.
The queue link, one sentence on what annotators now see, and where to check it: the queue's Edit → Annotator view → Preview shows the view on sample items, where Ollie can refine it, and annotator_url opens the page annotators work the queue on. Offer two or three next edits that fit the data ("fold the tool calls", "hide the judge scores until revealed").
Stop at the earliest and return exactly one next step:
opik configure, then rerun /opik-annotate."/opik-annotate <what> <project>."warning says the backend did not store the view → "This Opik version doesn't support custom annotator views; upgrade Opik, then rerun." The queue itself was saved.User-facing: a short message — the queue as a link, what annotators see in one or two sentences, where to preview it, the next edits. Not JSON, not the HTML.
Underneath, one shape:
status: saved | cleared | view_dropped | blockedqueue: id, name, scope, url, annotator_urlview: summary, html_chars, shapes_covered (how many input/output shapes the view handles, of how many seen)sampled_from: queue_items | project_latestsource: mcp | sdknext_step: exactly oneInvariants: saved means the write returned no warning; every view was built after reading real items; blocked and view_dropped carry exactly one next_step; every path leaves the codebase unchanged.
<script>
const { h, first, get, asText } = kit;
const say = (value, keys) => asText(first(...keys.map((key) => get(value, [key])), value));
kit.mount(({ thread, traces }) => {
if (!traces.length) return undefined;
const fold = kit.clampGroup();
return h("div", { class: "kit-stack" },
h("div", { class: "kit-row" }, kit.chip("Turns", traces.length, "primary"), kit.chip("Status", thread.status)),
traces.flatMap((trace) => [
kit.turn({ role: "user", title: "Customer", body: fold.text(say(trace.input, ["message", "question", "input"])) }),
kit.turn({ role: "assistant", title: "Agent", body: fold.text(say(trace.output, ["answer", "output", "response"])) }),
]),
);
});
</script>
A view written before reading any item; raw JSON.stringify of input/output for annotators; scoring widgets in the view (scoring stays in Opik's panel); helpers or classes not in references/kit-v1.md; network calls or external assets; innerHTML; hard-coded colours; judge scores shown next to the annotator's own verdict; rewriting a whole view to change one part; declaring success when the write carried a warning; editing application code.
references/kit-v1.md — the view kit v1: rules, data passed per queue type, tokens, classes and helpers, with an example. Trace, thread and feedback-score concepts: ../opik/references/observability.md in the opik skill. If that skill isn't installed, use https://www.comet.com/docs/opik/ rather than working from memory.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/opikReference for the Opik SDK — tracing, span types, framework integrations, threads, and the prompt library (Python, TypeScript, REST). Use for "what span types exist", "how do I flush", "track_openai", "add OpikTracer", "version a prompt". To instrument a repo end to end, use the `opik-instrument` skill./opik-compareRun a candidate against the baseline over an Opik test suite and read the numbers back — which cases broke, which got fixed, the per-metric deltas, worst rows, and whether the two runs are comparable — with the Opik compare-view link. Runs via the SDK; reads results via the MCP when connected. Does not issue a ship/no-ship verdict. Use for "did my fix work", "compare against the baseline", "run the regression suite", "why did quality drop", "which cases regressed", "compare these two experiments". Not for the ship/hold decision itself (use verify), live production triage (use diagnose), building an evaluation from scratch (use evaluate), or capturing a single case (use test)./opik-diagnoseSurface the Opik traces worth a developer's attention, ranked by signal — Diagnostics issues first, then errors, failed tool calls, latency, regressions, and low online-eval scores. With the Opik MCP connected it lists the project's agent_insights_issue entities, offers to turn Diagnostics on when the project has it switched off, then fills the gaps with list (filters, sort, a time window); without the MCP it reads the same via the SDK (agent_insights and search_traces), so it works with no MCP. Returns a ranked shortlist, each item ready to hand to the explain skill. Use for "what is broken in production", "which traces need attention", "find failing or slow traces", "which tool calls are failing", "triage my agent". Not for offline experiment results (use evaluate or compare) and not for root-causing one trace (use explain)./opik-evaluateBuild an LLM evaluation and run it against the app, returning an Opik experiment with scores and its link. Picks a test suite with judge assertions or a dataset with metrics, sources cases from traces or synthetic data, scores heuristics-first then one-failure-mode judges, runs client-side via the SDK or server-side for prompt-only targets, and reads the scores back. Covers RAG evaluation, error analysis, writing and validating LLM judges against human labels, and auditing an existing eval pipeline. Use for "evaluate my agent", "measure quality", "build an eval", "write an LLM judge for hallucinations", "audit our evaluation pipeline", "how good is my RAG", "set up evals for this". Not for before/after on an existing suite (use compare), one regression case (use test), scoring production traffic (use online-eval), or the ship/hold decision (use verify)./opik-explainRoot-cause a specific Opik trace, or a pattern across traces, and return a grounded explanation. Uses the hosted Opik MCP when it is connected, and falls back to SDK scripting otherwise. Returns the root cause, the evidence spans as clickable Opik UI links, and one suggested next step. Use for "why did this trace fail", "explain this trace", "debug this trace", "why is my agent slow or wrong". Not for adding tracing to an app (use the instrument skill) or for changing code./opik-instrumentAdd Opik tracing to an existing app and verify a real trace lands. Installs the Opik package, detects the language and LLM framework, adds the minimum tracing, runs a safe representative path, confirms a trace in Opik, and returns the trace link. Use for "instrument my code", "add opik tracing", "add observability", "trace my agent". Not for building a new app from scratch, or a review-only pass with no code changes.2 plugins in one repository ship this exact skill · first indexed Oct 28, 2026
/comet-ml-opik-src-opik-mcp:opik-annotatefrom opik
Generated from the plugin's indexed repository (comet-ml/opik-mcp) — no native marketplace selected
npx claudepluginhub p/comet-ml-opik-src-opik-mcpOther plugins' skills for the same job