rudder-ai-events-instr…
Adds RudderStack AI events code from an approved ai-events.md plan: installs @rudderstack/ai, rudderstack-ai or ai-sdk-go, wraps…
Verifies RudderStack AI events locally and checks a move from existing RudderStack events: validates captures against the v0.4 schema, joins, switches and legacy events. Use when testing AI events, comparing old and new tracking, or when AI or MCP events look wrong or missing.
Claude Code
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify --agent claude-code
Codex
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a codex -y
Cursor
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a cursor -y
Gemini CLI
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a gemini-cli -y
GitHub Copilot
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a github-copilot -y
OpenCode
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a opencode -y
Windsurf
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-ai-events-verify -a windsurf -y
name: rudder-ai-events-verify description: "Verifies RudderStack AI events locally and checks a move from existing RudderStack events: validates captures against the v0.4 schema, joins, switches and legacy events. Use when testing AI events, comparing old and new tracking, or when AI or MCP events look wrong or missing." allowed-tools: "Bash(npx -y @rudderstack/ai@*), Bash(uv run --no-project *), Bash(python -m rudderstack.ai.check *), Bash(go run github.com/rudderlabs/ai-sdk-go/cmd/aicheck@*), Bash(python3 *), Bash(python *), Bash(npm *), Bash(npx *), Bash(pnpm *), Bash(yarn *), Bash(bun *), Bash(node *), Bash(deno *), Bash(uv *), Bash(poetry *), Bash(pytest *), Bash(env *), Bash(curl *), Bash(cp *), Bash(mkdir *), Bash(lsof *), Bash(kill *), Bash(go build *), Bash(go run *), Bash(go test *), Bash(go -C *), Bash(date *), Read, Write, Edit, Glob, Grep"
Proves the instrumentation sends what `ai-events.md` promises, before any real traffic. Default checks run offline: a recorder or mock RudderStack client, a mock model, no provider keys. Verification is not optional: it runs, and passes, before a commit or PR is proposed. If the user commits first, say plainly that verify has not run.
The checker (`check`, `what-changes`), the recorders and both schemas ship with the SDKs, `@rudderstack/ai` / `rudderstack-ai` 0.8.0 or later and `ai-sdk-go` v0.4.0 or later (`cmd/aicheck` v0.2.0); this skill adds the mock data plane and model server (`scripts/mock_server.py`, Python 3) and the procedures and checklist in `references/verification.md`. The 0.8.0 checkers accept 0.3.0 and 0.4.0 captures; v0.4 events must carry 0.4.0 fields only when the plan pins a v0.4 SDK. For an app on an older SDK, run the latest checker from scratch and, in tests, import its `Recorder` from that scratch install.
**Stacked delivery.** When the plan splits the work into several PRs (`## Files to change`), verify the surfaces instrumented up to the PR at hand, with every check below; report the plan's later surfaces as `n/a (later PR)`. The last PR's run covers the whole plan. With `server_dependency`, the backend PR lands first; browser verification drives that backend and combines both captures to check joins and the consumed switch.
**Migration or new install.** When the plan lists legacy events (the app already sends its own AI-related events through a RudderStack SDK), run every check below. With no legacy events, skip the legacy-switch capture, the legacy and breaking-change checks and the before/after diff: every event in `## What changes` is new, taken from the switch-on capture.
1. **Read the plan.** Expected values come from the fenced `yaml` block under `## Config` in `ai-events.md` (surfaces, identity sources, content capture, switches, legacy events, prices, event rules, MCP servers); it wins over the prose. Also read `## What changes`, `## Breaking and semantic changes`, `## Surfaces`, `## Cost` and `## Known limits`: verify checks them against what it observes. No plan: check against the spec only, and say so in the report. 2. **Scratch directory.** Create one outside the repo (for example `$TMPDIR/ai-events-verify/`) and copy `scripts/mock_server.py` into it when option B is used. Captures stay there, never in the user's source tree. 3. **Pick the checker** matching the app's runtime, at the plan's SDK version when pinned (section 1), or the latest version from scratch for an app on an older SDK: `npx -y @rudderstack/ai@<VERSION> check`, `python -m rudderstack.ai.check` (the `check` extra) or `go run github.com/rudderlabs/ai-sdk-go/cmd/aicheck@v0.2.0`. Deno and browser-only apps may use any available checker at an exact published version from the plan or registry, from scratch; no server SDK is added to a browser repo. Any of them reads any app's capture, with the same flags and output, and each bundles the spec and browser-event schemas. 4. **Capture** what each planned surface sends (section 2):
5. **Run the app's own tests** too (including CI-wired real-SDK integration tests and, for a planned Agent SDK upgrade, the real-API smoke in `references/verification.md`, section 2): instrumentation must not break them, and the new server-side tests that assert the captured AI events must exist and pass. Deno runs the repo's own `deno test`; browser-only plans require browser tests for client events, returned-ID joins and `client_events.switch_source` instead of local server tests. Missing tests are a FAIL that goes back to `rudder-ai-events-instrument`. 6. **Validate** with the checker's `check` and
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
Adds RudderStack AI events code from an approved ai-events.md plan: installs @rudderstack/ai, rudderstack-ai or ai-sdk-go, wraps…
Onboards an app to RudderStack AI events, including moving existing RudderStack LLM, chat or agent events to them: discovers…
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.