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 Terraform and configures the RudderStack provider. Use when setting up terraform for rudderstack, installing terraform-provider-rudderstack, or terraform provider not found errors
Claude Code
$ npx -y skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup --agent claude-code
Codex
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a codex -y
Cursor
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a cursor -y
Gemini CLI
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a gemini-cli -y
GitHub Copilot
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a github-copilot -y
OpenCode
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a opencode -y
Windsurf
$ npx skills add rudderlabs/rudder-agent-skills --skill rudder-terraform-setup -a windsurf -y
name: rudder-terraform-setup description: Installs Terraform and configures the RudderStack provider. Use when setting up terraform for rudderstack, installing terraform-provider-rudderstack, or terraform provider not found errors allowed-tools: "Bash(which, curl, terraform *, uname), Read, Write, Edit"
Install Terraform (if missing), configure the RudderStack provider, and verify setup.
1. Check Terraform ──► terraform version
│
├── Found ──► Skip to Provider Setup
│
└── Not Found ──► Guide Installation
│
2. Configure Provider ◄─────────────┘
│
└── Add required_providers block
3. Initialize ──► terraform init
│
└── Downloads provider from registry
4. Configure Auth ──► Check RUDDERSTACK_ACCESS_TOKEN
│
└── Verify with terraform planterraform version
**If found:** Shows version. Skip to Step 2.
**If not found:** Install Terraform.
brew tap hashicorp/tap brew install hashicorp/tap/terraform
# Add HashiCorp GPG key wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg # Add repository echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list # Install sudo apt update && sudo apt install terraform
# macOS brew install tfenv # Then install Terraform tfenv install latest tfenv use latest
terraform version
Expected: `Terraform v1.x.x`
In your Terraform project directory, create `versions.tf`:
terraform {
required_version = ">= 1.0"
required_providers {
rudderstack = {
source = "rudderlabs/rudderstack"
version = "~> 4.3.1"
}
}
}
provider "rudderstack" {
# access_token read from RUDDERSTACK_ACCESS_TOKEN env var
}Visit https://registry.terraform.io/providers/rudderlabs/rudderstack/latest for the current version.
terraform init
Expected output:
Initializing provider plugins... - Finding rudderlabs/rudderstack versions matching "~> 4.3.1"... - Installing rudderlabs/rudderstack v4.3.1... - Installed rudderlabs/rudderstack v4.3.1 Terraform has been successfully initialized!
terraform providers
Should show `rudderlabs/rudderstack` in the list.
Get your access token from RudderStack dashboard: **Settings → Access Tokens**
export RUDDERSTACK_ACCESS_TOKEN="your-token-here"
For permanent setup, add to your shell profile (`~/.zshrc` or `~/.bashrc`):
echo 'export RUDDERSTACK_ACCESS_TOKEN="your-token-here"' >> ~/.zshrc source ~/.zshrc
Create a minimal `main.tf` to test:
# main.tf - minimal test configuration
data "rudderstack_source" "test" {
# This will fail if auth is wrong
}Then run:
terraform plan
**If authenticated:** Shows "No changes" or data source info.
**If not authenticated:** Shows authentication error.
provider "rudderstack" {
# Token from env var (recommended)
# access_token = var.rudderstack_token # Alternative: use variable
# Optional: Override API URL (default: https://api.rudderstack.com/v2)
# api_url = "https://api.rudderstack.com/v2"
}| Issue | Solution | |-------|----------| | `provider not found` | Run `terraform init` | | `unauthorized` | Check RUDDERSTACK_ACCESS_TOKEN is set correctly | | `version constraints` | Update version in required_providers block | | `init fails` | Check network; try with `-upgrade` flag |
After setup completes:
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.3…
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…
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.