[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78Z6HMG0CTAF8MKVDCKKGDA":3,"skill-same:01M78Z6HMG0CTAF8MKVDCKKGDA":57},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M78Z6HMG0CTAF8MKVDCKKGDA","customerio-multi-env-setup",null,"Configure Customer.io multi-environment setup with workspace isolation.\nUse when setting up dev\u002Fstaging\u002Fprod workspaces, environment-aware\nclients, or Kubernetes config overlays.\nTrigger: \"customer.io environments\", \"customer.io staging\",\n\"customer.io dev prod\", \"customer.io workspace isolation\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--customerio-pack--customerio-multi-env-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: customerio-multi-env-setup\ndescription: |\n  Configure Customer.io multi-environment setup with workspace isolation.\n  Use when setting up dev\u002Fstaging\u002Fprod workspaces, environment-aware\n  clients, or Kubernetes config overlays.\n  Trigger: \"customer.io environments\", \"customer.io staging\",\n  \"customer.io dev prod\", \"customer.io workspace isolation\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(kubectl:*), Glob, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, customer-io, multi-environment, kubernetes]\n---\n# Customer.io Multi-Environment Setup\n\n## Overview\n\nConfigure isolated Customer.io environments for dev, staging, and production: separate workspaces per environment, typed configuration with validation, environment-aware client wrappers, Kubernetes ConfigMap overlays, and data isolation verification.\n\n## Prerequisites\n\n- Customer.io account with multiple workspaces (create at fly.customer.io)\n- Environment variable management (dotenv, secrets manager)\n- CI\u002FCD pipeline for per-environment deployment\n\n## Workspace Strategy\n\n| Environment | Workspace Name | Purpose | Dry Run | Data |\n|-------------|---------------|---------|---------|------|\n| Local dev | `myapp-dev` | Individual developer testing | Optional | Fake\u002Ftest data |\n| CI | `myapp-ci` | Automated test runs | No | Auto-cleaned test data |\n| Staging | `myapp-staging` | Pre-production validation | No | Subset of real data |\n| Production | `myapp-prod` | Live users | No | Real user data |\n\nEach workspace has its own Site ID, Track API Key, and App API Key. Create workspaces at Settings > Workspace Settings.\n\n## Instructions\n\n### Step 1: Typed Environment Configuration\n\n```typescript\n\u002F\u002F config\u002Fcustomerio.ts\nimport { RegionUS, RegionEU } from \"customerio-node\";\n\ntype CioEnvironment = \"development\" | \"ci\" | \"staging\" | \"production\";\n\ninterface CioEnvConfig {\n  siteId: string;\n  trackApiKey: string;\n  appApiKey: string;\n  region: typeof RegionUS | typeof RegionEU;\n  dryRun: boolean;\n  logLevel: \"debug\" | \"info\" | \"warn\" | \"error\";\n  eventPrefix: string;     \u002F\u002F Prefix events in non-prod to prevent confusion\n}\n\nfunction validateConfig(config: CioEnvConfig, env: CioEnvironment): void {\n  if (!config.siteId) throw new Error(`Missing CUSTOMERIO_SITE_ID for ${env}`);\n  if (!config.trackApiKey) throw new Error(`Missing CUSTOMERIO_TRACK_API_KEY for ${env}`);\n  if (env === \"production\" && config.dryRun) {\n    throw new Error(\"Production cannot be in dry-run mode\");\n  }\n  if (env === \"production\" && config.eventPrefix) {\n    throw new Error(\"Production must not use event prefix\");\n  }\n}\n\nexport function loadCioConfig(): CioEnvConfig {\n  const env = (process.env.NODE_ENV ?? \"development\") as CioEnvironment;\n  const region = process.env.CUSTOMERIO_REGION === \"eu\" ? RegionEU : RegionUS;\n\n  const config: CioEnvConfig = {\n    siteId: process.env.CUSTOMERIO_SITE_ID ?? \"\",\n    trackApiKey: process.env.CUSTOMERIO_TRACK_API_KEY ?? \"\",\n    appApiKey: process.env.CUSTOMERIO_APP_API_KEY ?? \"\",\n    region,\n    dryRun: process.env.CUSTOMERIO_DRY_RUN === \"true\",\n    logLevel: (process.env.CUSTOMERIO_LOG_LEVEL as any) ?? (env === \"production\" ? \"warn\" : \"debug\"),\n    eventPrefix: process.env.CUSTOMERIO_EVENT_PREFIX ?? (env === \"production\" ? \"\" : `${env}_`),\n  };\n\n  validateConfig(config, env);\n  return config;\n}\n```\n\n### Step 2: Environment-Aware Client\n\n```typescript\n\u002F\u002F lib\u002Fcustomerio-env.ts\nimport { TrackClient, APIClient } from \"customerio-node\";\nimport { loadCioConfig } from \"..\u002Fconfig\u002Fcustomerio\";\n\nconst config = loadCioConfig();\n\nexport class EnvAwareCioClient {\n  private track: TrackClient | null;\n  private app: APIClient | null;\n\n  constructor() {\n    if (config.dryRun) {\n      this.track = null;\n      this.app = null;\n    } else {\n      this.track = new TrackClient(config.siteId, config.trackApiKey, {\n        region: config.region,\n      });\n      this.app = config.appApiKey\n        ? new APIClient(config.appApiKey, { region: config.region })\n        : null;\n    }\n  }\n\n  async identify(userId: string, attrs: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const prefixedId = config.eventPrefix\n      ? `${config.eventPrefix}${userId}`\n      : userId;\n\n    \u002F\u002F Tag with environment for debugging\n    const envAttrs = {\n      ...attrs,\n      _cio_env: process.env.NODE_ENV,\n    };\n\n    if (config.dryRun) {\n      if (config.logLevel === \"debug\") {\n        console.log(`[CIO DRY RUN] identify: ${prefixedId}`, envAttrs);\n      }\n      return;\n    }\n\n    await this.track!.identify(prefixedId, envAttrs);\n  }\n\n  async track(userId: string, name: string, data?: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const prefixedId = config.eventPrefix\n      ? `${config.eventPrefix}${userId}`\n      : userId;\n    const prefixedName = config.eventPrefix\n      ? `${config.eventPrefix}${name}`\n      : name;\n\n    if (config.dryRun) {\n      if (config.logLevel === \"debug\") {\n        console.log(`[CIO DRY RUN] track: ${prefixedId} ${prefixedName}`, data);\n      }\n      return;\n    }\n\n    await this.track!.track(prefixedId, { name: prefixedName, data });\n  }\n\n  getAppClient(): APIClient {\n    if (!this.app) {\n      throw new Error(\"App API not available (dry-run or missing key)\");\n    }\n    return this.app;\n  }\n}\n```\n\n### Step 3: Environment Files\n\n```bash\n# .env.development\nNODE_ENV=development\nCUSTOMERIO_SITE_ID=dev-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=dev-track-key\nCUSTOMERIO_APP_API_KEY=dev-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=dev_\nCUSTOMERIO_LOG_LEVEL=debug\n\n# .env.staging\nNODE_ENV=staging\nCUSTOMERIO_SITE_ID=staging-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=staging-track-key\nCUSTOMERIO_APP_API_KEY=staging-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=staging_\nCUSTOMERIO_LOG_LEVEL=info\n\n# .env.production (or use secrets manager)\nNODE_ENV=production\nCUSTOMERIO_SITE_ID=prod-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=prod-track-key\nCUSTOMERIO_APP_API_KEY=prod-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=\nCUSTOMERIO_LOG_LEVEL=warn\n```\n\n### Step 4: Kubernetes ConfigMap Overlays\n\n```yaml\n# k8s\u002Fbase\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CUSTOMERIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fdevelopment\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"true\"\n  CUSTOMERIO_EVENT_PREFIX: \"dev_\"\n  CUSTOMERIO_LOG_LEVEL: \"debug\"\n\n---\n# k8s\u002Foverlays\u002Fstaging\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"false\"\n  CUSTOMERIO_EVENT_PREFIX: \"staging_\"\n  CUSTOMERIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fproduction\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"false\"\n  CUSTOMERIO_EVENT_PREFIX: \"\"\n  CUSTOMERIO_LOG_LEVEL: \"warn\"\n```\n\n### Step 5: Data Isolation Verification\n\n```typescript\n\u002F\u002F scripts\u002Fverify-isolation.ts\nimport { TrackClient, RegionUS } from \"customerio-node\";\n\nasync function verifyIsolation() {\n  const envs = [\"development\", \"staging\", \"production\"];\n  const testId = `isolation-test-${Date.now()}`;\n\n  for (const env of envs) {\n    const siteId = process.env[`CIO_${env.toUpperCase()}_SITE_ID`];\n    const apiKey = process.env[`CIO_${env.toUpperCase()}_TRACK_KEY`];\n    if (!siteId || !apiKey) {\n      console.log(`[SKIP] ${env}: credentials not configured`);\n      continue;\n    }\n\n    const client = new TrackClient(siteId, apiKey, { region: RegionUS });\n    try {\n      await client.identify(testId, {\n        email: `${testId}@isolation-test.example.com`,\n        _test_env: env,\n      });\n      console.log(`[OK] ${env}: identify succeeded (separate workspace)`);\n\n      \u002F\u002F Clean up\n      await client.suppress(testId);\n      await client.destroy(testId);\n    } catch (err: any) {\n      console.log(`[FAIL] ${env}: ${err.statusCode} ${err.message}`);\n    }\n  }\n}\n\nverifyIsolation();\n```\n\n### Step 6: CI\u002FCD Environment Promotion\n\n```yaml\n# .github\u002Fworkflows\u002Fpromote.yml\nname: Promote to Environment\non:\n  workflow_dispatch:\n    inputs:\n      target_env:\n        description: \"Target environment\"\n        required: true\n        type: choice\n        options: [staging, production]\n\njobs:\n  promote:\n    runs-on: ubuntu-latest\n    environment: ${{ inputs.target_env }}\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with: { node-version: 20 }\n      - run: npm ci\n\n      - name: Smoke test target environment\n        env:\n          CUSTOMERIO_SITE_ID: ${{ secrets.CIO_SITE_ID }}\n          CUSTOMERIO_TRACK_API_KEY: ${{ secrets.CIO_TRACK_API_KEY }}\n        run: npx tsx scripts\u002Fverify-customerio.ts\n\n      - name: Deploy\n        run: echo \"Deploy to ${{ inputs.target_env }}\"\n```\n\n## Error Handling\n\n| Issue | Solution |\n|-------|----------|\n| Wrong workspace credentials | Config validation throws on startup — check error message |\n| Cross-env data leak | Event prefix prevents accidental production triggers |\n| Production in dry-run | Config validator explicitly blocks this combination |\n| Missing env-specific secret | Kubernetes ExternalSecrets or CI secret scoping |\n\n## Resources\n\n- [Customer.io Workspaces](https:\u002F\u002Fdocs.customer.io\u002Faccounts-and-workspaces\u002Fmanaging-credentials\u002F)\n- [Account Regions](https:\u002F\u002Fdocs.customer.io\u002Faccounts-and-workspaces\u002Fdata-centers\u002F)\n\n## Next Steps\n\nAfter multi-env setup, proceed to `customerio-observability` for monitoring.\n","# Customer.io Multi-Environment Setup\n\n## Overview\n\nConfigure isolated Customer.io environments for dev, staging, and production: separate workspaces per environment, typed configuration with validation, environment-aware client wrappers, Kubernetes ConfigMap overlays, and data isolation verification.\n\n## Prerequisites\n\n- Customer.io account with multiple workspaces (create at fly.customer.io)\n- Environment variable management (dotenv, secrets manager)\n- CI\u002FCD pipeline for per-environment deployment\n\n## Workspace Strategy\n\n| Environment | Workspace Name | Purpose | Dry Run | Data |\n|-------------|---------------|---------|---------|------|\n| Local dev | `myapp-dev` | Individual developer testing | Optional | Fake\u002Ftest data |\n| CI | `myapp-ci` | Automated test runs | No | Auto-cleaned test data |\n| Staging | `myapp-staging` | Pre-production validation | No | Subset of real data |\n| Production | `myapp-prod` | Live users | No | Real user data |\n\nEach workspace has its own Site ID, Track API Key, and App API Key. Create workspaces at Settings > Workspace Settings.\n\n## Instructions\n\n### Step 1: Typed Environment Configuration\n\n```typescript\n\u002F\u002F config\u002Fcustomerio.ts\nimport { RegionUS, RegionEU } from \"customerio-node\";\n\ntype CioEnvironment = \"development\" | \"ci\" | \"staging\" | \"production\";\n\ninterface CioEnvConfig {\n  siteId: string;\n  trackApiKey: string;\n  appApiKey: string;\n  region: typeof RegionUS | typeof RegionEU;\n  dryRun: boolean;\n  logLevel: \"debug\" | \"info\" | \"warn\" | \"error\";\n  eventPrefix: string;     \u002F\u002F Prefix events in non-prod to prevent confusion\n}\n\nfunction validateConfig(config: CioEnvConfig, env: CioEnvironment): void {\n  if (!config.siteId) throw new Error(`Missing CUSTOMERIO_SITE_ID for ${env}`);\n  if (!config.trackApiKey) throw new Error(`Missing CUSTOMERIO_TRACK_API_KEY for ${env}`);\n  if (env === \"production\" && config.dryRun) {\n    throw new Error(\"Production cannot be in dry-run mode\");\n  }\n  if (env === \"production\" && config.eventPrefix) {\n    throw new Error(\"Production must not use event prefix\");\n  }\n}\n\nexport function loadCioConfig(): CioEnvConfig {\n  const env = (process.env.NODE_ENV ?? \"development\") as CioEnvironment;\n  const region = process.env.CUSTOMERIO_REGION === \"eu\" ? RegionEU : RegionUS;\n\n  const config: CioEnvConfig = {\n    siteId: process.env.CUSTOMERIO_SITE_ID ?? \"\",\n    trackApiKey: process.env.CUSTOMERIO_TRACK_API_KEY ?? \"\",\n    appApiKey: process.env.CUSTOMERIO_APP_API_KEY ?? \"\",\n    region,\n    dryRun: process.env.CUSTOMERIO_DRY_RUN === \"true\",\n    logLevel: (process.env.CUSTOMERIO_LOG_LEVEL as any) ?? (env === \"production\" ? \"warn\" : \"debug\"),\n    eventPrefix: process.env.CUSTOMERIO_EVENT_PREFIX ?? (env === \"production\" ? \"\" : `${env}_`),\n  };\n\n  validateConfig(config, env);\n  return config;\n}\n```\n\n### Step 2: Environment-Aware Client\n\n```typescript\n\u002F\u002F lib\u002Fcustomerio-env.ts\nimport { TrackClient, APIClient } from \"customerio-node\";\nimport { loadCioConfig } from \"..\u002Fconfig\u002Fcustomerio\";\n\nconst config = loadCioConfig();\n\nexport class EnvAwareCioClient {\n  private track: TrackClient | null;\n  private app: APIClient | null;\n\n  constructor() {\n    if (config.dryRun) {\n      this.track = null;\n      this.app = null;\n    } else {\n      this.track = new TrackClient(config.siteId, config.trackApiKey, {\n        region: config.region,\n      });\n      this.app = config.appApiKey\n        ? new APIClient(config.appApiKey, { region: config.region })\n        : null;\n    }\n  }\n\n  async identify(userId: string, attrs: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const prefixedId = config.eventPrefix\n      ? `${config.eventPrefix}${userId}`\n      : userId;\n\n    \u002F\u002F Tag with environment for debugging\n    const envAttrs = {\n      ...attrs,\n      _cio_env: process.env.NODE_ENV,\n    };\n\n    if (config.dryRun) {\n      if (config.logLevel === \"debug\") {\n        console.log(`[CIO DRY RUN] identify: ${prefixedId}`, envAttrs);\n      }\n      return;\n    }\n\n    await this.track!.identify(prefixedId, envAttrs);\n  }\n\n  async track(userId: string, name: string, data?: Record\u003Cstring, any>): Promise\u003Cvoid> {\n    const prefixedId = config.eventPrefix\n      ? `${config.eventPrefix}${userId}`\n      : userId;\n    const prefixedName = config.eventPrefix\n      ? `${config.eventPrefix}${name}`\n      : name;\n\n    if (config.dryRun) {\n      if (config.logLevel === \"debug\") {\n        console.log(`[CIO DRY RUN] track: ${prefixedId} ${prefixedName}`, data);\n      }\n      return;\n    }\n\n    await this.track!.track(prefixedId, { name: prefixedName, data });\n  }\n\n  getAppClient(): APIClient {\n    if (!this.app) {\n      throw new Error(\"App API not available (dry-run or missing key)\");\n    }\n    return this.app;\n  }\n}\n```\n\n### Step 3: Environment Files\n\n```bash\n# .env.development\nNODE_ENV=development\nCUSTOMERIO_SITE_ID=dev-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=dev-track-key\nCUSTOMERIO_APP_API_KEY=dev-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=dev_\nCUSTOMERIO_LOG_LEVEL=debug\n\n# .env.staging\nNODE_ENV=staging\nCUSTOMERIO_SITE_ID=staging-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=staging-track-key\nCUSTOMERIO_APP_API_KEY=staging-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=staging_\nCUSTOMERIO_LOG_LEVEL=info\n\n# .env.production (or use secrets manager)\nNODE_ENV=production\nCUSTOMERIO_SITE_ID=prod-workspace-site-id\nCUSTOMERIO_TRACK_API_KEY=prod-track-key\nCUSTOMERIO_APP_API_KEY=prod-app-key\nCUSTOMERIO_REGION=us\nCUSTOMERIO_DRY_RUN=false\nCUSTOMERIO_EVENT_PREFIX=\nCUSTOMERIO_LOG_LEVEL=warn\n```\n\n### Step 4: Kubernetes ConfigMap Overlays\n\n```yaml\n# k8s\u002Fbase\u002Fconfigmap.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_REGION: \"us\"\n  CUSTOMERIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fdevelopment\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"true\"\n  CUSTOMERIO_EVENT_PREFIX: \"dev_\"\n  CUSTOMERIO_LOG_LEVEL: \"debug\"\n\n---\n# k8s\u002Foverlays\u002Fstaging\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"false\"\n  CUSTOMERIO_EVENT_PREFIX: \"staging_\"\n  CUSTOMERIO_LOG_LEVEL: \"info\"\n\n---\n# k8s\u002Foverlays\u002Fproduction\u002Fconfigmap-patch.yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: customerio-config\ndata:\n  CUSTOMERIO_DRY_RUN: \"false\"\n  CUSTOMERIO_EVENT_PREFIX: \"\"\n  CUSTOMERIO_LOG_LEVEL: \"warn\"\n```\n\n### Step 5: Data Isolation Verification\n\n```typescript\n\u002F\u002F scripts\u002Fverify-isolation.ts\nimport { TrackClient, RegionUS } from \"customerio-node\";\n\nasync function verifyIsolation() {\n  const envs = [\"development\", \"staging\", \"production\"];\n  const testId = `isolation-test-${Date.now()}`;\n\n  for (const env of envs) {\n    const siteId = process.env[`CIO_${env.toUpperCase()}_SITE_ID`];\n    const apiKey = process.env[`CIO_${env.toUpperCase()}_TRACK_KEY`];\n    if (!siteId || !apiKey) {\n      console.log(`[SKIP] ${env}: credentials not configured`);\n      continue;\n    }\n\n    const client = new TrackClient(siteId, apiKey, { region: RegionUS });\n    try {\n      await client.identify(testId, {\n        email: `${testId}@isolation-test.example.com`,\n        _test_env: env,\n      });\n      console.log(`[OK] ${env}: identify succeeded (separate workspace)`);\n\n      \u002F\u002F Clean up\n      await client.suppress(testId);\n      await client.destroy(testId);\n    } catch (err: any) {\n      console.log(`[FAIL] ${env}: ${err.statusCode} ${err.message}`);\n    }\n  }\n}\n\nverifyIsolation();\n```\n\n### Step 6: CI\u002FCD Environment Promotion\n\n```yaml\n# .github\u002Fworkflows\u002Fpromote.yml\nname: Promote to Environment\non:\n  workflow_dispatch:\n    inputs:\n      target_env:\n        description: \"Target environment\"\n        required: true\n        type: choice\n        options: [staging, production]\n\njobs:\n  promote:\n    runs-on: ubuntu-latest\n    environment: ${{ inputs.target_env }}\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with: { node-version: 20 }\n      - run: npm ci\n\n      - name: Smoke test target environment\n        env:\n          CUSTOMERIO_SITE_ID: ${{ secrets.CIO_SITE_ID }}\n          CUSTOMERIO_TRACK_API_KEY: ${{ secrets.CIO_TRACK_API_KEY }}\n        run: npx tsx scripts\u002Fverify-customerio.ts\n\n      - name: Deploy\n        run: echo \"Deploy to ${{ inputs.target_env }}\"\n```\n\n## Error Handling\n\n| Issue | Solution |\n|-------|----------|\n| Wrong workspace credentials | Config validation throws on startup — check error message |\n| Cross-env data leak | Event prefix prevents accidental production triggers |\n| Production in dry-run | Config validator explicitly blocks this combination |\n| Missing env-specific secret | Kubernetes ExternalSecrets or CI secret scoping |\n\n## Resources\n\n- [Customer.io Workspaces](https:\u002F\u002Fdocs.customer.io\u002Faccounts-and-workspaces\u002Fmanaging-credentials\u002F)\n- [Account Regions](https:\u002F\u002Fdocs.customer.io\u002Faccounts-and-workspaces\u002Fdata-centers\u002F)\n\n## Next Steps\n\nAfter multi-env setup, proceed to `customerio-observability` for monitoring.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","customer-io","multi-environment","kubernetes","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure Customer.io multi-environment setup with workspace isolation.\nUse when setting up dev\u002Fstaging\u002Fprod workspaces, environment-aware\nclients, or Kubernetes config overlays.\nTrigger: \"customer.io environments\", \"customer.io staging\",\n\"customer.io dev prod\", \"customer.io workspace isolation\".\n","Read, Write, Edit, Bash(npm:*), Bash(kubectl:*), Glob, Grep","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--customerio-pack--customerio-multi-env-setup",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill customerio-multi-env-setup",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill customerio-multi-env-setup",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill customerio-multi-env-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--customerio-pack--customerio-multi-env-setup\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]