.agents/commands/comet/build-opik-external-integration.md
Command: cursor build-opik-external-integration
Drive the end-to-end workflow for building or updating 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). This command is the entry trigger for the opik-external-integrations skill.
build-opik-integration, when the target lives in an external repo/package. For integrations that ship inside sdks/python/src/opik/integrations/ or sdks/typescript/src/opik/integrations/, use /comet:build-opik-integration.Do not propose or pick a target. Ask the user these questions in plain language and wait for answers; keep names/links/paths free-form.
opik-* package/plugin · upstream contribution into a third-party project · tool/IDE plugin.CONTRIBUTING/AGENTS.md, test framework, docs location.Restate the answers in one line, then proceed.
Sanity check: if the answers reveal the target actually belongs inside
sdks/, stop and switch to/comet:build-opik-integration.
Load .claude/skills/opik-external-integrations/SKILL.md and its workflow.md (the phase playbook, execution modes, MCP-verification loop, and report format). For mechanism patterns (method patching / callback / OTel) and field mapping, also consult .claude/skills/opik-integrations/python.md or typescript.md, applied against the published SDK. Then execute the workflow defined there — at a glance: acquire the repo → investigate the host → investigate the Opik surface → design → implement → verify → test → document → report.
Do not restate the phases here. workflow.md is the single source of truth for phase detail, the design gate, the verifiability hard gate, and the report format — follow it directly so the two never drift.
When done, if any files under .agents/ in this repo changed, run make claude to sync them into .claude/.
git-workflow rules.