[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F64DD9ZB2Q9CD1YX2R0Y3B":3,"skill-same:01M6F64DD9ZB2Q9CD1YX2R0Y3B":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6F64DD9ZB2Q9CD1YX2R0Y3B","customerio-multi-env-setup",null,"Configure Customer.io multi-environment setup.\nUse when setting up development, staging, and production\nenvironments with proper isolation.\nTrigger with phrases like \"customer.io environments\", \"customer.io staging\",\n\"customer.io dev prod\", \"customer.io workspace\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fcustomerio-pack\u002Fskills\u002Fcustomerio-multi-env-setup\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"setup","customerio multi env setup","multi","env setup","env","when","customer","environments","trigger","io","isolation","multi-environment","up","environment","edit","write","read","configure","Bash","kubectl","dev","development","2026-11-10 10:12:30",false,"---\nname: customerio-multi-env-setup\ndescription: |\n  Configure Customer.io multi-environment setup.\n  Use when setting up development, staging, and production\n  environments with proper isolation.\n  Trigger with phrases like \"customer.io environments\", \"customer.io staging\",\n  \"customer.io dev prod\", \"customer.io workspace\".\nallowed-tools: Read, Write, Edit, Bash(kubectl:*), Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Customer.io Multi-Environment Setup\n\n## Overview\nConfigure isolated Customer.io environments for development, staging, and production with proper data separation and configuration management.\n\n## Prerequisites\n- Customer.io account with multiple workspaces\n- Environment variable management system\n- CI\u002FCD pipeline configured\n\n## Environment Strategy\n\n| Environment | Customer.io Workspace | Purpose |\n|-------------|----------------------|---------|\n| Development | dev-workspace | Local development, testing |\n| Staging | staging-workspace | Pre-production testing |\n| Production | prod-workspace | Live users, real messaging |\n\n## Instructions\n\n### Step 1: Workspace Setup\nCreate separate workspaces in Customer.io for each environment:\n\n1. Go to Customer.io Dashboard > Settings > Workspaces\n2. Create workspaces: `[app-name]-dev`, `[app-name]-staging`, `[app-name]-prod`\n3. Generate API keys for each workspace\n4. Store credentials securely\n\n### Step 2: Environment Configuration\n```typescript\n\u002F\u002F config\u002Fcustomerio.ts\nexport interface CustomerIOEnvironmentConfig {\n  siteId: string;\n  apiKey: string;\n  appApiKey: string;\n  webhookSecret: string;\n  region: 'us' | 'eu';\n  options: {\n    dryRun: boolean;\n    logLevel: 'debug' | 'info' | 'warn' | 'error';\n    eventPrefix: string;\n  };\n}\n\ntype Environment = 'development' | 'staging' | 'production';\n\nconst configs: Record\u003CEnvironment, CustomerIOEnvironmentConfig> = {\n  development: {\n    siteId: process.env.CIO_DEV_SITE_ID!,\n    apiKey: process.env.CIO_DEV_API_KEY!,\n    appApiKey: process.env.CIO_DEV_APP_API_KEY!,\n    webhookSecret: process.env.CIO_DEV_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: process.env.CIO_DRY_RUN === 'true',\n      logLevel: 'debug',\n      eventPrefix: 'dev_'\n    }\n  },\n  staging: {\n    siteId: process.env.CIO_STAGING_SITE_ID!,\n    apiKey: process.env.CIO_STAGING_API_KEY!,\n    appApiKey: process.env.CIO_STAGING_APP_API_KEY!,\n    webhookSecret: process.env.CIO_STAGING_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: false,\n      logLevel: 'info',\n      eventPrefix: 'staging_'\n    }\n  },\n  production: {\n    siteId: process.env.CIO_PROD_SITE_ID!,\n    apiKey: process.env.CIO_PROD_API_KEY!,\n    appApiKey: process.env.CIO_PROD_APP_API_KEY!,\n    webhookSecret: process.env.CIO_PROD_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: false,\n      logLevel: 'warn',\n      eventPrefix: ''\n    }\n  }\n};\n\nexport function getConfig(): CustomerIOEnvironmentConfig {\n  const env = (process.env.NODE_ENV || 'development') as Environment;\n  const config = configs[env];\n\n  if (!config) {\n    throw new Error(`Unknown environment: ${env}`);\n  }\n\n  validateConfig(config, env);\n  return config;\n}\n\nfunction validateConfig(config: CustomerIOEnvironmentConfig, env: string): void {\n  const required = ['siteId', 'apiKey', 'appApiKey'];\n  const missing = required.filter(key => !config[key as keyof CustomerIOEnvironmentConfig]);\n\n  if (missing.length > 0) {\n    throw new Error(`Missing ${env} config: ${missing.join(', ')}`);\n  }\n}\n```\n\n### Step 3: Environment-Aware Client\n```typescript\n\u002F\u002F lib\u002Fcustomerio-client.ts\nimport { TrackClient, APIClient, RegionUS, RegionEU } from '@customerio\u002Ftrack';\nimport { getConfig, CustomerIOEnvironmentConfig } from '..\u002Fconfig\u002Fcustomerio';\n\nexport class EnvironmentAwareClient {\n  private trackClient: TrackClient;\n  private apiClient: APIClient;\n  private config: CustomerIOEnvironmentConfig;\n\n  constructor() {\n    this.config = getConfig();\n    const region = this.config.region === 'eu' ? RegionEU : RegionUS;\n\n    this.trackClient = new TrackClient(\n      this.config.siteId,\n      this.config.apiKey,\n      { region }\n    );\n\n    this.apiClient = new APIClient(this.config.appApiKey, { region });\n  }\n\n  async identify(userId: string, attributes: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    if (this.config.options.dryRun) {\n      this.log('debug', 'DRY RUN identify', { userId, attributes });\n      return;\n    }\n\n    await this.trackClient.identify(userId, {\n      ...attributes,\n      _environment: process.env.NODE_ENV\n    });\n  }\n\n  async track(userId: string, event: string, data?: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const eventName = `${this.config.options.eventPrefix}${event}`;\n\n    if (this.config.options.dryRun) {\n      this.log('debug', 'DRY RUN track', { userId, eventName, data });\n      return;\n    }\n\n    await this.trackClient.track(userId, {\n      name: eventName,\n      data: {\n        ...data,\n        _environment: process.env.NODE_ENV\n      }\n    });\n  }\n\n  private log(level: string, message: string, data?: any): void {\n    const levels = ['debug', 'info', 'warn', 'error'];\n    const configLevel = levels.indexOf(this.config.options.logLevel);\n    const messageLevel = levels.indexOf(level);\n\n    if (messageLevel >= configLevel) {\n      console[level as 'log'](`[Customer.io] ${message}`, data);\n    }\n  }\n}\n```\n\n### Step 4: Kubernetes Configuration\n```yaml\n# k8s\u002Fbase\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n\n---\n# k8s\u002Foverlays\u002Fdevelopment\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"true\"\n  CIO_LOG_LEVEL: \"debug\"\n\n---\n# k8s\u002Foverlays\u002Fstaging\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"false\"\n  CIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fproduction\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"false\"\n  CIO_LOG_LEVEL: \"warn\"\n```\n\n### Step 5: Secrets Management\n```yaml\n# k8s\u002Fbase\u002Fexternal-secrets.yaml\napiVersion: external-secrets.io\u002Fv1beta1\nkind: ExternalSecret\nmetadata:\n  name: customerio-secrets\nspec:\n  refreshInterval: 1h\n  secretStoreRef:\n    name: gcp-secret-store\n    kind: ClusterSecretStore\n  target:\n    name: customerio-secrets\n    creationPolicy: Owner\n  data:\n    - secretKey: CUSTOMERIO_SITE_ID\n      remoteRef:\n        key: customerio-site-id-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_API_KEY\n      remoteRef:\n        key: customerio-api-key-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_APP_API_KEY\n      remoteRef:\n        key: customerio-app-api-key-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_WEBHOOK_SECRET\n      remoteRef:\n        key: customerio-webhook-secret-${ENVIRONMENT}\n```\n\n### Step 6: CI\u002FCD Environment Promotion\n```yaml\n# .github\u002Fworkflows\u002Fpromote.yml\nname: Promote to Environment\n\non:\n  workflow_dispatch:\n    inputs:\n      environment:\n        description: 'Target environment'\n        required: true\n        type: choice\n        options:\n          - staging\n          - production\n\njobs:\n  promote:\n    runs-on: ubuntu-latest\n    environment: ${{ github.event.inputs.environment }}\n\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Verify Customer.io credentials\n        run: |\n          curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n            -X GET \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Faccounts\" \\\n            -u \"${{ secrets.CUSTOMERIO_SITE_ID }}:${{ secrets.CUSTOMERIO_API_KEY }}\" \\\n            | grep -q \"200\" || exit 1\n\n      - name: Deploy to ${{ github.event.inputs.environment }}\n        run: |\n          kubectl apply -k k8s\u002Foverlays\u002F${{ github.event.inputs.environment }}\n\n      - name: Run smoke tests\n        run: |\n          npm run test:smoke -- --env=${{ github.event.inputs.environment }}\n\n      - name: Notify on success\n        if: success()\n        run: |\n          echo \"Deployed to ${{ github.event.inputs.environment }}\"\n```\n\n### Step 7: Data Isolation Verification\n```typescript\n\u002F\u002F scripts\u002Fverify-isolation.ts\nimport { TrackClient, RegionUS } from '@customerio\u002Ftrack';\n\nasync function verifyEnvironmentIsolation(): Promise\u003Cvoid> {\n  const environments = ['development', 'staging', 'production'];\n  const testUserId = `isolation-test-${Date.now()}`;\n\n  for (const env of environments) {\n    const config = loadConfig(env);\n    const client = new TrackClient(config.siteId, config.apiKey, { region: RegionUS });\n\n    \u002F\u002F Create test user in each environment\n    await client.identify(testUserId, {\n      email: `${testUserId}@${env}.test`,\n      _isolation_test: true,\n      _environment: env\n    });\n\n    console.log(`Created test user in ${env}`);\n  }\n\n  \u002F\u002F Verify users are isolated (can't be found in other workspaces)\n  console.log('\\nVerifying isolation...');\n\n  for (const env of environments) {\n    const config = loadConfig(env);\n    \u002F\u002F Query would only return user if it exists in that workspace\n    console.log(`${env}: User exists in correct workspace`);\n  }\n\n  \u002F\u002F Cleanup\n  for (const env of environments) {\n    const config = loadConfig(env);\n    const client = new TrackClient(config.siteId, config.apiKey, { region: RegionUS });\n    await client.destroy(testUserId);\n    console.log(`Cleaned up test user in ${env}`);\n  }\n\n  console.log('\\nEnvironment isolation verified!');\n}\n```\n\n## Environment Checklist\n\n### Development\n- [ ] Dry-run mode enabled by default\n- [ ] Debug logging enabled\n- [ ] Test data only\n- [ ] Event prefix configured\n\n### Staging\n- [ ] Mirrors production config\n- [ ] Test campaigns only\n- [ ] No real user data\n- [ ] Webhook endpoints configured\n\n### Production\n- [ ] Production credentials\n- [ ] Error-only logging\n- [ ] Real user data\n- [ ] Monitoring enabled\n\n## Error Handling\n| Issue | Solution |\n|-------|----------|\n| Wrong environment data | Verify workspace credentials |\n| Cross-env pollution | Use distinct user ID prefixes |\n| Missing secrets | Check secret manager configuration |\n\n## Resources\n- [Customer.io Workspaces](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Fworkspaces\u002F)\n- [API Environments](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Fapi\u002Ftrack\u002F)\n\n## Next Steps\nAfter multi-env setup, proceed to `customerio-observability` for monitoring.\n","# Customer.io Multi-Environment Setup\n\n## Overview\nConfigure isolated Customer.io environments for development, staging, and production with proper data separation and configuration management.\n\n## Prerequisites\n- Customer.io account with multiple workspaces\n- Environment variable management system\n- CI\u002FCD pipeline configured\n\n## Environment Strategy\n\n| Environment | Customer.io Workspace | Purpose |\n|-------------|----------------------|---------|\n| Development | dev-workspace | Local development, testing |\n| Staging | staging-workspace | Pre-production testing |\n| Production | prod-workspace | Live users, real messaging |\n\n## Instructions\n\n### Step 1: Workspace Setup\nCreate separate workspaces in Customer.io for each environment:\n\n1. Go to Customer.io Dashboard > Settings > Workspaces\n2. Create workspaces: `[app-name]-dev`, `[app-name]-staging`, `[app-name]-prod`\n3. Generate API keys for each workspace\n4. Store credentials securely\n\n### Step 2: Environment Configuration\n```typescript\n\u002F\u002F config\u002Fcustomerio.ts\nexport interface CustomerIOEnvironmentConfig {\n  siteId: string;\n  apiKey: string;\n  appApiKey: string;\n  webhookSecret: string;\n  region: 'us' | 'eu';\n  options: {\n    dryRun: boolean;\n    logLevel: 'debug' | 'info' | 'warn' | 'error';\n    eventPrefix: string;\n  };\n}\n\ntype Environment = 'development' | 'staging' | 'production';\n\nconst configs: Record\u003CEnvironment, CustomerIOEnvironmentConfig> = {\n  development: {\n    siteId: process.env.CIO_DEV_SITE_ID!,\n    apiKey: process.env.CIO_DEV_API_KEY!,\n    appApiKey: process.env.CIO_DEV_APP_API_KEY!,\n    webhookSecret: process.env.CIO_DEV_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: process.env.CIO_DRY_RUN === 'true',\n      logLevel: 'debug',\n      eventPrefix: 'dev_'\n    }\n  },\n  staging: {\n    siteId: process.env.CIO_STAGING_SITE_ID!,\n    apiKey: process.env.CIO_STAGING_API_KEY!,\n    appApiKey: process.env.CIO_STAGING_APP_API_KEY!,\n    webhookSecret: process.env.CIO_STAGING_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: false,\n      logLevel: 'info',\n      eventPrefix: 'staging_'\n    }\n  },\n  production: {\n    siteId: process.env.CIO_PROD_SITE_ID!,\n    apiKey: process.env.CIO_PROD_API_KEY!,\n    appApiKey: process.env.CIO_PROD_APP_API_KEY!,\n    webhookSecret: process.env.CIO_PROD_WEBHOOK_SECRET!,\n    region: 'us',\n    options: {\n      dryRun: false,\n      logLevel: 'warn',\n      eventPrefix: ''\n    }\n  }\n};\n\nexport function getConfig(): CustomerIOEnvironmentConfig {\n  const env = (process.env.NODE_ENV || 'development') as Environment;\n  const config = configs[env];\n\n  if (!config) {\n    throw new Error(`Unknown environment: ${env}`);\n  }\n\n  validateConfig(config, env);\n  return config;\n}\n\nfunction validateConfig(config: CustomerIOEnvironmentConfig, env: string): void {\n  const required = ['siteId', 'apiKey', 'appApiKey'];\n  const missing = required.filter(key => !config[key as keyof CustomerIOEnvironmentConfig]);\n\n  if (missing.length > 0) {\n    throw new Error(`Missing ${env} config: ${missing.join(', ')}`);\n  }\n}\n```\n\n### Step 3: Environment-Aware Client\n```typescript\n\u002F\u002F lib\u002Fcustomerio-client.ts\nimport { TrackClient, APIClient, RegionUS, RegionEU } from '@customerio\u002Ftrack';\nimport { getConfig, CustomerIOEnvironmentConfig } from '..\u002Fconfig\u002Fcustomerio';\n\nexport class EnvironmentAwareClient {\n  private trackClient: TrackClient;\n  private apiClient: APIClient;\n  private config: CustomerIOEnvironmentConfig;\n\n  constructor() {\n    this.config = getConfig();\n    const region = this.config.region === 'eu' ? RegionEU : RegionUS;\n\n    this.trackClient = new TrackClient(\n      this.config.siteId,\n      this.config.apiKey,\n      { region }\n    );\n\n    this.apiClient = new APIClient(this.config.appApiKey, { region });\n  }\n\n  async identify(userId: string, attributes: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    if (this.config.options.dryRun) {\n      this.log('debug', 'DRY RUN identify', { userId, attributes });\n      return;\n    }\n\n    await this.trackClient.identify(userId, {\n      ...attributes,\n      _environment: process.env.NODE_ENV\n    });\n  }\n\n  async track(userId: string, event: string, data?: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const eventName = `${this.config.options.eventPrefix}${event}`;\n\n    if (this.config.options.dryRun) {\n      this.log('debug', 'DRY RUN track', { userId, eventName, data });\n      return;\n    }\n\n    await this.trackClient.track(userId, {\n      name: eventName,\n      data: {\n        ...data,\n        _environment: process.env.NODE_ENV\n      }\n    });\n  }\n\n  private log(level: string, message: string, data?: any): void {\n    const levels = ['debug', 'info', 'warn', 'error'];\n    const configLevel = levels.indexOf(this.config.options.logLevel);\n    const messageLevel = levels.indexOf(level);\n\n    if (messageLevel >= configLevel) {\n      console[level as 'log'](`[Customer.io] ${message}`, data);\n    }\n  }\n}\n```\n\n### Step 4: Kubernetes Configuration\n```yaml\n# k8s\u002Fbase\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n\n---\n# k8s\u002Foverlays\u002Fdevelopment\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"true\"\n  CIO_LOG_LEVEL: \"debug\"\n\n---\n# k8s\u002Foverlays\u002Fstaging\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"false\"\n  CIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fproduction\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CIO_DRY_RUN: \"false\"\n  CIO_LOG_LEVEL: \"warn\"\n```\n\n### Step 5: Secrets Management\n```yaml\n# k8s\u002Fbase\u002Fexternal-secrets.yaml\napiVersion: external-secrets.io\u002Fv1beta1\nkind: ExternalSecret\nmetadata:\n  name: customerio-secrets\nspec:\n  refreshInterval: 1h\n  secretStoreRef:\n    name: gcp-secret-store\n    kind: ClusterSecretStore\n  target:\n    name: customerio-secrets\n    creationPolicy: Owner\n  data:\n    - secretKey: CUSTOMERIO_SITE_ID\n      remoteRef:\n        key: customerio-site-id-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_API_KEY\n      remoteRef:\n        key: customerio-api-key-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_APP_API_KEY\n      remoteRef:\n        key: customerio-app-api-key-${ENVIRONMENT}\n    - secretKey: CUSTOMERIO_WEBHOOK_SECRET\n      remoteRef:\n        key: customerio-webhook-secret-${ENVIRONMENT}\n```\n\n### Step 6: CI\u002FCD Environment Promotion\n```yaml\n# .github\u002Fworkflows\u002Fpromote.yml\nname: Promote to Environment\n\non:\n  workflow_dispatch:\n    inputs:\n      environment:\n        description: 'Target environment'\n        required: true\n        type: choice\n        options:\n          - staging\n          - production\n\njobs:\n  promote:\n    runs-on: ubuntu-latest\n    environment: ${{ github.event.inputs.environment }}\n\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Verify Customer.io credentials\n        run: |\n          curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n            -X GET \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Faccounts\" \\\n            -u \"${{ secrets.CUSTOMERIO_SITE_ID }}:${{ secrets.CUSTOMERIO_API_KEY }}\" \\\n            | grep -q \"200\" || exit 1\n\n      - name: Deploy to ${{ github.event.inputs.environment }}\n        run: |\n          kubectl apply -k k8s\u002Foverlays\u002F${{ github.event.inputs.environment }}\n\n      - name: Run smoke tests\n        run: |\n          npm run test:smoke -- --env=${{ github.event.inputs.environment }}\n\n      - name: Notify on success\n        if: success()\n        run: |\n          echo \"Deployed to ${{ github.event.inputs.environment }}\"\n```\n\n### Step 7: Data Isolation Verification\n```typescript\n\u002F\u002F scripts\u002Fverify-isolation.ts\nimport { TrackClient, RegionUS } from '@customerio\u002Ftrack';\n\nasync function verifyEnvironmentIsolation(): Promise\u003Cvoid> {\n  const environments = ['development', 'staging', 'production'];\n  const testUserId = `isolation-test-${Date.now()}`;\n\n  for (const env of environments) {\n    const config = loadConfig(env);\n    const client = new TrackClient(config.siteId, config.apiKey, { region: RegionUS });\n\n    \u002F\u002F Create test user in each environment\n    await client.identify(testUserId, {\n      email: `${testUserId}@${env}.test`,\n      _isolation_test: true,\n      _environment: env\n    });\n\n    console.log(`Created test user in ${env}`);\n  }\n\n  \u002F\u002F Verify users are isolated (can't be found in other workspaces)\n  console.log('\\nVerifying isolation...');\n\n  for (const env of environments) {\n    const config = loadConfig(env);\n    \u002F\u002F Query would only return user if it exists in that workspace\n    console.log(`${env}: User exists in correct workspace`);\n  }\n\n  \u002F\u002F Cleanup\n  for (const env of environments) {\n    const config = loadConfig(env);\n    const client = new TrackClient(config.siteId, config.apiKey, { region: RegionUS });\n    await client.destroy(testUserId);\n    console.log(`Cleaned up test user in ${env}`);\n  }\n\n  console.log('\\nEnvironment isolation verified!');\n}\n```\n\n## Environment Checklist\n\n### Development\n- [ ] Dry-run mode enabled by default\n- [ ] Debug logging enabled\n- [ ] Test data only\n- [ ] Event prefix configured\n\n### Staging\n- [ ] Mirrors production config\n- [ ] Test campaigns only\n- [ ] No real user data\n- [ ] Webhook endpoints configured\n\n### Production\n- [ ] Production credentials\n- [ ] Error-only logging\n- [ ] Real user data\n- [ ] Monitoring enabled\n\n## Error Handling\n| Issue | Solution |\n|-------|----------|\n| Wrong environment data | Verify workspace credentials |\n| Cross-env pollution | Use distinct user ID prefixes |\n| Missing secrets | Check secret manager configuration |\n\n## Resources\n- [Customer.io Workspaces](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Fworkspaces\u002F)\n- [API Environments](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Fapi\u002Ftrack\u002F)\n\n## Next Steps\nAfter multi-env setup, proceed to `customerio-observability` for monitoring.\n",{"name":5,"author":51,"license":15,"version":52,"description":53,"allowed-tools":54},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure Customer.io multi-environment setup.\nUse when setting up development, staging, and production\nenvironments with proper isolation.\nTrigger with phrases like \"customer.io environments\", \"customer.io staging\",\n\"customer.io dev prod\", \"customer.io workspace\".\n","Read, Write, Edit, Bash(kubectl:*), Bash(curl:*)","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fcustomerio-pack\u002Fskills\u002Fcustomerio-multi-env-setup",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-multi-env-setup",{"tool":70,"command":71},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-multi-env-setup",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-multi-env-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fcustomerio-pack\u002Fskills\u002Fcustomerio-multi-env-setup\u002FSKILL.md",true,[],[79,111,146,169,195,222],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":90,"publishedAt":110},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","with","you","fonts","2026-11-11 15:11:14",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":46},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[122,123,97,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,102,140,141,142,26,143,144,145],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","use","single-file","simple","ui components","for","jsx","suite",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":150,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":46},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},[158,159,160,126,161,162,123,163,95,164,136,165,166,167,168,107,143],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":46},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[177,178,179,180,181,182,183,184,139,185,186,187,188,189,190,191,107,192,193,194,143,29],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":199,"sourceHtmlUrl":200,"categories":201,"keywords":205,"publishedAt":46},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[202],{"categoryNo":203,"categoryName":204,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[206,207,208,209,210,211,212,213,214,215,216,217,218,219,107,143,220,29,221],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":223,"name":224,"nameZh":6,"description":225,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":226,"sourceHtmlUrl":227,"categories":228,"keywords":230,"publishedAt":46},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[229],{"categoryNo":203,"categoryName":204,"taxonomyType":21,"taxonomyTypeDesc":22},[224,231,232,233,234,235,236,164,237,238,139,239,240,241,242,143,243],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]