.agents/commands/comet/build-opik-integration.md
Command: cursor build-opik-integration
Entry trigger for the opik-integrations skill — create, update, or maintain an Opik SDK integration (Python or TypeScript) that ships inside this repo. This command collects the inputs (below) and then runs the skill's phased workflow; the workflow files are the single source of truth for the phases, gates, verification, and report format.
new/update: if there is no backend/credential path that can verify the integration (MCP or SDK read-back) and the user hasn't opted into an explicit unverified path, the run stops before writing integration code and reports what's blocked. Re-runs from scratch each invocation.sdks/python/src/opik/integrations/ and sdks/typescript/src/opik/integrations/. SDK-contributor work — distinct from the user-facing instrument skill. For integrations that live in an external repo (a standalone opik-* package, or Opik support contributed into a third-party project like LiteLLM or Dify), use /comet:build-opik-external-integration instead.Do not propose or pick a library yourself, and do not present a menu of candidate integrations. The user decides what to build; your job is to collect it. Ask the questions below in plain language and wait for answers. Use a quick choice only for the genuinely categorical ones (language, mode); keep the target name and links free-form.
opik-* package, or a PR into a third-party project such as LiteLLM / Dify), stop and switch to the opik-external-integrations skill (/comet:build-opik-external-integration).python, typescript, or both.new (default), update, or maintain.Once the answers are in, restate them in one line and proceed.
Load .claude/skills/opik-integrations/SKILL.md, its workflow.md (the phase playbook, execution modes, MCP-verification loop, and report template), and the matching language reference (python.md / typescript.md). Then execute the workflow defined there — at a glance: prepare → investigate → collect → 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/ changed, run make claude to sync them into .claude/.
git-workflow rules for branch/commit naming if asked to commit.