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…
Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not found, or authenticating with RudderStack
Claude Code
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup --agent claude-code
Codex
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a codex -y
Cursor
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a cursor -y
Gemini CLI
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a gemini-cli -y
GitHub Copilot
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a github-copilot -y
OpenCode
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a opencode -y
Windsurf
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-cli-setup -a windsurf -y
name: rudder-cli-setup description: Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not found, or authenticating with RudderStack allowed-tools: "Bash(which, curl, chmod, uname, rudder-cli *), Read, Write, Edit"
Install rudder-cli, authenticate with RudderStack, and verify the setup works.
1. Check Installation ──► command -v rudder-cli, then ~/.local/bin
│
├── Found ──► Skip to Authentication
│
└── Not Found ──► Install the latest release into ~/.local/bin
│
2. Verify Installation ◄────────────┘
│
└── rudder-cli --version
3. Check Authentication ──► rudder-cli workspace info --json
│
├── Authenticated ──► Done! Show workspace info
│
└── Not Authenticated ──► RUDDERSTACK_ACCESS_TOKEN (agents)
or rudder-cli auth login (people)command -v rudder-cli || ls "$HOME/.local/bin/rudder-cli"
**If `command -v` prints a path:** Skip to Step 3 (Authentication).
**If only `~/.local/bin/rudder-cli` exists:** An earlier install put it there, and that folder is not on PATH. Follow "If `~/.local/bin` is not on PATH" below, then skip to Step 3.
**If neither exists:** Continue to Step 2 (Installation).
The command below installs the latest release from [GitHub Releases](https://github.com/rudderlabs/rudder-iac/releases) on macOS or Linux, on x86_64 or arm64 (Linux also on i386). It checks the archive against the release's checksums file, puts `rudder-cli` in `~/.local/bin` without `sudo`, and replaces no copy elsewhere. On Windows, download the `.zip` for your CPU from the [latest release](https://github.com/rudderlabs/rudder-iac/releases/latest) instead.
Never install rudder-cli with npm, npx or Homebrew. No npm package or Homebrew tap ships it, and the npm package named `rudder-cli` belongs to someone else.
The script is the `install.sh` attached to the latest release. Download it into a new temporary folder, then run it. Do not pipe it into a shell.
d=$(mktemp -d) && curl -fsSL https://github.com/rudderlabs/rudder-iac/releases/latest/download/install.sh -o "$d/install.sh" && sh "$d/install.sh"
If curl prints `The requested URL returned error: 404` while it downloads `install.sh`, a release came out in the last few minutes and its files are still uploading. Wait one minute and run the same command again, up to 10 times. Go by that message, not by curl's exit code, which is 22 or 56 for the same 404. If the last try also gets a 404, tell the user that a new rudder-cli release is being published and that they can try again in a few minutes.
A line that starts with `rudder-cli install:` comes from the script, which ran and failed. That is not this 404, even when a curl message comes before it, so do not retry it here; see Troubleshooting.
Inside an agent's sandbox, the script cannot write to `~/.local/bin`, and curl may not reach github.com. Ask the user to let the command run outside the sandbox or to run it in their own terminal. Never set `RUDDER_CLI_INSTALL_DIR` to a folder inside the project. The binary would land in the user's repository, and `"$HOME/.local/bin/rudder-cli"` would not exist.
After the install, check which rudder-cli a plain `rudder-cli` runs:
command -v rudder-cli
If it prints the path of `~/.local/bin/rudder-cli`, go on. If it prints nothing, `~/.local/bin` is not on PATH. If it prints another path, an older copy comes first on PATH. In both cases:
export PATH="$HOME/.local/bin:$PATH"
rudder-cli --version
Use `"$HOME/.local/bin/rudder-cli" --version` if `~/.local/bin` is not on PATH.
Expected output: Version number (e.g., `rudder-cli version 0.x.x`)
rudder-cli workspace info --json
**If authenticated:** Prints the workspace as JSON. `workspaceID` and `name` identify it. You're done!
**If not authenticated:** The command exits non-zero with an error. Continue with authentication.
1. Log in to your RudderStack dashboard 2. Go to **Settings → Access Tokens** 3. Click **Generate New Token** 4. Copy the token (you won't see it again)
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.
**Agents: use the environment variable.** `rudder-cli auth login` prompts for the token on a terminal, which an agent cannot answer, and a token typed into the conversation ends up in the transcript. Never ask the user to paste a token into the chat. Ask the user to set the variable in their own terminal, in the shell that starts the agent, then restart the agent:
# The user runs this in t
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…
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.