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…
Validates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack resources with rudder-cli - validates specs, previews changes with dry-run, and applies changes to workspaces
Claude Code
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow --agent claude-code
Codex
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a codex -y
Cursor
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a cursor -y
Gemini CLI
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a gemini-cli -y
GitHub Copilot
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a github-copilot -y
OpenCode
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a opencode -y
Windsurf
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow -a windsurf -y
name: rudder-cli-workflow description: Validates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack resources with rudder-cli - validates specs, previews changes with dry-run, and applies changes to workspaces allowed-tools: "Bash(rudder-cli *), Read, Write, Edit"
Iterative development workflow for RudderStack resources using `rudder-cli`. Follow the validate → dry-run → apply cycle to ensure correctness before making changes to workspaces.
Before running any commands that interact with a workspace, verify authentication:
# Check if authenticated and show current workspace rudder-cli workspace info --json
**If authenticated**, you'll see workspace details. `workspaceID` and `name` identify the workspace:
{
"dataPlaneURL": "https://example.dataplane.rudderstack.com",
"environment": "PRODUCTION",
"name": "My Workspace",
"region": "US",
"status": "ACTIVE",
"workspaceID": "2iKXWU4QnqclkpPIfXfsbBqrAVa"
}**If NOT authenticated**, the command exits non-zero with an error. rudder-cli reads the token from the `RUDDERSTACK_ACCESS_TOKEN` environment variable, or from the config file that `rudder-cli auth login` writes. When the variable is set, it wins over the config file.
Get a token from Settings → Access Tokens in the RudderStack dashboard.
| Command | Purpose | |---------|---------| | `rudder-cli workspace info --json` | Show current authenticated workspace | | `RUDDERSTACK_ACCESS_TOKEN` (env var) | Token for agents and CI; wins over the config file | | `rudder-cli auth login` | Save a token interactively (people at a terminal) |
**Always verify `workspace info` before `apply`** to ensure you're targeting the correct workspace.
When processing responses from the RudderStack API:
digraph workflow {
rankdir=TB;
"rudder-cli workspace info --json" [shape=box];
"Authenticated?" [shape=diamond];
"User exports RUDDERSTACK_ACCESS_TOKEN" [shape=box];
"Edit YAML/Code" [shape=box];
"rudder-cli validate" [shape=box];
"Validation errors?" [shape=diamond];
"Fix errors" [shape=box];
"rudder-cli apply --dry-run" [shape=box];
"Changes correct?" [shape=diamond];
"Adjust specs" [shape=box];
"rudder-cli apply --confirm=false" [shape=box];
"Done" [shape=doublecircle];
"rudder-cli workspace info --json" -> "Authenticated?";
"Authenticated?" -> "User exports RUDDERSTACK_ACCESS_TOKEN" [label="no"];
"User exports RUDDERSTACK_ACCESS_TOKEN" -> "rudder-cli workspace info --json";
"Authenticated?" -> "Edit YAML/Code" [label="yes"];
"Edit YAML/Code" -> "rudder-cli validate";
"rudder-cli validate" -> "Validation errors?";
"Validation errors?" -> "Fix errors" [label="yes"];
"Fix errors" -> "rudder-cli validate";
"Validation errors?" -> "rudder-cli apply --dry-run" [label="no"];
"rudder-cli apply --dry-run" -> "Changes correct?";
"Changes correct?" -> "Adjust specs" [label="no"];
"Adjust specs" -> "rudder-cli validate";
"Changes correct?" -> "rudder-cli apply --confirm=false" [label="yes"];
"rudder-cli apply --confirm=false" -> "Done";
}| Command | Purpose | When to Use | |---------|---------|-------------| | `rudder-cli validate -l ./` | Check YAML syntax and semantic rules | After any edit | | `rudder-cli apply --dry-run -l ./` | Preview changes without applying (this is the plan; there is no separate `plan` command) | After validation passes | | `rudder-cli apply --confirm=false -l ./` | Apply without the interactive prompt | Agents, CI, piped output | | `rudder-cli apply -l ./` | Apply after an interactive confirmation prompt | A person at a terminal only | | `--var-file <name>.vars.yaml` | Resolve `{{ .NAME }}` references (repeatable; accepted by `validate` and `apply`) | Specs that reference variables or secrets | | `rudder-cli workspace accounts list --json` | List workspace accounts (warehouse/source/etc.) and their IDs | Resolving an `account_id`/`accountId` for a resource spec |
**Note:** `-l ./` specifies the project location (current directory).
Many resource specs reference a workspace account by i
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…
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…
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.