rudder-cli-setup
Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not found, or authenticating with RudderStack
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
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-cli-workflow --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/rudder-cli-workflowContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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
**If authenticated**, you'll see workspace details:
Workspace Information: ID: 2iKXWU4QnqclkpPIfXfsbBqrAVa Name: My Workspace
**If NOT authenticated**, you'll see an error. Authenticate first:
rudder-cli auth login
This will prompt for your RudderStack access token. Get one from: Settings → Access Tokens in the RudderStack dashboard.
| Command | Purpose | |---------|---------| | `rudder-cli auth login` | Authenticate with access token | | `rudder-cli workspace info` | Show current authenticated workspace |
**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" [shape=box];
"Authenticated?" [shape=diamond];
"rudder-cli auth login" [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" [shape=box];
"Done" [shape=doublecircle];
"rudder-cli workspace info" -> "Authenticated?";
"Authenticated?" -> "rudder-cli auth login" [label="no"];
"rudder-cli auth login" -> "rudder-cli workspace info";
"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" [label="yes"];
"rudder-cli apply" -> "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 | After validation passes | | `rudder-cli apply -l ./` | Apply changes to workspace | After dry-run review | | `rudder-cli apply --confirm=false -l ./` | Apply without the interactive prompt | CI, piped output, agent contexts | | `rudder-cli plan -l ./` | Show detailed execution plan | Alternative to dry-run | | `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 id — e.g. a Data Graph's `spec.account_id` needs the warehouse account it runs against. Resolve it from the CLI rather than guessing:
# Always use --json in agent/non-interactive contexts. # The plain table output requires a TTY and fails with # "could not open a new TTY" when piped. rudder-cli workspace accounts list --json
Each line is one account object. The fields that matter:
Filter to narrow the list:
# RETL source warehouse accounts (what a Data Graph needs) rudder-cli workspace accounts list --category source --json # By engine rudder-cli workspace accounts list --type snowflake --json
**This is the authoritative way to discover account IDs** — including accounts created through the Data Graph UI or a warehouse connection, which are *not* discoverable via `rudder-mcp` (the MCP only surfaces accounts reachable through a rETL source or destination). When working without a rETL source yet (e.g. building a work
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, and Profiles — with the right preflight checks, commands, and recovery paths.
Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not found, or authenticating with RudderStack
Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing RudderStack resources to CLI management…
Creates and manages RudderStack transformations and libraries with local testing. Use when creating, editing, or managing RudderStack transformations and…
Generates type-safe SDKs (Swift/Kotlin) from tracking plans with compile-time validation. Use when generating type-safe event tracking code from tracking plans…
Derives tracking plans from existing codebase types and structures. Use when instrumenting an existing product that wasn't well-instrumented or restructuring…
Creates and manages events, properties, categories, and custom types for instrumentation schemas. Use when creating or managing events, properties, categories,…