rudder-ai-events-instrument
Installation
SKILL.md
RudderStack AI Events Instrumentation
Turns the approved plan into the smallest reviewable diff, for AI events spec v0.3. Recipes with exact code: references/node.md, references/python.md, references/go.md, references/client-events.md. Full API: each SDK's README (npm package, PyPI page, Go module).
Preconditions
ai-events.mdexists at the repo root with front matterstatus: approved. Missing ordraft: stop and runrudder-ai-events-setup; never instrument from an unapproved plan. Copy every value from the fencedyamlblock under## Config(it wins over the prose); the files you may touch are the ones under## Files to change. Key paths below (spec.config,surfaces[],sdks[],spec.switches) are inside that block, underspec.- Every surface you are about to change has
status: instrument. Skip the rest (skipped,blocked,unsupported). - Apart from
ai-events.md, the working tree is clean, or the user agreed to mix changes. Work on the current branch; on the default branch, create the branch the plan's## Summarynames (feat/ai-eventsby default) without asking. - Each
sdks[].version(<VERSION>in the recipe files) is@rudderstack/ai/rudderstack-ai0.7.0 or later, orai-sdk-gov0.3.0 or later (verify needs their migration check and recorders); never a branch or pseudo-version. Older: runrudder-ai-events-setup, which re-resolves versions on resume. A user-named unreleased exact target stays in the plan, but installation waits for publication. Browser-only plans havesdks: []: skip server install/configure steps and consume the named server dependency's response contract and switch source.
Install preflight
Before writing code, check that the pinned version installs as is: