[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F62ZQ696C7FCSRZ3DE4589":3,"skill-same:01M6F62ZQ696C7FCSRZ3DE4589":79},{"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":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6F62ZQ696C7FCSRZ3DE4589","customerio-advanced-troubleshooting",null,"Apply Customer.io advanced debugging techniques.\nUse when diagnosing complex issues, investigating\ndelivery problems, or debugging integration failures.\nTrigger with phrases like \"debug customer.io\", \"customer.io investigation\",\n\"customer.io troubleshoot\", \"customer.io incident\".","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-advanced-troubleshooting\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"customerio advanced troubleshooting","advanced","troubleshooting","write","when","techniques","with","trigger","io","incident","delivery","use","edit","customer","read","curl","Bash","kubectl","integration","issues","debugging","debug","troubleshoot","2026-11-10 10:12:30",false,"---\nname: customerio-advanced-troubleshooting\ndescription: |\n  Apply Customer.io advanced debugging techniques.\n  Use when diagnosing complex issues, investigating\n  delivery problems, or debugging integration failures.\n  Trigger with phrases like \"debug customer.io\", \"customer.io investigation\",\n  \"customer.io troubleshoot\", \"customer.io incident\".\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 Advanced Troubleshooting\n\n## Overview\nAdvanced debugging techniques for diagnosing complex Customer.io integration issues.\n\n## Prerequisites\n- Access to Customer.io dashboard\n- Application logs access\n- Understanding of your integration architecture\n\n## Troubleshooting Framework\n\n### Phase 1: Symptom Identification\n```\n1. What is the expected behavior?\n2. What is the actual behavior?\n3. When did the issue start?\n4. How many users\u002Fmessages affected?\n5. Is it consistent or intermittent?\n```\n\n## Instructions\n\n### Step 1: API Debugging\n```typescript\n\u002F\u002F lib\u002Fdebug-client.ts\nimport { TrackClient, RegionUS } from '@customerio\u002Ftrack';\n\ninterface DebugResult {\n  success: boolean;\n  latency: number;\n  requestId?: string;\n  error?: {\n    code: string;\n    message: string;\n    details?: any;\n  };\n}\n\nexport class DebugCustomerIO {\n  private client: TrackClient;\n\n  constructor() {\n    this.client = new TrackClient(\n      process.env.CUSTOMERIO_SITE_ID!,\n      process.env.CUSTOMERIO_API_KEY!,\n      { region: RegionUS }\n    );\n  }\n\n  async debugIdentify(\n    userId: string,\n    attributes: Record\u003Cstring, any>\n  ): Promise\u003CDebugResult> {\n    const start = Date.now();\n\n    console.log('=== Customer.io Debug: Identify ===');\n    console.log('User ID:', userId);\n    console.log('Attributes:', JSON.stringify(attributes, null, 2));\n\n    try {\n      await this.client.identify(userId, attributes);\n\n      const result: DebugResult = {\n        success: true,\n        latency: Date.now() - start\n      };\n\n      console.log('Result: SUCCESS');\n      console.log('Latency:', result.latency, 'ms');\n\n      return result;\n    } catch (error: any) {\n      const result: DebugResult = {\n        success: false,\n        latency: Date.now() - start,\n        error: {\n          code: error.statusCode || 'UNKNOWN',\n          message: error.message,\n          details: error.response?.body\n        }\n      };\n\n      console.log('Result: FAILED');\n      console.log('Error:', JSON.stringify(result.error, null, 2));\n\n      return result;\n    }\n  }\n\n  async debugTrack(\n    userId: string,\n    event: string,\n    data?: Record\u003Cstring, any>\n  ): Promise\u003CDebugResult> {\n    const start = Date.now();\n\n    console.log('=== Customer.io Debug: Track ===');\n    console.log('User ID:', userId);\n    console.log('Event:', event);\n    console.log('Data:', JSON.stringify(data, null, 2));\n\n    try {\n      await this.client.track(userId, { name: event, data });\n\n      return {\n        success: true,\n        latency: Date.now() - start\n      };\n    } catch (error: any) {\n      return {\n        success: false,\n        latency: Date.now() - start,\n        error: {\n          code: error.statusCode || 'UNKNOWN',\n          message: error.message\n        }\n      };\n    }\n  }\n}\n```\n\n### Step 2: User Profile Investigation\n```typescript\n\u002F\u002F scripts\u002Finvestigate-user.ts\ninterface UserInvestigation {\n  userId: string;\n  profile: {\n    exists: boolean;\n    attributes: Record\u003Cstring, any>;\n    segments: string[];\n  };\n  activity: {\n    lastIdentify: Date;\n    lastEvent: Date;\n    eventCount24h: number;\n    recentEvents: string[];\n  };\n  delivery: {\n    emailsSent: number;\n    emailsDelivered: number;\n    emailsOpened: number;\n    bounces: number;\n    complaints: number;\n    suppressed: boolean;\n  };\n  issues: string[];\n}\n\nasync function investigateUser(userId: string): Promise\u003CUserInvestigation> {\n  const investigation: UserInvestigation = {\n    userId,\n    profile: { exists: false, attributes: {}, segments: [] },\n    activity: {\n      lastIdentify: new Date(0),\n      lastEvent: new Date(0),\n      eventCount24h: 0,\n      recentEvents: []\n    },\n    delivery: {\n      emailsSent: 0,\n      emailsDelivered: 0,\n      emailsOpened: 0,\n      bounces: 0,\n      complaints: 0,\n      suppressed: false\n    },\n    issues: []\n  };\n\n  \u002F\u002F 1. Check if user exists\n  try {\n    const profile = await fetchUserProfile(userId);\n    investigation.profile = {\n      exists: true,\n      attributes: profile.attributes,\n      segments: profile.segments\n    };\n  } catch (error) {\n    investigation.issues.push('User profile not found in Customer.io');\n    return investigation;\n  }\n\n  \u002F\u002F 2. Check for missing required attributes\n  if (!investigation.profile.attributes.email) {\n    investigation.issues.push('User missing email attribute - cannot receive emails');\n  }\n\n  \u002F\u002F 3. Check suppression status\n  if (investigation.delivery.suppressed) {\n    investigation.issues.push('User is suppressed - no messages will be sent');\n  }\n\n  \u002F\u002F 4. Check bounce\u002Fcomplaint history\n  if (investigation.delivery.bounces > 0) {\n    investigation.issues.push(`User has ${investigation.delivery.bounces} bounces`);\n  }\n\n  if (investigation.delivery.complaints > 0) {\n    investigation.issues.push(`User has ${investigation.delivery.complaints} spam complaints - HIGH PRIORITY`);\n  }\n\n  \u002F\u002F 5. Check recent activity\n  const oneDayAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);\n  if (investigation.activity.lastIdentify \u003C oneDayAgo) {\n    investigation.issues.push('User profile not updated in 24+ hours');\n  }\n\n  return investigation;\n}\n```\n\n### Step 3: Campaign Debugging\n```typescript\n\u002F\u002F scripts\u002Fdebug-campaign.ts\ninterface CampaignDebug {\n  campaignId: number;\n  status: 'active' | 'paused' | 'draft';\n  trigger: {\n    type: string;\n    conditions: any;\n  };\n  audience: {\n    segmentId?: number;\n    estimatedSize: number;\n  };\n  recentSends: Array\u003C{\n    userId: string;\n    timestamp: Date;\n    status: string;\n  }>;\n  issues: string[];\n}\n\nasync function debugCampaign(campaignId: number): Promise\u003CCampaignDebug> {\n  const debug: CampaignDebug = {\n    campaignId,\n    status: 'draft',\n    trigger: { type: '', conditions: {} },\n    audience: { estimatedSize: 0 },\n    recentSends: [],\n    issues: []\n  };\n\n  \u002F\u002F Fetch campaign details from API\n  \u002F\u002F Analyze trigger conditions\n  \u002F\u002F Check audience size\n  \u002F\u002F Review recent send activity\n\n  \u002F\u002F Common issues to check\n  if (debug.status !== 'active') {\n    debug.issues.push('Campaign is not active');\n  }\n\n  if (debug.audience.estimatedSize === 0) {\n    debug.issues.push('No users match campaign audience');\n  }\n\n  return debug;\n}\n```\n\n### Step 4: Webhook Debugging\n```typescript\n\u002F\u002F lib\u002Fwebhook-debugger.ts\nimport crypto from 'crypto';\n\ninterface WebhookDebugResult {\n  signatureValid: boolean;\n  payloadParsed: boolean;\n  eventsProcessed: number;\n  errors: Array\u003C{\n    event: string;\n    error: string;\n  }>;\n  processingTime: number;\n}\n\nexport function debugWebhook(\n  rawBody: string,\n  signature: string,\n  secret: string\n): WebhookDebugResult {\n  const start = Date.now();\n  const result: WebhookDebugResult = {\n    signatureValid: false,\n    payloadParsed: false,\n    eventsProcessed: 0,\n    errors: [],\n    processingTime: 0\n  };\n\n  \u002F\u002F 1. Verify signature\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(rawBody)\n    .digest('hex');\n\n  result.signatureValid = crypto.timingSafeEqual(\n    Buffer.from(signature || ''),\n    Buffer.from(expectedSignature)\n  );\n\n  if (!result.signatureValid) {\n    console.log('Expected signature:', expectedSignature);\n    console.log('Received signature:', signature);\n    result.processingTime = Date.now() - start;\n    return result;\n  }\n\n  \u002F\u002F 2. Parse payload\n  try {\n    const payload = JSON.parse(rawBody);\n    result.payloadParsed = true;\n\n    \u002F\u002F 3. Process events\n    for (const event of payload.events || []) {\n      try {\n        console.log('Processing event:', event.metric, event.event_id);\n        result.eventsProcessed++;\n      } catch (error: any) {\n        result.errors.push({\n          event: event.event_id,\n          error: error.message\n        });\n      }\n    }\n  } catch (error: any) {\n    result.errors.push({\n      event: 'parse',\n      error: error.message\n    });\n  }\n\n  result.processingTime = Date.now() - start;\n  return result;\n}\n```\n\n### Step 5: Network Debugging\n```bash\n#!\u002Fbin\u002Fbash\n# scripts\u002Fdebug-network.sh\n\necho \"=== Customer.io Network Diagnostics ===\"\n\n# 1. DNS Resolution\necho -e \"\\n1. DNS Resolution:\"\ndig track.customer.io +short\n\n# 2. TCP Connectivity\necho -e \"\\n2. TCP Connectivity:\"\nnc -zv track.customer.io 443 2>&1\n\n# 3. TLS Handshake\necho -e \"\\n3. TLS Certificate:\"\necho | openssl s_client -connect track.customer.io:443 2>\u002Fdev\u002Fnull | openssl x509 -noout -dates\n\n# 4. API Response Time\necho -e \"\\n4. API Latency:\"\ncurl -o \u002Fdev\u002Fnull -s -w \"Connect: %{time_connect}s\\nTTFB: %{time_starttransfer}s\\nTotal: %{time_total}s\\n\" \\\n  -X POST \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002Ftest\" \\\n  -u \"$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"test@test.com\"}'\n\n# 5. Check for rate limiting\necho -e \"\\n5. Rate Limit Check:\"\nfor i in {1..5}; do\n  curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" \\\n    -X POST \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002Ftest-$i\" \\\n    -u \"$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY\" \\\n    -H \"Content-Type: application\u002Fjson\" \\\n    -d '{\"email\":\"test@test.com\"}'\ndone\n```\n\n### Step 6: Incident Response Runbook\n```markdown\n## Customer.io Incident Response Runbook\n\n### P1: Complete API Outage\n1. Check https:\u002F\u002Fstatus.customer.io\u002F\n2. Verify credentials haven't expired\n3. Test with curl directly\n4. Enable circuit breaker if available\n5. Queue events for retry\n6. Notify stakeholders\n\n### P2: High Error Rate (>5%)\n1. Check error distribution by type\n2. Identify affected operations\n3. Review recent code deployments\n4. Check for rate limiting\n5. Scale down if self-inflicted\n\n### P3: Delivery Issues\n1. Check bounce\u002Fcomplaint rates\n2. Review suppression list\n3. Verify sender reputation\n4. Check campaign configuration\n5. Review segment conditions\n\n### P4: Webhook Failures\n1. Verify webhook secret\n2. Check endpoint availability\n3. Review payload format\n4. Check for duplicate events\n5. Verify idempotency handling\n```\n\n## Diagnostic Commands\n\n```bash\n# Check API health\ncurl -s \"https:\u002F\u002Fstatus.customer.io\u002Fapi\u002Fv2\u002Fstatus.json\" | jq '.status'\n\n# Test authentication\ncurl -u \"$CIO_SITE_ID:$CIO_API_KEY\" \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Faccounts\"\n\n# Check user exists\ncurl -u \"$CIO_SITE_ID:$CIO_API_KEY\" \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002FUSER_ID\"\n```\n\n## Error Handling\n| Issue | Solution |\n|-------|----------|\n| User not receiving | Check suppression, segments |\n| Events not tracked | Verify user identified first |\n| High latency | Check network, enable pooling |\n\n## Resources\n- [Customer.io Status](https:\u002F\u002Fstatus.customer.io\u002F)\n- [Troubleshooting Guide](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Ftroubleshooting\u002F)\n\n## Next Steps\nAfter troubleshooting, proceed to `customerio-reliability-patterns` for resilience.\n","# Customer.io Advanced Troubleshooting\n\n## Overview\nAdvanced debugging techniques for diagnosing complex Customer.io integration issues.\n\n## Prerequisites\n- Access to Customer.io dashboard\n- Application logs access\n- Understanding of your integration architecture\n\n## Troubleshooting Framework\n\n### Phase 1: Symptom Identification\n```\n1. What is the expected behavior?\n2. What is the actual behavior?\n3. When did the issue start?\n4. How many users\u002Fmessages affected?\n5. Is it consistent or intermittent?\n```\n\n## Instructions\n\n### Step 1: API Debugging\n```typescript\n\u002F\u002F lib\u002Fdebug-client.ts\nimport { TrackClient, RegionUS } from '@customerio\u002Ftrack';\n\ninterface DebugResult {\n  success: boolean;\n  latency: number;\n  requestId?: string;\n  error?: {\n    code: string;\n    message: string;\n    details?: any;\n  };\n}\n\nexport class DebugCustomerIO {\n  private client: TrackClient;\n\n  constructor() {\n    this.client = new TrackClient(\n      process.env.CUSTOMERIO_SITE_ID!,\n      process.env.CUSTOMERIO_API_KEY!,\n      { region: RegionUS }\n    );\n  }\n\n  async debugIdentify(\n    userId: string,\n    attributes: Record\u003Cstring, any>\n  ): Promise\u003CDebugResult> {\n    const start = Date.now();\n\n    console.log('=== Customer.io Debug: Identify ===');\n    console.log('User ID:', userId);\n    console.log('Attributes:', JSON.stringify(attributes, null, 2));\n\n    try {\n      await this.client.identify(userId, attributes);\n\n      const result: DebugResult = {\n        success: true,\n        latency: Date.now() - start\n      };\n\n      console.log('Result: SUCCESS');\n      console.log('Latency:', result.latency, 'ms');\n\n      return result;\n    } catch (error: any) {\n      const result: DebugResult = {\n        success: false,\n        latency: Date.now() - start,\n        error: {\n          code: error.statusCode || 'UNKNOWN',\n          message: error.message,\n          details: error.response?.body\n        }\n      };\n\n      console.log('Result: FAILED');\n      console.log('Error:', JSON.stringify(result.error, null, 2));\n\n      return result;\n    }\n  }\n\n  async debugTrack(\n    userId: string,\n    event: string,\n    data?: Record\u003Cstring, any>\n  ): Promise\u003CDebugResult> {\n    const start = Date.now();\n\n    console.log('=== Customer.io Debug: Track ===');\n    console.log('User ID:', userId);\n    console.log('Event:', event);\n    console.log('Data:', JSON.stringify(data, null, 2));\n\n    try {\n      await this.client.track(userId, { name: event, data });\n\n      return {\n        success: true,\n        latency: Date.now() - start\n      };\n    } catch (error: any) {\n      return {\n        success: false,\n        latency: Date.now() - start,\n        error: {\n          code: error.statusCode || 'UNKNOWN',\n          message: error.message\n        }\n      };\n    }\n  }\n}\n```\n\n### Step 2: User Profile Investigation\n```typescript\n\u002F\u002F scripts\u002Finvestigate-user.ts\ninterface UserInvestigation {\n  userId: string;\n  profile: {\n    exists: boolean;\n    attributes: Record\u003Cstring, any>;\n    segments: string[];\n  };\n  activity: {\n    lastIdentify: Date;\n    lastEvent: Date;\n    eventCount24h: number;\n    recentEvents: string[];\n  };\n  delivery: {\n    emailsSent: number;\n    emailsDelivered: number;\n    emailsOpened: number;\n    bounces: number;\n    complaints: number;\n    suppressed: boolean;\n  };\n  issues: string[];\n}\n\nasync function investigateUser(userId: string): Promise\u003CUserInvestigation> {\n  const investigation: UserInvestigation = {\n    userId,\n    profile: { exists: false, attributes: {}, segments: [] },\n    activity: {\n      lastIdentify: new Date(0),\n      lastEvent: new Date(0),\n      eventCount24h: 0,\n      recentEvents: []\n    },\n    delivery: {\n      emailsSent: 0,\n      emailsDelivered: 0,\n      emailsOpened: 0,\n      bounces: 0,\n      complaints: 0,\n      suppressed: false\n    },\n    issues: []\n  };\n\n  \u002F\u002F 1. Check if user exists\n  try {\n    const profile = await fetchUserProfile(userId);\n    investigation.profile = {\n      exists: true,\n      attributes: profile.attributes,\n      segments: profile.segments\n    };\n  } catch (error) {\n    investigation.issues.push('User profile not found in Customer.io');\n    return investigation;\n  }\n\n  \u002F\u002F 2. Check for missing required attributes\n  if (!investigation.profile.attributes.email) {\n    investigation.issues.push('User missing email attribute - cannot receive emails');\n  }\n\n  \u002F\u002F 3. Check suppression status\n  if (investigation.delivery.suppressed) {\n    investigation.issues.push('User is suppressed - no messages will be sent');\n  }\n\n  \u002F\u002F 4. Check bounce\u002Fcomplaint history\n  if (investigation.delivery.bounces > 0) {\n    investigation.issues.push(`User has ${investigation.delivery.bounces} bounces`);\n  }\n\n  if (investigation.delivery.complaints > 0) {\n    investigation.issues.push(`User has ${investigation.delivery.complaints} spam complaints - HIGH PRIORITY`);\n  }\n\n  \u002F\u002F 5. Check recent activity\n  const oneDayAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);\n  if (investigation.activity.lastIdentify \u003C oneDayAgo) {\n    investigation.issues.push('User profile not updated in 24+ hours');\n  }\n\n  return investigation;\n}\n```\n\n### Step 3: Campaign Debugging\n```typescript\n\u002F\u002F scripts\u002Fdebug-campaign.ts\ninterface CampaignDebug {\n  campaignId: number;\n  status: 'active' | 'paused' | 'draft';\n  trigger: {\n    type: string;\n    conditions: any;\n  };\n  audience: {\n    segmentId?: number;\n    estimatedSize: number;\n  };\n  recentSends: Array\u003C{\n    userId: string;\n    timestamp: Date;\n    status: string;\n  }>;\n  issues: string[];\n}\n\nasync function debugCampaign(campaignId: number): Promise\u003CCampaignDebug> {\n  const debug: CampaignDebug = {\n    campaignId,\n    status: 'draft',\n    trigger: { type: '', conditions: {} },\n    audience: { estimatedSize: 0 },\n    recentSends: [],\n    issues: []\n  };\n\n  \u002F\u002F Fetch campaign details from API\n  \u002F\u002F Analyze trigger conditions\n  \u002F\u002F Check audience size\n  \u002F\u002F Review recent send activity\n\n  \u002F\u002F Common issues to check\n  if (debug.status !== 'active') {\n    debug.issues.push('Campaign is not active');\n  }\n\n  if (debug.audience.estimatedSize === 0) {\n    debug.issues.push('No users match campaign audience');\n  }\n\n  return debug;\n}\n```\n\n### Step 4: Webhook Debugging\n```typescript\n\u002F\u002F lib\u002Fwebhook-debugger.ts\nimport crypto from 'crypto';\n\ninterface WebhookDebugResult {\n  signatureValid: boolean;\n  payloadParsed: boolean;\n  eventsProcessed: number;\n  errors: Array\u003C{\n    event: string;\n    error: string;\n  }>;\n  processingTime: number;\n}\n\nexport function debugWebhook(\n  rawBody: string,\n  signature: string,\n  secret: string\n): WebhookDebugResult {\n  const start = Date.now();\n  const result: WebhookDebugResult = {\n    signatureValid: false,\n    payloadParsed: false,\n    eventsProcessed: 0,\n    errors: [],\n    processingTime: 0\n  };\n\n  \u002F\u002F 1. Verify signature\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(rawBody)\n    .digest('hex');\n\n  result.signatureValid = crypto.timingSafeEqual(\n    Buffer.from(signature || ''),\n    Buffer.from(expectedSignature)\n  );\n\n  if (!result.signatureValid) {\n    console.log('Expected signature:', expectedSignature);\n    console.log('Received signature:', signature);\n    result.processingTime = Date.now() - start;\n    return result;\n  }\n\n  \u002F\u002F 2. Parse payload\n  try {\n    const payload = JSON.parse(rawBody);\n    result.payloadParsed = true;\n\n    \u002F\u002F 3. Process events\n    for (const event of payload.events || []) {\n      try {\n        console.log('Processing event:', event.metric, event.event_id);\n        result.eventsProcessed++;\n      } catch (error: any) {\n        result.errors.push({\n          event: event.event_id,\n          error: error.message\n        });\n      }\n    }\n  } catch (error: any) {\n    result.errors.push({\n      event: 'parse',\n      error: error.message\n    });\n  }\n\n  result.processingTime = Date.now() - start;\n  return result;\n}\n```\n\n### Step 5: Network Debugging\n```bash\n#!\u002Fbin\u002Fbash\n# scripts\u002Fdebug-network.sh\n\necho \"=== Customer.io Network Diagnostics ===\"\n\n# 1. DNS Resolution\necho -e \"\\n1. DNS Resolution:\"\ndig track.customer.io +short\n\n# 2. TCP Connectivity\necho -e \"\\n2. TCP Connectivity:\"\nnc -zv track.customer.io 443 2>&1\n\n# 3. TLS Handshake\necho -e \"\\n3. TLS Certificate:\"\necho | openssl s_client -connect track.customer.io:443 2>\u002Fdev\u002Fnull | openssl x509 -noout -dates\n\n# 4. API Response Time\necho -e \"\\n4. API Latency:\"\ncurl -o \u002Fdev\u002Fnull -s -w \"Connect: %{time_connect}s\\nTTFB: %{time_starttransfer}s\\nTotal: %{time_total}s\\n\" \\\n  -X POST \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002Ftest\" \\\n  -u \"$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"test@test.com\"}'\n\n# 5. Check for rate limiting\necho -e \"\\n5. Rate Limit Check:\"\nfor i in {1..5}; do\n  curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\\n\" \\\n    -X POST \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002Ftest-$i\" \\\n    -u \"$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY\" \\\n    -H \"Content-Type: application\u002Fjson\" \\\n    -d '{\"email\":\"test@test.com\"}'\ndone\n```\n\n### Step 6: Incident Response Runbook\n```markdown\n## Customer.io Incident Response Runbook\n\n### P1: Complete API Outage\n1. Check https:\u002F\u002Fstatus.customer.io\u002F\n2. Verify credentials haven't expired\n3. Test with curl directly\n4. Enable circuit breaker if available\n5. Queue events for retry\n6. Notify stakeholders\n\n### P2: High Error Rate (>5%)\n1. Check error distribution by type\n2. Identify affected operations\n3. Review recent code deployments\n4. Check for rate limiting\n5. Scale down if self-inflicted\n\n### P3: Delivery Issues\n1. Check bounce\u002Fcomplaint rates\n2. Review suppression list\n3. Verify sender reputation\n4. Check campaign configuration\n5. Review segment conditions\n\n### P4: Webhook Failures\n1. Verify webhook secret\n2. Check endpoint availability\n3. Review payload format\n4. Check for duplicate events\n5. Verify idempotency handling\n```\n\n## Diagnostic Commands\n\n```bash\n# Check API health\ncurl -s \"https:\u002F\u002Fstatus.customer.io\u002Fapi\u002Fv2\u002Fstatus.json\" | jq '.status'\n\n# Test authentication\ncurl -u \"$CIO_SITE_ID:$CIO_API_KEY\" \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Faccounts\"\n\n# Check user exists\ncurl -u \"$CIO_SITE_ID:$CIO_API_KEY\" \"https:\u002F\u002Ftrack.customer.io\u002Fapi\u002Fv1\u002Fcustomers\u002FUSER_ID\"\n```\n\n## Error Handling\n| Issue | Solution |\n|-------|----------|\n| User not receiving | Check suppression, segments |\n| Events not tracked | Verify user identified first |\n| High latency | Check network, enable pooling |\n\n## Resources\n- [Customer.io Status](https:\u002F\u002Fstatus.customer.io\u002F)\n- [Troubleshooting Guide](https:\u002F\u002Fcustomer.io\u002Fdocs\u002Ftroubleshooting\u002F)\n\n## Next Steps\nAfter troubleshooting, proceed to `customerio-reliability-patterns` for resilience.\n",{"name":5,"author":52,"license":15,"version":53,"description":54,"allowed-tools":55},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Apply Customer.io advanced debugging techniques.\nUse when diagnosing complex issues, investigating\ndelivery problems, or debugging integration failures.\nTrigger with phrases like \"debug customer.io\", \"customer.io investigation\",\n\"customer.io troubleshoot\", \"customer.io incident\".\n","Read, Write, Edit, Bash(kubectl:*), Bash(curl:*)","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fcustomerio-pack\u002Fskills\u002Fcustomerio-advanced-troubleshooting",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":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-advanced-troubleshooting",{"tool":71,"command":72},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-advanced-troubleshooting",{"tool":74,"command":75},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill customerio-advanced-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fcustomerio-pack\u002Fskills\u002Fcustomerio-advanced-troubleshooting\u002FSKILL.md",true,[],[80,113,148,170,196,223],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":93,"publishedAt":112},"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",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,30,110,111],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":123,"publishedAt":47},"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",[120],{"categoryNo":121,"categoryName":122,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000009","前端开发",[124,125,100,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,35,105,141,142,143,144,145,146,147],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":152,"sourceHtmlUrl":153,"categories":154,"keywords":159,"publishedAt":47},"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",[155,158],{"categoryNo":156,"categoryName":157,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":121,"categoryName":122,"taxonomyType":91,"taxonomyTypeDesc":92},[160,161,162,128,163,164,125,44,98,165,138,166,167,168,169,30,145],"testing","webapp testing","webapp","screenshots","playwright","browser","logs","applications","behavior","local",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":174,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":47},"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",[],[178,179,180,181,182,183,184,185,35,186,187,188,189,190,191,192,30,193,194,195,145,28],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":200,"sourceHtmlUrl":201,"categories":202,"keywords":206,"publishedAt":47},"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",[203],{"categoryNo":204,"categoryName":205,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000023","Skill与智能体开发",[207,208,209,210,211,212,213,214,215,216,217,218,219,220,30,145,221,28,222],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":227,"sourceHtmlUrl":228,"categories":229,"keywords":231,"publishedAt":47},"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",[230],{"categoryNo":204,"categoryName":205,"taxonomyType":91,"taxonomyTypeDesc":92},[225,232,233,234,235,236,237,165,238,239,35,240,241,242,243,145,244],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]