rudder-ai-events-setup
Onboards an app to RudderStack AI events, including moving existing RudderStack LLM, chat or agent events to them: discovers…
Adds RudderStack AI events code from an approved ai-events.md plan: installs @rudderstack/ai, rudderstack-ai or ai-sdk-go, wraps model clients and MCP servers, opens interactions and tasks, wires feedback and browser events. Use when implementing an approved AI events plan.
Claude Code
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument --agent claude-code
Codex
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a codex -y
Cursor
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a cursor -y
Gemini CLI
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a gemini-cli -y
GitHub Copilot
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a github-copilot -y
OpenCode
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a opencode -y
Windsurf
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-instrument -a windsurf -y
name: rudder-ai-events-instrument description: "Adds RudderStack AI events code from an approved ai-events.md plan: installs @rudderstack/ai, rudderstack-ai or ai-sdk-go, wraps model clients and MCP servers, opens interactions and tasks, wires feedback and browser events. Use when implementing an approved AI events plan." allowed-tools: "Bash(npm *), Bash(npx *), Bash(pnpm *), Bash(yarn *), Bash(bun *), Bash(node *), Bash(deno *), Bash(uv *), Bash(poetry *), Bash(pip *), Bash(python *), Bash(python3 *), Bash(pytest *), Bash(go get *), Bash(go mod tidy), Bash(go list *), Bash(go build *), Bash(go vet *), Bash(go test *), Bash(git status), Bash(git diff), Bash(git diff *), Bash(cp *), Bash(git switch -c *), Read, Write, Edit, Glob, Grep"
Turns the approved plan into the smallest reviewable diff, for AI events spec v0.4. 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).
1. `ai-events.md` exists at the repo root with front matter `status: approved`. Missing or `draft`: stop and run `rudder-ai-events-setup`; never instrument from an unapproved plan. Copy every value from the fenced `yaml` block 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, under `spec`. 2. Every surface you are about to change has `status: instrument`. Skip the rest (`skipped`, `blocked`, `unsupported`). 3. 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 `## Summary` names (`feat/ai-events` by default) without asking. 4. Each `sdks[].version` (`<VERSION>` in the recipe files) is `@rudderstack/ai` / `rudderstack-ai` 0.8.0 or later, or `ai-sdk-go` v0.4.0 or later (verify needs their migration check and recorders); never a branch or pseudo-version. Older: run `rudder-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 have `sdks: []`: skip server install/configure steps and consume the named server dependency's response contract and switch source.
Before writing code, check that the pinned version installs as is:
Only the main agent runs package-manager commands. Subagent briefs forbid all of them, including commands that can install as a side effect (`npx`, `pnpm dlx`, `uv run`, `go run` of a new module, test scripts with an install step); subagents edit code only.
Do one surface at a time; after each, run the app's type check (and its tests when they are fast).
1. **Install** the SDK in each `sdks[].path` with an exact pin, using the repo's package manager (pinned version in `packageManager` / tool files):
npm install --save-exact @rudderstack/ai@<VERSION> deno add npm:@rudderstack/ai@<VERSION> # peers: deno add npm:<package>@<approved exact version> uv add "rudderstack-ai[<extras from the plan>]==<VERSION>" # e.g. rudderstack-ai[anthropic]==<VERSION> go get github.com/rudderlabs/ai-sdk-go@<VERSION> # plus one module per provider at its own version
Other managers: section 1 of the recipe files. Never add a version range, and bump the app's own LLM libraries or their peers only to exact pins approved under Dependencies and blockers. Add the RudderStack server cli
A Claude Code plugin marketplace and Agent Skills collection that teaches your AI coding agent how to drive every programmatic RudderStack surface — CLI, MCP server, Terraform, Profiles, and AI events — with the right preflight checks, commands, and recovery
Onboards an app to RudderStack AI events, including moving existing RudderStack LLM, chat or agent events to them: discovers…
Verifies RudderStack AI events locally and checks a move from existing RudderStack events: validates captures against the v0.4…
Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not found, or…
Validates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack resources with…
Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing…
Creates and manages RudderStack transformations and libraries with local testing. Use when creating, editing, or managing…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.