[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F8E36552NAAXC26BPDBN81":3,"skill-same:01M6F8E36552NAAXC26BPDBN81":74},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6F8E36552NAAXC26BPDBN81","clay-reliability-patterns",null,"Build fault-tolerant Clay integrations with circuit breakers, dead letter queues, and graceful degradation.\nUse when building production Clay pipelines that need resilience,\nimplementing retry strategies, or adding fault tolerance to enrichment workflows.\nTrigger with phrases like \"clay reliability\", \"clay circuit breaker\", \"clay resilience\",\n\"clay fallback\", \"clay fault tolerance\", \"clay dead letter queue\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-reliability-patterns\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"clay","clay reliability patterns","reliability","patterns","fallback","clay-reliability","retry","io","Circuit Breaker","fault tolerance","strategies","openclaw","edit","write","read","integrations","Bash","code","resilience","workflows","2026-11-10 10:12:30",false,"---\nname: clay-reliability-patterns\ndescription: |\n  Build fault-tolerant Clay integrations with circuit breakers, dead letter queues, and graceful degradation.\n  Use when building production Clay pipelines that need resilience,\n  implementing retry strategies, or adding fault tolerance to enrichment workflows.\n  Trigger with phrases like \"clay reliability\", \"clay circuit breaker\", \"clay resilience\",\n  \"clay fallback\", \"clay fault tolerance\", \"clay dead letter queue\".\nallowed-tools: Read, Write, Edit, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, clay, clay-reliability]\n\n---\n# Clay Reliability Patterns\n\n## Overview\n\nProduction reliability patterns for Clay data enrichment pipelines. Clay's async enrichment model, credit-based billing, and dependency on 150+ external data providers require specific resilience strategies: credit budget circuit breakers, webhook delivery tracking, dead letter queues for failed batches, and graceful degradation when Clay is unavailable.\n\n## Prerequisites\n\n- Clay integration in production or pre-production\n- Redis or similar for state tracking\n- Understanding of Clay's async enrichment model\n- Monitoring infrastructure (see `clay-observability`)\n\n## Instructions\n\n### Step 1: Credit Budget Circuit Breaker\n\nStop processing when credit burn exceeds budget to prevent runaway costs:\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fcircuit-breaker.ts\nclass CreditCircuitBreaker {\n  private state: 'closed' | 'open' | 'half-open' = 'closed';\n  private dailyCreditsUsed = 0;\n  private failureCount = 0;\n  private lastFailureAt: Date | null = null;\n  private readonly cooldownMs: number;\n\n  constructor(\n    private dailyLimit: number,\n    private failureThreshold: number = 5,\n    cooldownMinutes: number = 15,\n  ) {\n    this.cooldownMs = cooldownMinutes * 60 * 1000;\n  }\n\n  canProcess(estimatedCredits: number): { allowed: boolean; reason?: string } {\n    \u002F\u002F Check circuit state\n    if (this.state === 'open') {\n      \u002F\u002F Check if cooldown has elapsed\n      if (this.lastFailureAt && Date.now() - this.lastFailureAt.getTime() > this.cooldownMs) {\n        this.state = 'half-open';\n        console.log('Circuit breaker: half-open (testing)');\n      } else {\n        return { allowed: false, reason: `Circuit OPEN. Cooldown until ${new Date(this.lastFailureAt!.getTime() + this.cooldownMs).toISOString()}` };\n      }\n    }\n\n    \u002F\u002F Check budget\n    if (this.dailyCreditsUsed + estimatedCredits > this.dailyLimit) {\n      return { allowed: false, reason: `Daily credit limit reached: ${this.dailyCreditsUsed}\u002F${this.dailyLimit}` };\n    }\n\n    return { allowed: true };\n  }\n\n  recordSuccess(creditsUsed: number) {\n    this.dailyCreditsUsed += creditsUsed;\n    if (this.state === 'half-open') {\n      this.state = 'closed';\n      this.failureCount = 0;\n      console.log('Circuit breaker: closed (recovered)');\n    }\n  }\n\n  recordFailure() {\n    this.failureCount++;\n    this.lastFailureAt = new Date();\n    if (this.failureCount >= this.failureThreshold) {\n      this.state = 'open';\n      console.error(`Circuit breaker: OPEN after ${this.failureCount} failures`);\n    }\n  }\n\n  resetDaily() {\n    this.dailyCreditsUsed = 0;\n  }\n}\n```\n\n### Step 2: Dead Letter Queue for Failed Submissions\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fdead-letter-queue.ts\ninterface DLQEntry {\n  row: Record\u003Cstring, unknown>;\n  error: string;\n  webhookUrl: string;\n  failedAt: string;\n  retryCount: number;\n  maxRetries: number;\n}\n\nclass ClayDLQ {\n  private entries: DLQEntry[] = [];\n\n  addToQueue(row: Record\u003Cstring, unknown>, error: string, webhookUrl: string): void {\n    this.entries.push({\n      row,\n      error,\n      webhookUrl,\n      failedAt: new Date().toISOString(),\n      retryCount: 0,\n      maxRetries: 3,\n    });\n    console.warn(`DLQ: Added row (${this.entries.length} total). Error: ${error}`);\n  }\n\n  async retryAll(): Promise\u003C{ retried: number; succeeded: number; permanentFailures: number }> {\n    let succeeded = 0, permanentFailures = 0;\n    const remaining: DLQEntry[] = [];\n\n    for (const entry of this.entries) {\n      if (entry.retryCount >= entry.maxRetries) {\n        permanentFailures++;\n        continue;\n      }\n\n      try {\n        const res = await fetch(entry.webhookUrl, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(entry.row),\n        });\n\n        if (res.ok) {\n          succeeded++;\n        } else {\n          entry.retryCount++;\n          remaining.push(entry);\n        }\n      } catch {\n        entry.retryCount++;\n        remaining.push(entry);\n      }\n\n      await new Promise(r => setTimeout(r, 500)); \u002F\u002F Pace retries\n    }\n\n    this.entries = remaining;\n    return { retried: this.entries.length + succeeded + permanentFailures, succeeded, permanentFailures };\n  }\n\n  getStats() {\n    return {\n      pending: this.entries.length,\n      byError: this.entries.reduce((acc, e) => {\n        acc[e.error] = (acc[e.error] || 0) + 1;\n        return acc;\n      }, {} as Record\u003Cstring, number>),\n    };\n  }\n}\n```\n\n### Step 3: Webhook Health Monitor\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fhealth-monitor.ts\nclass WebhookHealthMonitor {\n  private successCount = 0;\n  private failureCount = 0;\n  private lastCheck: Date = new Date();\n  private readonly windowMs = 5 * 60 * 1000; \u002F\u002F 5-minute window\n\n  record(success: boolean) {\n    if (success) this.successCount++;\n    else this.failureCount++;\n  }\n\n  getHealthScore(): { score: number; status: 'healthy' | 'degraded' | 'unhealthy' } {\n    const total = this.successCount + this.failureCount;\n    if (total === 0) return { score: 100, status: 'healthy' };\n\n    const score = (this.successCount \u002F total) * 100;\n\n    \u002F\u002F Reset window periodically\n    if (Date.now() - this.lastCheck.getTime() > this.windowMs) {\n      this.successCount = 0;\n      this.failureCount = 0;\n      this.lastCheck = new Date();\n    }\n\n    return {\n      score,\n      status: score > 95 ? 'healthy' : score > 80 ? 'degraded' : 'unhealthy',\n    };\n  }\n}\n```\n\n### Step 4: Graceful Degradation When Clay Is Down\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Ffallback.ts\ninterface FallbackConfig {\n  cacheEnrichedData: boolean;     \u002F\u002F Cache previously enriched domains\n  queueForLater: boolean;         \u002F\u002F Queue submissions for when Clay recovers\n  useLocalFallback: boolean;      \u002F\u002F Fall back to local enrichment (limited)\n}\n\nclass ClayWithFallback {\n  private cache = new Map\u003Cstring, Record\u003Cstring, unknown>>();\n  private offlineQueue: Record\u003Cstring, unknown>[] = [];\n\n  async enrichOrFallback(\n    lead: Record\u003Cstring, unknown>,\n    webhookUrl: string,\n    config: FallbackConfig,\n  ): Promise\u003C{ data: Record\u003Cstring, unknown>; source: 'clay' | 'cache' | 'queued' | 'local' }> {\n    \u002F\u002F Try Clay first\n    try {\n      const res = await fetch(webhookUrl, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(lead),\n        signal: AbortSignal.timeout(10_000),\n      });\n\n      if (res.ok) {\n        return { data: lead, source: 'clay' };\n      }\n    } catch {\n      console.warn('Clay webhook unavailable — using fallback');\n    }\n\n    \u002F\u002F Fallback 1: Check cache for this domain\n    const domain = lead.domain as string;\n    if (config.cacheEnrichedData && this.cache.has(domain)) {\n      return { data: { ...lead, ...this.cache.get(domain) }, source: 'cache' };\n    }\n\n    \u002F\u002F Fallback 2: Queue for later processing\n    if (config.queueForLater) {\n      this.offlineQueue.push(lead);\n      return { data: lead, source: 'queued' };\n    }\n\n    \u002F\u002F Fallback 3: Minimal local enrichment (domain -> company guess)\n    if (config.useLocalFallback) {\n      return {\n        data: { ...lead, company_name: domain.replace(\u002F\\.\\w+$\u002F, '').replace(\u002F-\u002Fg, ' ') },\n        source: 'local',\n      };\n    }\n\n    return { data: lead, source: 'local' };\n  }\n\n  async drainOfflineQueue(webhookUrl: string): Promise\u003Cnumber> {\n    let drained = 0;\n    while (this.offlineQueue.length > 0) {\n      const lead = this.offlineQueue.shift()!;\n      try {\n        await fetch(webhookUrl, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(lead),\n        });\n        drained++;\n        await new Promise(r => setTimeout(r, 200));\n      } catch {\n        this.offlineQueue.unshift(lead); \u002F\u002F Put back\n        break;\n      }\n    }\n    return drained;\n  }\n}\n```\n\n### Step 5: Combine All Patterns\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Freliable-pipeline.ts\nconst circuitBreaker = new CreditCircuitBreaker(500); \u002F\u002F 500 credits\u002Fday\nconst dlq = new ClayDLQ();\nconst healthMonitor = new WebhookHealthMonitor();\n\nasync function reliableEnrich(lead: Record\u003Cstring, unknown>, webhookUrl: string): Promise\u003Cvoid> {\n  \u002F\u002F Check circuit breaker\n  const { allowed, reason } = circuitBreaker.canProcess(6); \u002F\u002F ~6 credits\u002Flead\n  if (!allowed) {\n    dlq.addToQueue(lead, `Circuit breaker: ${reason}`, webhookUrl);\n    return;\n  }\n\n  try {\n    const res = await fetch(webhookUrl, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\u002Fjson' },\n      body: JSON.stringify(lead),\n    });\n\n    if (res.ok) {\n      circuitBreaker.recordSuccess(6);\n      healthMonitor.record(true);\n    } else {\n      throw new Error(`HTTP ${res.status}`);\n    }\n  } catch (err) {\n    circuitBreaker.recordFailure();\n    healthMonitor.record(false);\n    dlq.addToQueue(lead, (err as Error).message, webhookUrl);\n  }\n}\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Runaway credit spend | No budget circuit breaker | Implement credit budget limiter |\n| Lost leads during outage | No DLQ | Queue failed submissions for retry |\n| Silent webhook failures | No health monitoring | Track success\u002Ffailure rates |\n| Clay outage blocks pipeline | No fallback | Implement cache + queue fallback |\n\n## Resources\n\n- [Clay Community](https:\u002F\u002Fcommunity.clay.com)\n- [BullMQ Dead Letter Queue](https:\u002F\u002Fdocs.bullmq.io\u002Fguide\u002Fdead-letter-queue)\n- [Circuit Breaker Pattern](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FCircuitBreaker.html)\n\n## Next Steps\n\nFor policy guardrails, see `clay-policy-guardrails`.\n\n","# Clay Reliability Patterns\n\n## Overview\n\nProduction reliability patterns for Clay data enrichment pipelines. Clay's async enrichment model, credit-based billing, and dependency on 150+ external data providers require specific resilience strategies: credit budget circuit breakers, webhook delivery tracking, dead letter queues for failed batches, and graceful degradation when Clay is unavailable.\n\n## Prerequisites\n\n- Clay integration in production or pre-production\n- Redis or similar for state tracking\n- Understanding of Clay's async enrichment model\n- Monitoring infrastructure (see `clay-observability`)\n\n## Instructions\n\n### Step 1: Credit Budget Circuit Breaker\n\nStop processing when credit burn exceeds budget to prevent runaway costs:\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fcircuit-breaker.ts\nclass CreditCircuitBreaker {\n  private state: 'closed' | 'open' | 'half-open' = 'closed';\n  private dailyCreditsUsed = 0;\n  private failureCount = 0;\n  private lastFailureAt: Date | null = null;\n  private readonly cooldownMs: number;\n\n  constructor(\n    private dailyLimit: number,\n    private failureThreshold: number = 5,\n    cooldownMinutes: number = 15,\n  ) {\n    this.cooldownMs = cooldownMinutes * 60 * 1000;\n  }\n\n  canProcess(estimatedCredits: number): { allowed: boolean; reason?: string } {\n    \u002F\u002F Check circuit state\n    if (this.state === 'open') {\n      \u002F\u002F Check if cooldown has elapsed\n      if (this.lastFailureAt && Date.now() - this.lastFailureAt.getTime() > this.cooldownMs) {\n        this.state = 'half-open';\n        console.log('Circuit breaker: half-open (testing)');\n      } else {\n        return { allowed: false, reason: `Circuit OPEN. Cooldown until ${new Date(this.lastFailureAt!.getTime() + this.cooldownMs).toISOString()}` };\n      }\n    }\n\n    \u002F\u002F Check budget\n    if (this.dailyCreditsUsed + estimatedCredits > this.dailyLimit) {\n      return { allowed: false, reason: `Daily credit limit reached: ${this.dailyCreditsUsed}\u002F${this.dailyLimit}` };\n    }\n\n    return { allowed: true };\n  }\n\n  recordSuccess(creditsUsed: number) {\n    this.dailyCreditsUsed += creditsUsed;\n    if (this.state === 'half-open') {\n      this.state = 'closed';\n      this.failureCount = 0;\n      console.log('Circuit breaker: closed (recovered)');\n    }\n  }\n\n  recordFailure() {\n    this.failureCount++;\n    this.lastFailureAt = new Date();\n    if (this.failureCount >= this.failureThreshold) {\n      this.state = 'open';\n      console.error(`Circuit breaker: OPEN after ${this.failureCount} failures`);\n    }\n  }\n\n  resetDaily() {\n    this.dailyCreditsUsed = 0;\n  }\n}\n```\n\n### Step 2: Dead Letter Queue for Failed Submissions\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fdead-letter-queue.ts\ninterface DLQEntry {\n  row: Record\u003Cstring, unknown>;\n  error: string;\n  webhookUrl: string;\n  failedAt: string;\n  retryCount: number;\n  maxRetries: number;\n}\n\nclass ClayDLQ {\n  private entries: DLQEntry[] = [];\n\n  addToQueue(row: Record\u003Cstring, unknown>, error: string, webhookUrl: string): void {\n    this.entries.push({\n      row,\n      error,\n      webhookUrl,\n      failedAt: new Date().toISOString(),\n      retryCount: 0,\n      maxRetries: 3,\n    });\n    console.warn(`DLQ: Added row (${this.entries.length} total). Error: ${error}`);\n  }\n\n  async retryAll(): Promise\u003C{ retried: number; succeeded: number; permanentFailures: number }> {\n    let succeeded = 0, permanentFailures = 0;\n    const remaining: DLQEntry[] = [];\n\n    for (const entry of this.entries) {\n      if (entry.retryCount >= entry.maxRetries) {\n        permanentFailures++;\n        continue;\n      }\n\n      try {\n        const res = await fetch(entry.webhookUrl, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(entry.row),\n        });\n\n        if (res.ok) {\n          succeeded++;\n        } else {\n          entry.retryCount++;\n          remaining.push(entry);\n        }\n      } catch {\n        entry.retryCount++;\n        remaining.push(entry);\n      }\n\n      await new Promise(r => setTimeout(r, 500)); \u002F\u002F Pace retries\n    }\n\n    this.entries = remaining;\n    return { retried: this.entries.length + succeeded + permanentFailures, succeeded, permanentFailures };\n  }\n\n  getStats() {\n    return {\n      pending: this.entries.length,\n      byError: this.entries.reduce((acc, e) => {\n        acc[e.error] = (acc[e.error] || 0) + 1;\n        return acc;\n      }, {} as Record\u003Cstring, number>),\n    };\n  }\n}\n```\n\n### Step 3: Webhook Health Monitor\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fhealth-monitor.ts\nclass WebhookHealthMonitor {\n  private successCount = 0;\n  private failureCount = 0;\n  private lastCheck: Date = new Date();\n  private readonly windowMs = 5 * 60 * 1000; \u002F\u002F 5-minute window\n\n  record(success: boolean) {\n    if (success) this.successCount++;\n    else this.failureCount++;\n  }\n\n  getHealthScore(): { score: number; status: 'healthy' | 'degraded' | 'unhealthy' } {\n    const total = this.successCount + this.failureCount;\n    if (total === 0) return { score: 100, status: 'healthy' };\n\n    const score = (this.successCount \u002F total) * 100;\n\n    \u002F\u002F Reset window periodically\n    if (Date.now() - this.lastCheck.getTime() > this.windowMs) {\n      this.successCount = 0;\n      this.failureCount = 0;\n      this.lastCheck = new Date();\n    }\n\n    return {\n      score,\n      status: score > 95 ? 'healthy' : score > 80 ? 'degraded' : 'unhealthy',\n    };\n  }\n}\n```\n\n### Step 4: Graceful Degradation When Clay Is Down\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Ffallback.ts\ninterface FallbackConfig {\n  cacheEnrichedData: boolean;     \u002F\u002F Cache previously enriched domains\n  queueForLater: boolean;         \u002F\u002F Queue submissions for when Clay recovers\n  useLocalFallback: boolean;      \u002F\u002F Fall back to local enrichment (limited)\n}\n\nclass ClayWithFallback {\n  private cache = new Map\u003Cstring, Record\u003Cstring, unknown>>();\n  private offlineQueue: Record\u003Cstring, unknown>[] = [];\n\n  async enrichOrFallback(\n    lead: Record\u003Cstring, unknown>,\n    webhookUrl: string,\n    config: FallbackConfig,\n  ): Promise\u003C{ data: Record\u003Cstring, unknown>; source: 'clay' | 'cache' | 'queued' | 'local' }> {\n    \u002F\u002F Try Clay first\n    try {\n      const res = await fetch(webhookUrl, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(lead),\n        signal: AbortSignal.timeout(10_000),\n      });\n\n      if (res.ok) {\n        return { data: lead, source: 'clay' };\n      }\n    } catch {\n      console.warn('Clay webhook unavailable — using fallback');\n    }\n\n    \u002F\u002F Fallback 1: Check cache for this domain\n    const domain = lead.domain as string;\n    if (config.cacheEnrichedData && this.cache.has(domain)) {\n      return { data: { ...lead, ...this.cache.get(domain) }, source: 'cache' };\n    }\n\n    \u002F\u002F Fallback 2: Queue for later processing\n    if (config.queueForLater) {\n      this.offlineQueue.push(lead);\n      return { data: lead, source: 'queued' };\n    }\n\n    \u002F\u002F Fallback 3: Minimal local enrichment (domain -> company guess)\n    if (config.useLocalFallback) {\n      return {\n        data: { ...lead, company_name: domain.replace(\u002F\\.\\w+$\u002F, '').replace(\u002F-\u002Fg, ' ') },\n        source: 'local',\n      };\n    }\n\n    return { data: lead, source: 'local' };\n  }\n\n  async drainOfflineQueue(webhookUrl: string): Promise\u003Cnumber> {\n    let drained = 0;\n    while (this.offlineQueue.length > 0) {\n      const lead = this.offlineQueue.shift()!;\n      try {\n        await fetch(webhookUrl, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(lead),\n        });\n        drained++;\n        await new Promise(r => setTimeout(r, 200));\n      } catch {\n        this.offlineQueue.unshift(lead); \u002F\u002F Put back\n        break;\n      }\n    }\n    return drained;\n  }\n}\n```\n\n### Step 5: Combine All Patterns\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Freliable-pipeline.ts\nconst circuitBreaker = new CreditCircuitBreaker(500); \u002F\u002F 500 credits\u002Fday\nconst dlq = new ClayDLQ();\nconst healthMonitor = new WebhookHealthMonitor();\n\nasync function reliableEnrich(lead: Record\u003Cstring, unknown>, webhookUrl: string): Promise\u003Cvoid> {\n  \u002F\u002F Check circuit breaker\n  const { allowed, reason } = circuitBreaker.canProcess(6); \u002F\u002F ~6 credits\u002Flead\n  if (!allowed) {\n    dlq.addToQueue(lead, `Circuit breaker: ${reason}`, webhookUrl);\n    return;\n  }\n\n  try {\n    const res = await fetch(webhookUrl, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\u002Fjson' },\n      body: JSON.stringify(lead),\n    });\n\n    if (res.ok) {\n      circuitBreaker.recordSuccess(6);\n      healthMonitor.record(true);\n    } else {\n      throw new Error(`HTTP ${res.status}`);\n    }\n  } catch (err) {\n    circuitBreaker.recordFailure();\n    healthMonitor.record(false);\n    dlq.addToQueue(lead, (err as Error).message, webhookUrl);\n  }\n}\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Runaway credit spend | No budget circuit breaker | Implement credit budget limiter |\n| Lost leads during outage | No DLQ | Queue failed submissions for retry |\n| Silent webhook failures | No health monitoring | Track success\u002Ffailure rates |\n| Clay outage blocks pipeline | No fallback | Implement cache + queue fallback |\n\n## Resources\n\n- [Clay Community](https:\u002F\u002Fcommunity.clay.com)\n- [BullMQ Dead Letter Queue](https:\u002F\u002Fdocs.bullmq.io\u002Fguide\u002Fdead-letter-queue)\n- [Circuit Breaker Pattern](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FCircuitBreaker.html)\n\n## Next Steps\n\nFor policy guardrails, see `clay-policy-guardrails`.\n\n",{"name":5,"tags":44,"author":46,"license":15,"version":47,"description":48,"allowed-tools":49,"compatible-with":50},[45,19,24],"saas","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Build fault-tolerant Clay integrations with circuit breakers, dead letter queues, and graceful degradation.\nUse when building production Clay pipelines that need resilience,\nimplementing retry strategies, or adding fault tolerance to enrichment workflows.\nTrigger with phrases like \"clay reliability\", \"clay circuit breaker\", \"clay resilience\",\n\"clay fallback\", \"clay fault tolerance\", \"clay dead letter queue\".\n","Read, Write, Edit, Bash(curl:*)","claude-code, codex, openclaw","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-reliability-patterns",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill clay-reliability-patterns",{"tool":66,"command":67},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill clay-reliability-patterns",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill clay-reliability-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-reliability-patterns\u002FSKILL.md",true,[],[75,84,93,102,108,114],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[81,82,83],"model","model hierarchy","model hierarchy skill",{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[90,91,92],"MCP","zoom","zoom mcp",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[99,100,101,91],"sdk","zoom apps sdk","apps",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[104],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[110],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[116]]