[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6BG9SS4M3K2QQDWVYQ9XY":3,"skill-same:01M6F6BG9SS4M3K2QQDWVYQ9XY":76},{"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":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6F6BG9SS4M3K2QQDWVYQ9XY","abridge-rate-limits",null,"Implement Abridge rate limiting, backoff, and session throttling patterns.\nUse when handling 429 errors, managing concurrent encounter sessions,\nor optimizing API throughput for high-volume clinical deployments.\nTrigger: \"abridge rate limit\", \"abridge 429\", \"abridge throttling\",\n\"abridge concurrent sessions\".","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\u002Fabridge-rate-limits\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"abridge rate limits","abridge","patterns","429","backoff","throughput","trigger","io","clinical","volume","sessions","session","edit","write","read","Bash","healthcare","api","throttling","code","2026-11-10 10:12:30",false,"---\nname: abridge-rate-limits\ndescription: |\n  Implement Abridge rate limiting, backoff, and session throttling patterns.\n  Use when handling 429 errors, managing concurrent encounter sessions,\n  or optimizing API throughput for high-volume clinical deployments.\n  Trigger: \"abridge rate limit\", \"abridge 429\", \"abridge throttling\",\n  \"abridge concurrent sessions\".\nallowed-tools: Read, Write, Edit, Bash(npm:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, healthcare, ai, abridge, rate-limiting]\ncompatible-with: claude-code\n---\n\n# Abridge Rate Limits\n\n## Overview\n\nAbridge enforces rate limits per organization to ensure platform stability across thousands of concurrent clinical encounters. Limits vary by contract tier and are enforced at the org_id level.\n\n## Rate Limit Tiers\n\n| Tier | Concurrent Sessions | API Calls\u002Fmin | Note Generations\u002Fmin | WebSocket Connections |\n|------|---------------------|---------------|---------------------|-----------------------|\n| Pilot | 10 | 60 | 10 | 10 |\n| Standard | 100 | 600 | 50 | 100 |\n| Enterprise | 1,000+ | 6,000 | 500 | 1,000 |\n\n## Response Headers\n\n```\nX-RateLimit-Limit: 600\nX-RateLimit-Remaining: 42\nX-RateLimit-Reset: 1711234567\nRetry-After: 30\n```\n\n## Instructions\n\n### Step 1: Rate Limit Aware Client\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Frate-limiter.ts\ninterface RateLimitState {\n  remaining: number;\n  limit: number;\n  resetAt: Date;\n  retryAfter?: number;\n}\n\nclass AbridgeRateLimiter {\n  private state: RateLimitState = {\n    remaining: Infinity,\n    limit: Infinity,\n    resetAt: new Date(),\n  };\n  private queue: Array\u003C{ resolve: () => void; reject: (err: Error) => void }> = [];\n  private processing = false;\n\n  updateFromHeaders(headers: Record\u003Cstring, string>): void {\n    if (headers['x-ratelimit-remaining']) {\n      this.state.remaining = parseInt(headers['x-ratelimit-remaining']);\n    }\n    if (headers['x-ratelimit-limit']) {\n      this.state.limit = parseInt(headers['x-ratelimit-limit']);\n    }\n    if (headers['x-ratelimit-reset']) {\n      this.state.resetAt = new Date(parseInt(headers['x-ratelimit-reset']) * 1000);\n    }\n    if (headers['retry-after']) {\n      this.state.retryAfter = parseInt(headers['retry-after']);\n    }\n  }\n\n  async waitForSlot(): Promise\u003Cvoid> {\n    if (this.state.remaining > 0) {\n      this.state.remaining--;\n      return;\n    }\n\n    \u002F\u002F Wait until rate limit resets\n    const waitMs = Math.max(0, this.state.resetAt.getTime() - Date.now());\n    console.log(`Rate limited — waiting ${waitMs}ms for reset`);\n    await new Promise(r => setTimeout(r, waitMs));\n    this.state.remaining = this.state.limit;\n  }\n\n  get utilizationPercent(): number {\n    return ((this.state.limit - this.state.remaining) \u002F this.state.limit) * 100;\n  }\n}\n\nexport { AbridgeRateLimiter };\n```\n\n### Step 2: Concurrent Session Manager\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fsession-pool.ts\nimport Bottleneck from 'bottleneck';\n\n\u002F\u002F Manage concurrent encounter sessions within org limits\nconst sessionLimiter = new Bottleneck({\n  maxConcurrent: 50,          \u002F\u002F Stay under tier limit\n  minTime: 100,               \u002F\u002F 100ms between session creates\n  reservoir: 50,              \u002F\u002F Burst capacity\n  reservoirRefreshInterval: 60000,  \u002F\u002F Refill every minute\n  reservoirRefreshAmount: 50,\n});\n\nsessionLimiter.on('depleted', () => {\n  console.warn('Session pool depleted — queuing new sessions');\n});\n\nasync function createSessionThrottled(\n  api: any,\n  patientId: string,\n  providerId: string,\n  specialty: string,\n): Promise\u003Cany> {\n  return sessionLimiter.schedule(() =>\n    api.post('\u002Fencounters\u002Fsessions', {\n      patient_id: patientId,\n      provider_id: providerId,\n      specialty,\n      encounter_type: 'outpatient',\n    })\n  );\n}\n\nexport { createSessionThrottled, sessionLimiter };\n```\n\n### Step 3: 429 Error Handler with Retry-After\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fretry-429.ts\nimport axios, { AxiosError } from 'axios';\n\nasync function handleRateLimitedRequest\u003CT>(\n  requestFn: () => Promise\u003CT>,\n  maxRetries: number = 5,\n): Promise\u003CT> {\n  for (let attempt = 1; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await requestFn();\n    } catch (err) {\n      const axiosErr = err as AxiosError;\n      if (axiosErr.response?.status !== 429 || attempt === maxRetries) {\n        throw err;\n      }\n\n      const retryAfter = axiosErr.response.headers['retry-after'];\n      const waitMs = retryAfter\n        ? parseInt(retryAfter as string) * 1000\n        : Math.min(1000 * Math.pow(2, attempt), 60000);\n\n      console.log(`429 rate limited — retry ${attempt}\u002F${maxRetries} in ${waitMs}ms`);\n      await new Promise(r => setTimeout(r, waitMs));\n    }\n  }\n  throw new Error('Unreachable');\n}\n```\n\n### Step 4: Usage Monitoring\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fusage-monitor.ts\ninterface UsageSnapshot {\n  timestamp: string;\n  activeSessions: number;\n  apiCallsThisMinute: number;\n  noteGenerationsThisMinute: number;\n  utilizationPercent: number;\n}\n\nclass UsageMonitor {\n  private snapshots: UsageSnapshot[] = [];\n  private apiCallCount = 0;\n  private noteGenCount = 0;\n\n  recordApiCall(): void { this.apiCallCount++; }\n  recordNoteGeneration(): void { this.noteGenCount++; }\n\n  takeSnapshot(activeSessions: number): UsageSnapshot {\n    const snapshot: UsageSnapshot = {\n      timestamp: new Date().toISOString(),\n      activeSessions,\n      apiCallsThisMinute: this.apiCallCount,\n      noteGenerationsThisMinute: this.noteGenCount,\n      utilizationPercent: (activeSessions \u002F 100) * 100, \u002F\u002F Adjust per tier\n    };\n    this.snapshots.push(snapshot);\n    this.apiCallCount = 0;\n    this.noteGenCount = 0;\n    return snapshot;\n  }\n\n  getAlerts(): string[] {\n    const latest = this.snapshots.at(-1);\n    if (!latest) return [];\n    const alerts: string[] = [];\n    if (latest.utilizationPercent > 80) alerts.push('Session utilization > 80%');\n    if (latest.apiCallsThisMinute > 500) alerts.push('API calls approaching limit');\n    return alerts;\n  }\n}\n```\n\n## Output\n\n- Rate-limit-aware API client with header parsing\n- Concurrent session pool with Bottleneck throttling\n- Automatic 429 retry with Retry-After header support\n- Usage monitoring with utilization alerts\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `429 Too Many Requests` | Exceeded org rate limit | Use Retry-After header; implement backoff |\n| `503 Service Unavailable` | Platform-wide throttling | Back off exponentially; check status page |\n| Session create rejected | Concurrent session limit | Queue creates with Bottleneck |\n\n## Resources\n\n- [Abridge Platform](https:\u002F\u002Fwww.abridge.com\u002Fproduct)\n- [Bottleneck Rate Limiter](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fbottleneck)\n\n## Next Steps\n\nFor security configuration, see `abridge-security-basics`.\n\n","# Abridge Rate Limits\n\n## Overview\n\nAbridge enforces rate limits per organization to ensure platform stability across thousands of concurrent clinical encounters. Limits vary by contract tier and are enforced at the org_id level.\n\n## Rate Limit Tiers\n\n| Tier | Concurrent Sessions | API Calls\u002Fmin | Note Generations\u002Fmin | WebSocket Connections |\n|------|---------------------|---------------|---------------------|-----------------------|\n| Pilot | 10 | 60 | 10 | 10 |\n| Standard | 100 | 600 | 50 | 100 |\n| Enterprise | 1,000+ | 6,000 | 500 | 1,000 |\n\n## Response Headers\n\n```\nX-RateLimit-Limit: 600\nX-RateLimit-Remaining: 42\nX-RateLimit-Reset: 1711234567\nRetry-After: 30\n```\n\n## Instructions\n\n### Step 1: Rate Limit Aware Client\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Frate-limiter.ts\ninterface RateLimitState {\n  remaining: number;\n  limit: number;\n  resetAt: Date;\n  retryAfter?: number;\n}\n\nclass AbridgeRateLimiter {\n  private state: RateLimitState = {\n    remaining: Infinity,\n    limit: Infinity,\n    resetAt: new Date(),\n  };\n  private queue: Array\u003C{ resolve: () => void; reject: (err: Error) => void }> = [];\n  private processing = false;\n\n  updateFromHeaders(headers: Record\u003Cstring, string>): void {\n    if (headers['x-ratelimit-remaining']) {\n      this.state.remaining = parseInt(headers['x-ratelimit-remaining']);\n    }\n    if (headers['x-ratelimit-limit']) {\n      this.state.limit = parseInt(headers['x-ratelimit-limit']);\n    }\n    if (headers['x-ratelimit-reset']) {\n      this.state.resetAt = new Date(parseInt(headers['x-ratelimit-reset']) * 1000);\n    }\n    if (headers['retry-after']) {\n      this.state.retryAfter = parseInt(headers['retry-after']);\n    }\n  }\n\n  async waitForSlot(): Promise\u003Cvoid> {\n    if (this.state.remaining > 0) {\n      this.state.remaining--;\n      return;\n    }\n\n    \u002F\u002F Wait until rate limit resets\n    const waitMs = Math.max(0, this.state.resetAt.getTime() - Date.now());\n    console.log(`Rate limited — waiting ${waitMs}ms for reset`);\n    await new Promise(r => setTimeout(r, waitMs));\n    this.state.remaining = this.state.limit;\n  }\n\n  get utilizationPercent(): number {\n    return ((this.state.limit - this.state.remaining) \u002F this.state.limit) * 100;\n  }\n}\n\nexport { AbridgeRateLimiter };\n```\n\n### Step 2: Concurrent Session Manager\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fsession-pool.ts\nimport Bottleneck from 'bottleneck';\n\n\u002F\u002F Manage concurrent encounter sessions within org limits\nconst sessionLimiter = new Bottleneck({\n  maxConcurrent: 50,          \u002F\u002F Stay under tier limit\n  minTime: 100,               \u002F\u002F 100ms between session creates\n  reservoir: 50,              \u002F\u002F Burst capacity\n  reservoirRefreshInterval: 60000,  \u002F\u002F Refill every minute\n  reservoirRefreshAmount: 50,\n});\n\nsessionLimiter.on('depleted', () => {\n  console.warn('Session pool depleted — queuing new sessions');\n});\n\nasync function createSessionThrottled(\n  api: any,\n  patientId: string,\n  providerId: string,\n  specialty: string,\n): Promise\u003Cany> {\n  return sessionLimiter.schedule(() =>\n    api.post('\u002Fencounters\u002Fsessions', {\n      patient_id: patientId,\n      provider_id: providerId,\n      specialty,\n      encounter_type: 'outpatient',\n    })\n  );\n}\n\nexport { createSessionThrottled, sessionLimiter };\n```\n\n### Step 3: 429 Error Handler with Retry-After\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fretry-429.ts\nimport axios, { AxiosError } from 'axios';\n\nasync function handleRateLimitedRequest\u003CT>(\n  requestFn: () => Promise\u003CT>,\n  maxRetries: number = 5,\n): Promise\u003CT> {\n  for (let attempt = 1; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await requestFn();\n    } catch (err) {\n      const axiosErr = err as AxiosError;\n      if (axiosErr.response?.status !== 429 || attempt === maxRetries) {\n        throw err;\n      }\n\n      const retryAfter = axiosErr.response.headers['retry-after'];\n      const waitMs = retryAfter\n        ? parseInt(retryAfter as string) * 1000\n        : Math.min(1000 * Math.pow(2, attempt), 60000);\n\n      console.log(`429 rate limited — retry ${attempt}\u002F${maxRetries} in ${waitMs}ms`);\n      await new Promise(r => setTimeout(r, waitMs));\n    }\n  }\n  throw new Error('Unreachable');\n}\n```\n\n### Step 4: Usage Monitoring\n\n```typescript\n\u002F\u002F src\u002Fabridge\u002Fusage-monitor.ts\ninterface UsageSnapshot {\n  timestamp: string;\n  activeSessions: number;\n  apiCallsThisMinute: number;\n  noteGenerationsThisMinute: number;\n  utilizationPercent: number;\n}\n\nclass UsageMonitor {\n  private snapshots: UsageSnapshot[] = [];\n  private apiCallCount = 0;\n  private noteGenCount = 0;\n\n  recordApiCall(): void { this.apiCallCount++; }\n  recordNoteGeneration(): void { this.noteGenCount++; }\n\n  takeSnapshot(activeSessions: number): UsageSnapshot {\n    const snapshot: UsageSnapshot = {\n      timestamp: new Date().toISOString(),\n      activeSessions,\n      apiCallsThisMinute: this.apiCallCount,\n      noteGenerationsThisMinute: this.noteGenCount,\n      utilizationPercent: (activeSessions \u002F 100) * 100, \u002F\u002F Adjust per tier\n    };\n    this.snapshots.push(snapshot);\n    this.apiCallCount = 0;\n    this.noteGenCount = 0;\n    return snapshot;\n  }\n\n  getAlerts(): string[] {\n    const latest = this.snapshots.at(-1);\n    if (!latest) return [];\n    const alerts: string[] = [];\n    if (latest.utilizationPercent > 80) alerts.push('Session utilization > 80%');\n    if (latest.apiCallsThisMinute > 500) alerts.push('API calls approaching limit');\n    return alerts;\n  }\n}\n```\n\n## Output\n\n- Rate-limit-aware API client with header parsing\n- Concurrent session pool with Bottleneck throttling\n- Automatic 429 retry with Retry-After header support\n- Usage monitoring with utilization alerts\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `429 Too Many Requests` | Exceeded org rate limit | Use Retry-After header; implement backoff |\n| `503 Service Unavailable` | Platform-wide throttling | Back off exponentially; check status page |\n| Session create rejected | Concurrent session limit | Queue creates with Bottleneck |\n\n## Resources\n\n- [Abridge Platform](https:\u002F\u002Fwww.abridge.com\u002Fproduct)\n- [Bottleneck Rate Limiter](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fbottleneck)\n\n## Next Steps\n\nFor security configuration, see `abridge-security-basics`.\n\n",{"name":5,"tags":44,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51,"compatible-with":52},[45,35,46,20,47],"saas","ai","rate-limiting","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Abridge rate limiting, backoff, and session throttling patterns.\nUse when handling 429 errors, managing concurrent encounter sessions,\nor optimizing API throughput for high-volume clinical deployments.\nTrigger: \"abridge rate limit\", \"abridge 429\", \"abridge throttling\",\n\"abridge concurrent sessions\".\n","Read, Write, Edit, Bash(npm:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fabridge-rate-limits",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":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill abridge-rate-limits",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill abridge-rate-limits",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill abridge-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fabridge-rate-limits\u002FSKILL.md",true,[],[77,86,95,104,110,116],{"skillNo":78,"name":79,"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":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"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":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"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":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"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":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"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":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"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":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]