[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6AXBNN5DNT05W46DV04J7":3,"skill-same:01M6F6AXBNN5DNT05W46DV04J7":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6F6AXBNN5DNT05W46DV04J7","deepgram-rate-limits",null,"Implement Deepgram rate limiting and backoff strategies.\nUse when handling API quotas, implementing request throttling,\nor dealing with rate limit errors.\nTrigger with phrases like \"deepgram rate limit\", \"deepgram throttling\",\n\"429 error deepgram\", \"deepgram quota\", \"deepgram backoff\".","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\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-rate-limits\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"limits","rate","deepgram rate limits","deepgram","error","when","request","rate limit","implementing","limit","errors","429","backoff","with","implement","trigger","io","rate limiting","strategies","quota","use","read","curl","grep","Bash","api","throttling","2026-11-10 10:12:30",false,"---\nname: deepgram-rate-limits\ndescription: |\n  Implement Deepgram rate limiting and backoff strategies.\n  Use when handling API quotas, implementing request throttling,\n  or dealing with rate limit errors.\n  Trigger with phrases like \"deepgram rate limit\", \"deepgram throttling\",\n  \"429 error deepgram\", \"deepgram quota\", \"deepgram backoff\".\nallowed-tools: Read, Grep, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Deepgram Rate Limits\n\n## Overview\nImplement proper rate limiting and backoff strategies for Deepgram API integration.\n\n## Deepgram Rate Limits\n\n| Plan | Concurrent Requests | Requests\u002FMinute | Audio Hours\u002FMonth |\n|------|---------------------|-----------------|-------------------|\n| Pay As You Go | 100 | 1000 | Unlimited |\n| Growth | 200 | 2000 | Included hours |\n| Enterprise | Custom | Custom | Custom |\n\n## Instructions\n\n### Step 1: Implement Request Queue\nCreate a queue to manage concurrent request limits.\n\n### Step 2: Add Exponential Backoff\nHandle rate limit responses with intelligent retry.\n\n### Step 3: Monitor Usage\nTrack request counts and audio duration.\n\n### Step 4: Implement Circuit Breaker\nPrevent cascade failures during rate limiting.\n\n## Output\n- Rate-limited request queue\n- Exponential backoff handler\n- Usage monitoring dashboard\n- Circuit breaker implementation\n\n## Examples\n\n### TypeScript Rate Limiter\n```typescript\n\u002F\u002F lib\u002Frate-limiter.ts\ninterface RateLimiterConfig {\n  maxConcurrent: number;\n  maxPerMinute: number;\n  retryAttempts: number;\n  baseDelay: number;\n}\n\nexport class DeepgramRateLimiter {\n  private queue: Array\u003C{\n    fn: () => Promise\u003Cunknown>;\n    resolve: (value: unknown) => void;\n    reject: (error: Error) => void;\n  }> = [];\n  private activeRequests = 0;\n  private requestsThisMinute = 0;\n  private minuteStart = Date.now();\n  private config: RateLimiterConfig;\n\n  constructor(config: Partial\u003CRateLimiterConfig> = {}) {\n    this.config = {\n      maxConcurrent: config.maxConcurrent ?? 50,\n      maxPerMinute: config.maxPerMinute ?? 500,\n      retryAttempts: config.retryAttempts ?? 3,\n      baseDelay: config.baseDelay ?? 1000,\n    };\n  }\n\n  async execute\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n    return new Promise((resolve, reject) => {\n      this.queue.push({\n        fn,\n        resolve: resolve as (value: unknown) => void,\n        reject,\n      });\n      this.processQueue();\n    });\n  }\n\n  private async processQueue() {\n    \u002F\u002F Reset minute counter if needed\n    const now = Date.now();\n    if (now - this.minuteStart >= 60000) {\n      this.requestsThisMinute = 0;\n      this.minuteStart = now;\n    }\n\n    \u002F\u002F Check limits\n    if (this.activeRequests >= this.config.maxConcurrent) return;\n    if (this.requestsThisMinute >= this.config.maxPerMinute) return;\n    if (this.queue.length === 0) return;\n\n    const { fn, resolve, reject } = this.queue.shift()!;\n    this.activeRequests++;\n    this.requestsThisMinute++;\n\n    try {\n      const result = await this.executeWithRetry(fn);\n      resolve(result);\n    } catch (error) {\n      reject(error instanceof Error ? error : new Error(String(error)));\n    } finally {\n      this.activeRequests--;\n      this.processQueue();\n    }\n  }\n\n  private async executeWithRetry\u003CT>(\n    fn: () => Promise\u003CT>,\n    attempt = 0\n  ): Promise\u003CT> {\n    try {\n      return await fn();\n    } catch (error) {\n      const isRateLimited = error instanceof Error &&\n        (error.message.includes('429') || error.message.includes('rate limit'));\n\n      if (isRateLimited && attempt \u003C this.config.retryAttempts) {\n        const delay = this.config.baseDelay * Math.pow(2, attempt);\n        const jitter = Math.random() * 1000;\n        await new Promise(r => setTimeout(r, delay + jitter));\n        return this.executeWithRetry(fn, attempt + 1);\n      }\n\n      throw error;\n    }\n  }\n\n  getStats() {\n    return {\n      activeRequests: this.activeRequests,\n      queuedRequests: this.queue.length,\n      requestsThisMinute: this.requestsThisMinute,\n    };\n  }\n}\n```\n\n### Exponential Backoff with Jitter\n```typescript\n\u002F\u002F lib\u002Fbackoff.ts\ninterface BackoffConfig {\n  baseDelay: number;\n  maxDelay: number;\n  factor: number;\n  jitter: boolean;\n}\n\nexport class ExponentialBackoff {\n  private attempt = 0;\n  private config: BackoffConfig;\n\n  constructor(config: Partial\u003CBackoffConfig> = {}) {\n    this.config = {\n      baseDelay: config.baseDelay ?? 1000,\n      maxDelay: config.maxDelay ?? 60000,\n      factor: config.factor ?? 2,\n      jitter: config.jitter ?? true,\n    };\n  }\n\n  getDelay(): number {\n    const exponential = this.config.baseDelay *\n      Math.pow(this.config.factor, this.attempt);\n    const capped = Math.min(exponential, this.config.maxDelay);\n\n    if (this.config.jitter) {\n      \u002F\u002F Full jitter: random value between 0 and calculated delay\n      return Math.random() * capped;\n    }\n\n    return capped;\n  }\n\n  increment(): void {\n    this.attempt++;\n  }\n\n  reset(): void {\n    this.attempt = 0;\n  }\n\n  async wait(): Promise\u003Cvoid> {\n    const delay = this.getDelay();\n    await new Promise(resolve => setTimeout(resolve, delay));\n    this.increment();\n  }\n}\n\n\u002F\u002F Usage\nconst backoff = new ExponentialBackoff();\n\nasync function transcribeWithBackoff(url: string) {\n  const maxAttempts = 5;\n\n  for (let i = 0; i \u003C maxAttempts; i++) {\n    try {\n      return await transcribe(url);\n    } catch (error) {\n      if (i === maxAttempts - 1) throw error;\n\n      if (error instanceof Error && error.message.includes('429')) {\n        console.log(`Rate limited, waiting ${backoff.getDelay()}ms...`);\n        await backoff.wait();\n      } else {\n        throw error;\n      }\n    }\n  }\n}\n```\n\n### Circuit Breaker Pattern\n```typescript\n\u002F\u002F lib\u002Fcircuit-breaker.ts\nenum CircuitState {\n  CLOSED = 'CLOSED',\n  OPEN = 'OPEN',\n  HALF_OPEN = 'HALF_OPEN',\n}\n\ninterface CircuitBreakerConfig {\n  failureThreshold: number;\n  resetTimeout: number;\n  halfOpenRequests: number;\n}\n\nexport class CircuitBreaker {\n  private state = CircuitState.CLOSED;\n  private failures = 0;\n  private lastFailure = 0;\n  private halfOpenSuccesses = 0;\n  private config: CircuitBreakerConfig;\n\n  constructor(config: Partial\u003CCircuitBreakerConfig> = {}) {\n    this.config = {\n      failureThreshold: config.failureThreshold ?? 5,\n      resetTimeout: config.resetTimeout ?? 30000,\n      halfOpenRequests: config.halfOpenRequests ?? 3,\n    };\n  }\n\n  async execute\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n    if (this.state === CircuitState.OPEN) {\n      if (Date.now() - this.lastFailure > this.config.resetTimeout) {\n        this.state = CircuitState.HALF_OPEN;\n        this.halfOpenSuccesses = 0;\n      } else {\n        throw new Error('Circuit breaker is OPEN');\n      }\n    }\n\n    try {\n      const result = await fn();\n\n      if (this.state === CircuitState.HALF_OPEN) {\n        this.halfOpenSuccesses++;\n        if (this.halfOpenSuccesses >= this.config.halfOpenRequests) {\n          this.state = CircuitState.CLOSED;\n          this.failures = 0;\n        }\n      }\n\n      return result;\n    } catch (error) {\n      this.recordFailure();\n      throw error;\n    }\n  }\n\n  private recordFailure() {\n    this.failures++;\n    this.lastFailure = Date.now();\n\n    if (this.failures >= this.config.failureThreshold) {\n      this.state = CircuitState.OPEN;\n      console.log('Circuit breaker OPENED');\n    }\n  }\n\n  getState(): CircuitState {\n    return this.state;\n  }\n}\n```\n\n### Usage Monitor\n```typescript\n\u002F\u002F lib\u002Fusage-monitor.ts\ninterface UsageStats {\n  requestCount: number;\n  audioSeconds: number;\n  errorCount: number;\n  rateLimitHits: number;\n  startTime: Date;\n}\n\nexport class DeepgramUsageMonitor {\n  private stats: UsageStats = {\n    requestCount: 0,\n    audioSeconds: 0,\n    errorCount: 0,\n    rateLimitHits: 0,\n    startTime: new Date(),\n  };\n\n  recordRequest(audioSeconds: number = 0) {\n    this.stats.requestCount++;\n    this.stats.audioSeconds += audioSeconds;\n  }\n\n  recordError(isRateLimit: boolean = false) {\n    this.stats.errorCount++;\n    if (isRateLimit) {\n      this.stats.rateLimitHits++;\n    }\n  }\n\n  getStats(): UsageStats & { audioDuration: string; uptimeHours: number } {\n    const uptimeMs = Date.now() - this.stats.startTime.getTime();\n\n    return {\n      ...this.stats,\n      audioDuration: this.formatDuration(this.stats.audioSeconds),\n      uptimeHours: uptimeMs \u002F 3600000,\n    };\n  }\n\n  private formatDuration(seconds: number): string {\n    const hours = Math.floor(seconds \u002F 3600);\n    const minutes = Math.floor((seconds % 3600) \u002F 60);\n    return `${hours}h ${minutes}m`;\n  }\n\n  shouldAlert(): boolean {\n    \u002F\u002F Alert if rate limit hit rate exceeds 10%\n    const hitRate = this.stats.rateLimitHits \u002F this.stats.requestCount;\n    return hitRate > 0.1 && this.stats.requestCount > 10;\n  }\n}\n```\n\n### Python Rate Limiter\n```python\n# lib\u002Frate_limiter.py\nimport asyncio\nimport time\nfrom collections import deque\nfrom typing import Callable, TypeVar\n\nT = TypeVar('T')\n\nclass RateLimiter:\n    def __init__(\n        self,\n        max_concurrent: int = 50,\n        max_per_minute: int = 500\n    ):\n        self.max_concurrent = max_concurrent\n        self.max_per_minute = max_per_minute\n        self.semaphore = asyncio.Semaphore(max_concurrent)\n        self.request_times: deque = deque()\n\n    async def execute(self, fn: Callable[[], T]) -> T:\n        await self._wait_for_rate_limit()\n\n        async with self.semaphore:\n            self.request_times.append(time.time())\n            return await fn()\n\n    async def _wait_for_rate_limit(self):\n        now = time.time()\n\n        # Remove requests older than 1 minute\n        while self.request_times and now - self.request_times[0] > 60:\n            self.request_times.popleft()\n\n        # Wait if at limit\n        if len(self.request_times) >= self.max_per_minute:\n            wait_time = 60 - (now - self.request_times[0])\n            if wait_time > 0:\n                await asyncio.sleep(wait_time)\n```\n\n## Resources\n- [Deepgram Pricing & Limits](https:\u002F\u002Fdeepgram.com\u002Fpricing)\n- [Rate Limiting Best Practices](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Frate-limits)\n- [API Usage Dashboard](https:\u002F\u002Fconsole.deepgram.com\u002Fusage)\n\n## Next Steps\nProceed to `deepgram-security-basics` for security best practices.\n","# Deepgram Rate Limits\n\n## Overview\nImplement proper rate limiting and backoff strategies for Deepgram API integration.\n\n## Deepgram Rate Limits\n\n| Plan | Concurrent Requests | Requests\u002FMinute | Audio Hours\u002FMonth |\n|------|---------------------|-----------------|-------------------|\n| Pay As You Go | 100 | 1000 | Unlimited |\n| Growth | 200 | 2000 | Included hours |\n| Enterprise | Custom | Custom | Custom |\n\n## Instructions\n\n### Step 1: Implement Request Queue\nCreate a queue to manage concurrent request limits.\n\n### Step 2: Add Exponential Backoff\nHandle rate limit responses with intelligent retry.\n\n### Step 3: Monitor Usage\nTrack request counts and audio duration.\n\n### Step 4: Implement Circuit Breaker\nPrevent cascade failures during rate limiting.\n\n## Output\n- Rate-limited request queue\n- Exponential backoff handler\n- Usage monitoring dashboard\n- Circuit breaker implementation\n\n## Examples\n\n### TypeScript Rate Limiter\n```typescript\n\u002F\u002F lib\u002Frate-limiter.ts\ninterface RateLimiterConfig {\n  maxConcurrent: number;\n  maxPerMinute: number;\n  retryAttempts: number;\n  baseDelay: number;\n}\n\nexport class DeepgramRateLimiter {\n  private queue: Array\u003C{\n    fn: () => Promise\u003Cunknown>;\n    resolve: (value: unknown) => void;\n    reject: (error: Error) => void;\n  }> = [];\n  private activeRequests = 0;\n  private requestsThisMinute = 0;\n  private minuteStart = Date.now();\n  private config: RateLimiterConfig;\n\n  constructor(config: Partial\u003CRateLimiterConfig> = {}) {\n    this.config = {\n      maxConcurrent: config.maxConcurrent ?? 50,\n      maxPerMinute: config.maxPerMinute ?? 500,\n      retryAttempts: config.retryAttempts ?? 3,\n      baseDelay: config.baseDelay ?? 1000,\n    };\n  }\n\n  async execute\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n    return new Promise((resolve, reject) => {\n      this.queue.push({\n        fn,\n        resolve: resolve as (value: unknown) => void,\n        reject,\n      });\n      this.processQueue();\n    });\n  }\n\n  private async processQueue() {\n    \u002F\u002F Reset minute counter if needed\n    const now = Date.now();\n    if (now - this.minuteStart >= 60000) {\n      this.requestsThisMinute = 0;\n      this.minuteStart = now;\n    }\n\n    \u002F\u002F Check limits\n    if (this.activeRequests >= this.config.maxConcurrent) return;\n    if (this.requestsThisMinute >= this.config.maxPerMinute) return;\n    if (this.queue.length === 0) return;\n\n    const { fn, resolve, reject } = this.queue.shift()!;\n    this.activeRequests++;\n    this.requestsThisMinute++;\n\n    try {\n      const result = await this.executeWithRetry(fn);\n      resolve(result);\n    } catch (error) {\n      reject(error instanceof Error ? error : new Error(String(error)));\n    } finally {\n      this.activeRequests--;\n      this.processQueue();\n    }\n  }\n\n  private async executeWithRetry\u003CT>(\n    fn: () => Promise\u003CT>,\n    attempt = 0\n  ): Promise\u003CT> {\n    try {\n      return await fn();\n    } catch (error) {\n      const isRateLimited = error instanceof Error &&\n        (error.message.includes('429') || error.message.includes('rate limit'));\n\n      if (isRateLimited && attempt \u003C this.config.retryAttempts) {\n        const delay = this.config.baseDelay * Math.pow(2, attempt);\n        const jitter = Math.random() * 1000;\n        await new Promise(r => setTimeout(r, delay + jitter));\n        return this.executeWithRetry(fn, attempt + 1);\n      }\n\n      throw error;\n    }\n  }\n\n  getStats() {\n    return {\n      activeRequests: this.activeRequests,\n      queuedRequests: this.queue.length,\n      requestsThisMinute: this.requestsThisMinute,\n    };\n  }\n}\n```\n\n### Exponential Backoff with Jitter\n```typescript\n\u002F\u002F lib\u002Fbackoff.ts\ninterface BackoffConfig {\n  baseDelay: number;\n  maxDelay: number;\n  factor: number;\n  jitter: boolean;\n}\n\nexport class ExponentialBackoff {\n  private attempt = 0;\n  private config: BackoffConfig;\n\n  constructor(config: Partial\u003CBackoffConfig> = {}) {\n    this.config = {\n      baseDelay: config.baseDelay ?? 1000,\n      maxDelay: config.maxDelay ?? 60000,\n      factor: config.factor ?? 2,\n      jitter: config.jitter ?? true,\n    };\n  }\n\n  getDelay(): number {\n    const exponential = this.config.baseDelay *\n      Math.pow(this.config.factor, this.attempt);\n    const capped = Math.min(exponential, this.config.maxDelay);\n\n    if (this.config.jitter) {\n      \u002F\u002F Full jitter: random value between 0 and calculated delay\n      return Math.random() * capped;\n    }\n\n    return capped;\n  }\n\n  increment(): void {\n    this.attempt++;\n  }\n\n  reset(): void {\n    this.attempt = 0;\n  }\n\n  async wait(): Promise\u003Cvoid> {\n    const delay = this.getDelay();\n    await new Promise(resolve => setTimeout(resolve, delay));\n    this.increment();\n  }\n}\n\n\u002F\u002F Usage\nconst backoff = new ExponentialBackoff();\n\nasync function transcribeWithBackoff(url: string) {\n  const maxAttempts = 5;\n\n  for (let i = 0; i \u003C maxAttempts; i++) {\n    try {\n      return await transcribe(url);\n    } catch (error) {\n      if (i === maxAttempts - 1) throw error;\n\n      if (error instanceof Error && error.message.includes('429')) {\n        console.log(`Rate limited, waiting ${backoff.getDelay()}ms...`);\n        await backoff.wait();\n      } else {\n        throw error;\n      }\n    }\n  }\n}\n```\n\n### Circuit Breaker Pattern\n```typescript\n\u002F\u002F lib\u002Fcircuit-breaker.ts\nenum CircuitState {\n  CLOSED = 'CLOSED',\n  OPEN = 'OPEN',\n  HALF_OPEN = 'HALF_OPEN',\n}\n\ninterface CircuitBreakerConfig {\n  failureThreshold: number;\n  resetTimeout: number;\n  halfOpenRequests: number;\n}\n\nexport class CircuitBreaker {\n  private state = CircuitState.CLOSED;\n  private failures = 0;\n  private lastFailure = 0;\n  private halfOpenSuccesses = 0;\n  private config: CircuitBreakerConfig;\n\n  constructor(config: Partial\u003CCircuitBreakerConfig> = {}) {\n    this.config = {\n      failureThreshold: config.failureThreshold ?? 5,\n      resetTimeout: config.resetTimeout ?? 30000,\n      halfOpenRequests: config.halfOpenRequests ?? 3,\n    };\n  }\n\n  async execute\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n    if (this.state === CircuitState.OPEN) {\n      if (Date.now() - this.lastFailure > this.config.resetTimeout) {\n        this.state = CircuitState.HALF_OPEN;\n        this.halfOpenSuccesses = 0;\n      } else {\n        throw new Error('Circuit breaker is OPEN');\n      }\n    }\n\n    try {\n      const result = await fn();\n\n      if (this.state === CircuitState.HALF_OPEN) {\n        this.halfOpenSuccesses++;\n        if (this.halfOpenSuccesses >= this.config.halfOpenRequests) {\n          this.state = CircuitState.CLOSED;\n          this.failures = 0;\n        }\n      }\n\n      return result;\n    } catch (error) {\n      this.recordFailure();\n      throw error;\n    }\n  }\n\n  private recordFailure() {\n    this.failures++;\n    this.lastFailure = Date.now();\n\n    if (this.failures >= this.config.failureThreshold) {\n      this.state = CircuitState.OPEN;\n      console.log('Circuit breaker OPENED');\n    }\n  }\n\n  getState(): CircuitState {\n    return this.state;\n  }\n}\n```\n\n### Usage Monitor\n```typescript\n\u002F\u002F lib\u002Fusage-monitor.ts\ninterface UsageStats {\n  requestCount: number;\n  audioSeconds: number;\n  errorCount: number;\n  rateLimitHits: number;\n  startTime: Date;\n}\n\nexport class DeepgramUsageMonitor {\n  private stats: UsageStats = {\n    requestCount: 0,\n    audioSeconds: 0,\n    errorCount: 0,\n    rateLimitHits: 0,\n    startTime: new Date(),\n  };\n\n  recordRequest(audioSeconds: number = 0) {\n    this.stats.requestCount++;\n    this.stats.audioSeconds += audioSeconds;\n  }\n\n  recordError(isRateLimit: boolean = false) {\n    this.stats.errorCount++;\n    if (isRateLimit) {\n      this.stats.rateLimitHits++;\n    }\n  }\n\n  getStats(): UsageStats & { audioDuration: string; uptimeHours: number } {\n    const uptimeMs = Date.now() - this.stats.startTime.getTime();\n\n    return {\n      ...this.stats,\n      audioDuration: this.formatDuration(this.stats.audioSeconds),\n      uptimeHours: uptimeMs \u002F 3600000,\n    };\n  }\n\n  private formatDuration(seconds: number): string {\n    const hours = Math.floor(seconds \u002F 3600);\n    const minutes = Math.floor((seconds % 3600) \u002F 60);\n    return `${hours}h ${minutes}m`;\n  }\n\n  shouldAlert(): boolean {\n    \u002F\u002F Alert if rate limit hit rate exceeds 10%\n    const hitRate = this.stats.rateLimitHits \u002F this.stats.requestCount;\n    return hitRate > 0.1 && this.stats.requestCount > 10;\n  }\n}\n```\n\n### Python Rate Limiter\n```python\n# lib\u002Frate_limiter.py\nimport asyncio\nimport time\nfrom collections import deque\nfrom typing import Callable, TypeVar\n\nT = TypeVar('T')\n\nclass RateLimiter:\n    def __init__(\n        self,\n        max_concurrent: int = 50,\n        max_per_minute: int = 500\n    ):\n        self.max_concurrent = max_concurrent\n        self.max_per_minute = max_per_minute\n        self.semaphore = asyncio.Semaphore(max_concurrent)\n        self.request_times: deque = deque()\n\n    async def execute(self, fn: Callable[[], T]) -> T:\n        await self._wait_for_rate_limit()\n\n        async with self.semaphore:\n            self.request_times.append(time.time())\n            return await fn()\n\n    async def _wait_for_rate_limit(self):\n        now = time.time()\n\n        # Remove requests older than 1 minute\n        while self.request_times and now - self.request_times[0] > 60:\n            self.request_times.popleft()\n\n        # Wait if at limit\n        if len(self.request_times) >= self.max_per_minute:\n            wait_time = 60 - (now - self.request_times[0])\n            if wait_time > 0:\n                await asyncio.sleep(wait_time)\n```\n\n## Resources\n- [Deepgram Pricing & Limits](https:\u002F\u002Fdeepgram.com\u002Fpricing)\n- [Rate Limiting Best Practices](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Frate-limits)\n- [API Usage Dashboard](https:\u002F\u002Fconsole.deepgram.com\u002Fusage)\n\n## Next Steps\nProceed to `deepgram-security-basics` for security best practices.\n",{"name":5,"author":51,"license":15,"version":52,"description":53,"allowed-tools":54},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Deepgram rate limiting and backoff strategies.\nUse when handling API quotas, implementing request throttling,\nor dealing with rate limit errors.\nTrigger with phrases like \"deepgram rate limit\", \"deepgram throttling\",\n\"429 error deepgram\", \"deepgram quota\", \"deepgram backoff\".\n","Read, Grep, Bash(curl:*)","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-rate-limits",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-rate-limits",{"tool":70,"command":71},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-rate-limits",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-rate-limits\u002FSKILL.md",true,[],[79,112,147,170,196,223],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":92,"publishedAt":111},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,32,109,110],"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":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":122,"publishedAt":46},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[119],{"categoryNo":120,"categoryName":121,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000009","前端开发",[123,124,99,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,39,104,140,141,142,143,144,145,146],"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":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":151,"sourceHtmlUrl":152,"categories":153,"keywords":158,"publishedAt":46},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[154,157],{"categoryNo":155,"categoryName":156,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":120,"categoryName":121,"taxonomyType":90,"taxonomyTypeDesc":91},[159,160,161,127,162,163,124,164,97,165,137,166,167,168,169,32,144],"testing","webapp testing","webapp","screenshots","playwright","debugging","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":46},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[178,179,180,181,182,183,184,185,39,186,187,188,189,190,191,192,32,193,194,195,144,24],"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":83,"licenseFileUrl":200,"sourceHtmlUrl":201,"categories":202,"keywords":206,"publishedAt":46},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[203],{"categoryNo":204,"categoryName":205,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000023","Skill与智能体开发",[207,208,209,210,211,212,213,214,215,216,217,218,219,220,32,144,221,24,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":46},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[230],{"categoryNo":204,"categoryName":205,"taxonomyType":90,"taxonomyTypeDesc":91},[225,232,233,234,235,236,237,165,238,239,39,240,241,242,243,144,244],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]