opik-external-integrations
What it does
It guides an AI agent in building an Opik integration that lives outside the Opik repository, either as a standalone package or as support added to another project. It is for developers connecting Opik to their own tools.
When to use it
- βWhen you want to build a separate opik-* package or plugin that uses the published Opik SDK.
- βWhen you want to add Opik support to a third-party project that already has its own logging or plugin system.
- βWhen your integration should live in an external repository rather than inside Opik itself.
Skill link
https://github.com/comet-ml/opik/blob/main/.agents/skills/opik-external-integrations/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBuild an Opik plugin for our internal coding agent in its own repository.β
5 new skills a week. 1 minute to read.
How it works
The skill follows the host project's own conventions and uses the published Opik SDK's public interface, rather than the internal code of the Opik repository.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Opik External Integrations
This skill builds Opik integrations whose code does not live in this repository. Two shapes:
- Standalone
opik-*package / plugin β its own repo or package that depends on the published Opik SDK. Examples:opik-openclaw,opik-claude-code-plugin. - Upstream contribution β Opik support added into a third-party project that already has its own logging/callback/plugin system. Examples: an Opik callback in LiteLLM, an Opik integration in Dify.
Activation gate β read this first. Use this skill only when the target lives in an external repo or external package. If the user wants an integration that ships inside
sdks/python/src/opik/integrations/orsdks/typescript/src/opik/integrations/, this is the wrong skill β useopik-integrations. When in doubt, ask the "where does it live" question (below) and route accordingly.
Two principles that make external work different
- Follow the HOST repo's conventions, not this repo's. Structure, dependency management, lint/format, test framework, docs, and the contribution guide are dictated by the target project. Do not impose
sdks/layout,fake_backend, or Fern docs on an external repo. Read itsCONTRIBUTING/AGENTS.mdand mirror its closest existing integration/plugin. - Consume Opik through its PUBLISHED public API. Use the released
opik(Python) /opik(TypeScript) SDK or the REST API β the same surface end users get. Never import this repo's internal modules (opik.decorator.*,rest_api, message-processing internals); they are not available outside this repo and are not a stable contract.
Start with the questionnaire
Collect everything up front, free-form β do not propose a target. See workflow.md Phase 0 for the full list. The essentials: which external repo/package (URL + links), integration shape (standalone package vs. upstream contribution vs. plugin), host language/stack, where the Opik code goes, how the host tests and documents, and how to run it to verify.
Once you know the target, check references.md β a curated list of known external integrations (standalone opik-* plugins incl. the cookiecutter template, and third-party host repos like LiteLLM / Dify / n8n) with their repo and Opik-docs URLs. If the target is listed or resembles one, start from its links and clone the closest sibling instead of researching blind.
The workflow
Multi-step and autonomous by default (front-load preparation, run through, self-verify, end with a report); ask for the interactive variant to approve the design first. Full playbook in workflow.md. At a glance:
- Questionnaire + acquire the external repo (clone/checkout into the scratchpad).
- Investigate the host β its integration/plugin conventions, dep management, test framework, docs, contribution guide. Find the closest existing integration to clone.
- Investigate the Opik surface β pick the public API to use:
@opik.track/track_*wrappers, the low-level client, or REST. Lean on theopikandinstrumentskills for the public API. - Design how Opik plugs into the host's extension point (callback hook, plugin entrypoint, middleware). Map host data β Opik trace/span fields.
- Implement in the host checkout, mirroring its closest sibling and its style.
- Verify via the Opik MCP β run the host with the integration active, log to the workspace the MCP reads, and read the trace/spans back. Loop until correct.
- Test using the host's test framework and conventions.
- Document following the host's docs conventions; optionally add/point an Opik docs page (
write-docs). - Report β what was done, verification evidence, a per-flow supported/tested table, limitations, and how to open the upstream PR.
How this maps to the internal skill
The mechanism knowledge is shared β how a provider/framework exposes hooks, streaming, and usage is the same problem as in opik-integrations. Read that skill's python.md / typescript.md for the patterns (method patching, callback handler, OTel), but apply them against the published SDK surface and inside the host repo's structure.
Skills this one builds on (do not duplicate them)
opik/instrumentβ the user-facing public API surface (the right way to consume Opik from outside
FAQ
Is this for integrations inside the Opik repository?
No. For integrations under the SDK folders, the skill says to use the separate opik-integrations skill instead.
Which projects does it mention as examples?
It names examples such as opik-openclaw, opik-claude-code-plugin, a LiteLLM callback and a Dify integration.
Does it require the published SDK?
Yes. It says external integrations should use Opik only through its released public API.
Details
Original description by the author
Build or update an Opik integration that lives OUTSIDE this repo β a standalone opik-* package (e.g. opik-openclaw, opik-claude-code-plugin) or Opik support contributed into a third-party project (e.g. LiteLLM, Dify). Use ONLY when the user names an external repository or external package as the target; for integrations under sdks/ use the opik-integrations skill instead.
repo: comet-ml/opik
Popularity
- GitHub stars
- 23k
- Ranking position
- #10133
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.