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
Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing RudderStack resources to CLI management and evolving them safely
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-import-and-evolve --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/rudder-import-and-evolveContext preview
The summary Claude sees to decide when to auto-load this skill.
Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing RudderStack resources to CLI management and evolving them safely
name: rudder-import-and-evolve description: Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing RudderStack resources to CLI management and evolving them safely allowed-tools: "Bash(rudder-cli *), Read, Write, Edit"
This skill teaches how to **import existing RudderStack resources** into CLI management and **safely evolve** your tracking schema over time.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ RudderStack │────▶│ Import to │────▶│ Local YAML │
│ Workspace │ │ Local Files │ │ Files │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ Git Version │
│ Control │
└─────────────────┘rudder-cli auth login
Select your workspace when prompted.
rudder-cli workspace info
Should show your workspace name and ID.
rudder-cli import workspace
This imports:
imported/
├── data-catalog/
│ ├── events/
│ │ └── *.yaml
│ ├── properties/
│ │ └── *.yaml
│ ├── categories/
│ │ └── *.yaml
│ └── custom-types/
│ └── *.yaml
└── tracking-plans/
└── *.yamlEach file includes **import metadata**:
version: "rudder/v1"
kind: "event"
metadata:
name: "events"
import:
id: "evt_abc123xyz" # Links to workspace resource
workspace: "ws_xyz789"
spec:
name: "Product Viewed"
# ... rest of spec**Important:** The `metadata.import` section links local files to workspace resources. Don't modify these IDs.
See `references/evolution-patterns.md` for detailed patterns including:
**Problem:** Someone made changes in the UI after import.
**Solution 1: Re-import (overwrites local)**
# Warning: This overwrites your local changes! rudder-cli import workspace --force
**Solution 2: Manual reconciliation**
# 1. Compare local vs workspace rudder-cli apply --dry-run -l ./ # 2. Review differences # "Updated" means local differs from workspace # Decide: use local (apply) or use workspace (re-import that file) # 3. Apply your version rudder-cli apply -l ./
**Best practice:** After import, all changes go through CLI. Disable UI editing for data catalog if possible.
Import is a **one-time snapshot**. There's no `rudder-cli pull` to sync changes from workspace.
# This doesn't exist: rudder-cli pull # ❌ Not a command # Instead, re-import to get latest: rudder-cli import workspace # Overwrites local
If you copy files between workspaces, update the `metadata.import` section:
# Wrong: IDs from different workspace
metadata:
import:
id: "evt_from_other_workspace"
workspace: "ws_different"
# Right: Remove import metadata for new workspace
metadata:
name: "events"
# No import section - will create new resourceIf you import, delete some files, then apply:
# This will DELETE resources from workspace! rudder-cli apply -l ./ # Shows "Deleted [event] ..."
The CLI tracks what was imported. Missing files = deletions.
# Authenticate rudder-cli auth login # Show current workspace rudder-cli workspace info # Import all resources rudder-cli import workspace # Import specific resource types rudder-cli import workspace --resources events,properties # Validate imported files rudder-cli validate -l ./ # Preview changes rudder-cli apply --dry-run -l ./ # Apply changes rudder-cli apply -l ./
When importing resources from RudderStack workspace:
Before applying changes:
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
Validates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack resources with rudder-cli - validates specs,…
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,…