opik-external-integrations
Ce qu’il fait
Cette skill guide un agent IA dans la création d'une intégration Opik située hors du dépôt Opik, soit sous forme de paquet autonome, soit comme prise en charge ajoutée à un autre projet. Elle s'adresse aux développeurs qui relient Opik à leurs propres outils.
Quand l’utiliser
- ✓Quand vous voulez créer un paquet ou plugin opik-* séparé qui utilise le SDK Opik publié.
- ✓Quand vous voulez ajouter la prise en charge d'Opik à un projet tiers qui dispose déjà de son propre système de journalisation ou de plugins.
- ✓Quand votre intégration doit vivre dans un dépôt externe plutôt qu'à l'intérieur d'Opik lui-même.
Lien du skill
https://github.com/comet-ml/opik/blob/main/.agents/skills/opik-external-integrations/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Je voudrais créer un plugin Opik pour notre agent de code interne, dans son propre dépôt.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill suit les conventions propres au projet hôte et utilise l'interface publique du SDK Opik publié, plutôt que le code interne du dépôt Opik.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Est-ce pour les intégrations situées dans le dépôt Opik ?
Non. Pour les intégrations placées dans les dossiers SDK, la skill indique d'utiliser à la place la skill opik-integrations.
Quels projets cite-t-elle en exemple ?
Elle cite notamment opik-openclaw, opik-claude-code-plugin, un callback LiteLLM et une intégration Dify.
Faut-il le SDK publié ?
Oui. Elle indique que les intégrations externes ne doivent utiliser Opik que via son API publique publiée.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 23k
- Position au classement
- #10133
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.