Builds and runs an LLM evaluation against the app, returning an Opik experiment with scores and its link.
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: an experiment in Opik with scores, its link, and a score summary the user can act on — produced by running the user's app (or prompt) over a set of cases with scoring that targets real failure modes. If the evaluation can't be built or run, stop at the first genuine blocker and return exactly one next step. A dataset with no run, a judge prompt with no scores, or a plan in prose is not success.
Operate: ground the cases in what actually goes wrong, score with code before judges, judge one failure mode at a time, run once end to end, read the scores back from Opik — and change no application code. The only file this skill writes is a runner outside the repo.
The entry point is /opik-evaluate (evaluate the app in this repo), /opik-evaluate <what> ("the RAG answers", "the refund flow"), or /opik-evaluate <dataset-or-suite> (run against existing cases). Infer the rest; treat these as optional overrides:
evaluate() when you need built-in metrics or exact matching) · judge model · sample size (default: 20–50 items).Ask only at a genuine, non-inferable blocker (see Blockers).
Confirm Opik is reachable (~/.opik.config or OPIK_API_KEY; otherwise → Blocker). Find the entrypoint to evaluate (the function a trace's root span names, or the one the user points at). Check what already exists — client.get_test_suites(project_name=…), client.get_datasets() — and reuse before creating.
Have an eval already? Audit it first (references/eval-audit.md): unvalidated judges, no error analysis, vanity metrics. Fix the worst gap, then run.
Read real traces before writing any scorer — client.search_traces(project_name=…, max_results=100) (errors, low scores, long durations first). Categorize what goes wrong and how often (references/error-analysis.md). No traces yet → generate cases (references/generate-synthetic-data.md) and say so in the report.
| Situation | Use |
|---|---|
| Agent / chatbot, expectations are behaviors ("mentions Paris", "declines legal advice") | Test suite — items + string assertions checked by a judge; opik.run_tests() |
Exact expected outputs, or built-in metrics (Hallucination, AnswerRelevance, RAG ContextPrecision/ContextRecall) | Dataset + evaluate() with scoring_metrics |
| The thing under test is a prompt version, not code | Server-side: client.rest_client.experiments.execute_experiment(...) — no runner |
Prefer the test suite for agents; it is what /opik-test and /opik-compare operate on.
The test-suite calls: references/sdk-snippets.md (Build the cases).
For the dataset path: client.get_or_create_dataset(name, project_name) then dataset.insert([{"input": …, "expected_output": …}]). Store inputs verbatim; keep source_trace_id so cases trace back to production.
Equals, Contains, RegexMatch, IsJson, JsonSchemaMatch, LevenshteinRatio from opik.evaluation.metrics whenever the check is mechanical.references/write-judge-prompt.md). As a suite assertion, or as a GEval / custom BaseMetric on the dataset path.references/evaluate-rag.md).references/validate-evaluator.md) — TPR/TNR, not accuracy.Write the task adapter as a temp file outside the repo (needs the app's provider credentials — absent → Blocker). Never run a production entrypoint that writes, sends, or spends.
The run_tests and evaluate() calls: references/sdk-snippets.md (Run it). Pass generate_report=False: the default writes opik_test_suite_reports/ into the user's repo.
project_name matters: datasets, suites, prompts, and experiments are project-scoped, and it must match the tracing project if the app uses @track. Set it when creating the dataset or suite — evaluate() inherits the dataset's project, and its own project_name kwarg is deprecated (the SDK warns and ignores it).
Judge credential guard: if the LLM judge (suite assertions, or an LLM metric) has no provider key, run_tests/evaluate do not raise — every item scores 0 with scoring_failed=True and a "Missing credentials" reason, and the experiment is still created. Check for that before reporting; it is a Blocker ("set the judge's provider key and rerun"), not a result.
The SDK read and the aggregates: references/sdk-snippets.md (Read the scores back).
On the dataset path res.aggregate_evaluation_scores().aggregated_scores gives per-metric statistics directly. Name the worst items and the failure mode each hit — that is the actionable part. (get_experiment_by_name is deprecated; use get_experiments_by_name / get_experiment_by_id.)
Experiment link, the score table, the three worst items with their reasons, what the cases were grounded in (traces vs synthetic), and one next step (see Output). This run is the baseline /opik-compare will compare against.
Stop at the earliest blocker and return exactly one next step:
opik configure, then rerun /opik-evaluate."answer(question))."OPENAI_API_KEY (or the relevant key) and rerun."synthetic and I'll generate them."User-facing: a short human message — the experiment link, the score table, the worst items with reasons, the case source, and the single next step. Not a raw dump of every item.
Underneath (for composition / evals), one shape, with its invariants: references/output-shape.md.
Worked runs (agent from traces, RAG dataset path, prompt only, blocked): references/examples.md.
project_name where the object is created. To get_or_create_dataset, get_or_create_test_suite, create_prompt. evaluate() and run_tests() inherit it from the dataset/suite (the evaluate(project_name=…) kwarg is deprecated)./opik-compare reads the same numbers later.Building a judge before reading a single trace; a "quality 1–10" judge; scoring with a judge what Equals could check; a dataset with no run; reporting an aggregate without naming the worst cases; writing the runner into the repo; editing app code to make the eval pass; skipping project_name; deprecated get_experiment_by_name.
Methodology, in this skill's own references: references/eval-audit.md (audit an existing pipeline), references/error-analysis.md (failure categorization from traces), references/generate-synthetic-data.md (dimension-based inputs), references/write-judge-prompt.md (binary judges), references/validate-evaluator.md (TPR/TNR calibration), references/evaluate-rag.md (retrieval vs generation).
SDK detail lives in the opik skill, installed beside this one — paths relative to this file: ../opik/references/evaluation-test-suites.md (suites, run_tests, results), ../opik/references/evaluation-datasets.md (evaluate(), 60+ metrics, OQL, datasets from traces), ../opik/references/production.md (search_traces). If your host lays skills out differently, locate the opik skill's references/ directory.
If the opik skill isn't installed, say so in the report and use https://www.comet.com/docs/opik/ rather than working from memory.
references/error-analysis.md (opens in a new tab)references/eval-audit.md (opens in a new tab)references/evaluate-rag.md (opens in a new tab)references/examples.md (opens in a new tab)references/generate-synthetic-data.md (opens in a new tab)references/output-shape.md (opens in a new tab)references/sdk-snippets.md (opens in a new tab)references/validate-evaluator.md (opens in a new tab)references/write-judge-prompt.md (opens in a new tab)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-annotateSet up human review in Opik — create an annotation queue for a project's traces or threads and give it a custom annotator view, an HTML page that shows annotators each item the way they need to judge it (the email beside the reply, the conversation as chat bubbles) instead of raw JSON. Writes through the Opik MCP when connected, the Opik SDK otherwise. Returns the queue, its link, and what annotators will see. Use for "build a custom annotator view", "set up an annotation queue", "make the review queue show the email and the reply side by side", "change what annotators see", "remove the custom view". Not for automatic scoring (use online-eval) or for finding which traces to review (use diagnose)./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-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-evaluatefrom 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