opik

opik is a skill for Claude Code from comet-ml/opik-mcp. It costs 80 tokens per session (2,304 once invoked), scanned A, original, Apache-2.0.

A reference guide for using the Opik software library to record and inspect AI application activity. Opik is an open-source observability platform, meaning it helps you see what an AI application did during a run; traces represent complete requests and spans represent their individual operations.

In plain words
What is it for?
Use it when adding or reviewing Opik tracing in Python, TypeScript, or through its web API, including flushing recorded data and versioning prompts.
Why use it?
It helps developers use the library's supported tracing categories and language examples instead of guessing how to record model calls, tool calls, and checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Part of the opik plugin — 10 skills, 1 MCP server shipped together

Good fit Use it when adding or reviewing Opik tracing in Python, TypeScript, or through its web API, including flushing recorded data and versioning prompts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comet-ml/opik-mcp/opik
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add comet-ml/opik-mcp --skill opik
Clone the repo
git clone --depth 1 https://github.com/comet-ml/opik-mcp

Made for: Claude Code.

Or install opik, the plugin that ships this one along with the rest of its 10 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opik

README.md
[![agentmods](https://agentmods.dev/badge/skills/comet-ml/opik-mcp/opik/github.svg)](https://agentmods.dev/skills/comet-ml/opik-mcp/opik)
Your own site
<a href="https://agentmods.dev/skills/comet-ml/opik-mcp/opik"><img src="https://agentmods.dev/badge/skills/comet-ml/opik-mcp/opik/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opik

Your own site · 80×15
<a href="https://agentmods.dev/skills/comet-ml/opik-mcp/opik"><img src="https://agentmods.dev/badge/skills/comet-ml/opik-mcp/opik.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.02304
Opus 5.5 $0.00032 $0.00922
Sonnet 5.5 $0.00016 $0.00461
Haiku 4.5 $0.00008 $0.00230

Measured today against content hash cc9d92e3e6a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

opik scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • opik — 100% identical, 21 lines differ
plugins/opik/skills/opik/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Opik SDK Reference

Opik is an open-source LLM observability platform. This skill is a reference for the SDK. To instrument a codebase step by step (detect frameworks, add config, emit and verify a trace), use the task-shaped opik-instrument skill.

Core concepts

A trace is one execution path (one request → one response). Spans are the operations inside it and form a hierarchy.

Span types — the ONLY valid values

Type Use for
general orchestration, agent entry points
llm model calls
tool tools, retrieval, API / DB calls
guardrail safety / validation checks

Do NOT use retrieval or any other value.

Python — tracing

import opik


@opik.track(name="agent", type="general")
def agent(query: str) -> str:
    return generate(retrieve(query))


@opik.track(type="tool")
def retrieve(query): ...


@opik.track(type="llm")
def generate(ctx): ...


opik.flush_tracker()  # required in scripts

TypeScript — tracing

import { Opik } from "opik";
const client = new Opik({ projectName: "my-project" });

const trace = client.trace({ name: "agent", input: { query } });
const span = trace.span({ name: "llm-call", type: "llm" });
span.end({ output });
trace.end({ output });
await client.flush();

Framework integrations

Prefer an integration over manual @opik.track — integrations capture tokens, model, and cost automatically. Patterns (full list in references/integrations.md):

  • wrap-the-client — track_openai(OpenAI()), track_anthropic(...)
  • global-enable — track_crewai(crew=crew)
  • callback — dspy.configure(callbacks=[OpikCallback()])
  • tracer — OpikTracer() for LangChain / LangGraph / LlamaIndex
  • agent-specific — track_adk_agent_recursive(agent, OpikTracer())

LiteLLM inside @opik.track (common trap)

If code uses litellm and you add @opik.track, pass current_span_data via metadata on every completion call — otherwise OpikLogger emits orphaned top-level traces instead of nesting under your span.

Read the full file on GitHub · 235 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +7 lines cc9d92e3e6a6
  2. 29d ago Changed · +6 lines 443fc16fcee2
  3. 1mo ago Changed · +5 lines ee94038ec263
  4. 1mo ago Changed 449ebc365b10
  5. 1mo ago Changed · +31 lines 73171b02ef9a
  6. 1mo ago Changed · +40 lines 51ffd8463dd5
  7. 1mo ago First seen · 146 lines · 80 tokens per session scan A de52cd0d657e

Subscribe to this mod's changes

opik is a skill published in the GitHub repository comet-ml/opik-mcp (225 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 2,304 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cortex-explore-memory

Explore the memory system's state, find gaps in knowledge, assess coverage, and get diagnostic information. Use when the user asks 'what does my memory look like', 'show me memory stats', 'what am I missing', 'how good is my knowledge', 'memory health', 'show coverage', 'find gaps', 'what topics are weak', or when you…

cdeust/Cortex · 91 tokens

qmclaw-workbench

A local simulator for superconducting quantum-bit experiments, including measurements used to study and tune a qubit. It produces bounded synthetic results without connecting to laboratory hardware or quantum cloud services.

xi-zhao/OpenQuantum · 124 tokens

quantum-fermi-hubbard-vqe

A variational quantum simulation of the open-boundary Fermi–Hubbard chain, a model of particles hopping between sites and interacting when they occupy the same system. It maps the model to qubits with the Jordan–Wigner transformation and searches for a low-energy state.

xi-zhao/OpenQuantum · 67 tokens

quantum-grover

A Qiskit implementation of Grover's algorithm, a quantum search method that increases the chance of finding a marked item. It can explain the method, build an explicit quantum circuit, or run it with chosen inputs.

xi-zhao/OpenQuantum · 62 tokens

quantum-algorithms

A routing workflow for choosing an open-source quantum-computing algorithm and loading the matching local workflow. Quantum computing uses circuits and quantum states to represent and process information.

xi-zhao/OpenQuantum · 34 tokens

alicebob-cat-circuits

A local simulator for Alice & Bob cat-qubit circuits, a type of quantum circuit that encodes information in oscillator states. It builds physical or error-corrected logical noise models, compiles the gates, and returns measurement samples and the model parameters used.

xi-zhao/OpenQuantum · 51 tokens