[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6DWKNMCW9JMMGP99HPACC":3,"skill-same:01M6F6DWKNMCW9JMMGP99HPACC":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":18,"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},"01M6F6DWKNMCW9JMMGP99HPACC","documenso-rate-limits",null,"Implement Documenso rate limiting, backoff, and request throttling patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Documenso.\nTrigger with phrases like \"documenso rate limit\", \"documenso throttling\",\n\"documenso 429\", \"documenso retry\", \"documenso 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\u002Fdocumenso-pack\u002Fskills\u002Fdocumenso-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,46],"limits","rate","documenso","documenso rate limits","retry","api request","when","request","rate limit","implementing","limit","errors","429","backoff","implement","with","throughput","trigger","io","rate limiting","logic","patterns","use","edit","write","read","api","throttling","2026-11-10 10:12:30",false,"---\nname: documenso-rate-limits\ndescription: |\n  Implement Documenso rate limiting, backoff, and request throttling patterns.\n  Use when handling rate limit errors, implementing retry logic,\n  or optimizing API request throughput for Documenso.\n  Trigger with phrases like \"documenso rate limit\", \"documenso throttling\",\n  \"documenso 429\", \"documenso retry\", \"documenso backoff\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Documenso Rate Limits\n\n## Overview\nHandle Documenso API rate limits gracefully with exponential backoff, request queuing, and fair use compliance.\n\n## Prerequisites\n- Documenso SDK installed\n- Understanding of async\u002Fawait patterns\n- Queue library (optional but recommended)\n\n## Documenso Fair Use Policy\n\nDocumenso implements fair use rate limiting. While specific limits are not publicly documented, follow these guidelines:\n\n| Recommendation | Limit | Notes |\n|----------------|-------|-------|\n| Requests per second | 5-10 | Stay well under burst |\n| Requests per minute | 100-200 | Sustained rate |\n| Bulk operations | Use batching | Batch create recipients\u002Ffields |\n| File uploads | 1 at a time | Sequential uploads |\n| Polling | 5-10 second intervals | Don't poll aggressively |\n\n## Instructions\n\n### Step 1: Implement Exponential Backoff with Jitter\n\n```typescript\ninterface BackoffConfig {\n  maxRetries: number;\n  baseDelayMs: number;\n  maxDelayMs: number;\n  jitterMs: number;\n}\n\nconst DEFAULT_BACKOFF: BackoffConfig = {\n  maxRetries: 5,\n  baseDelayMs: 1000,\n  maxDelayMs: 32000,\n  jitterMs: 500,\n};\n\nasync function withExponentialBackoff\u003CT>(\n  operation: () => Promise\u003CT>,\n  config: Partial\u003CBackoffConfig> = {}\n): Promise\u003CT> {\n  const { maxRetries, baseDelayMs, maxDelayMs, jitterMs } = {\n    ...DEFAULT_BACKOFF,\n    ...config,\n  };\n\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error: any) {\n      if (attempt === maxRetries) throw error;\n\n      const status = error.statusCode ?? error.status;\n\n      \u002F\u002F Only retry on rate limit (429) or server errors (5xx)\n      if (status !== 429 && (status \u003C 500 || status >= 600)) {\n        throw error;\n      }\n\n      \u002F\u002F Check for Retry-After header\n      const retryAfter = error.headers?.[\"retry-after\"];\n      let delay: number;\n\n      if (retryAfter) {\n        delay = parseInt(retryAfter) * 1000;\n      } else {\n        \u002F\u002F Exponential backoff with jitter\n        const exponentialDelay = baseDelayMs * Math.pow(2, attempt);\n        const jitter = Math.random() * jitterMs;\n        delay = Math.min(exponentialDelay + jitter, maxDelayMs);\n      }\n\n      console.log(\n        `Rate limited (attempt ${attempt + 1}\u002F${maxRetries}). ` +\n        `Waiting ${delay.toFixed(0)}ms...`\n      );\n      await new Promise((r) => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 2: Request Queue for Controlled Throughput\n\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Configure queue for Documenso's fair use limits\nconst documensoQueue = new PQueue({\n  concurrency: 3,          \u002F\u002F Max 3 concurrent requests\n  interval: 1000,          \u002F\u002F Per second\n  intervalCap: 5,          \u002F\u002F Max 5 requests per second\n});\n\n\u002F\u002F Wrapper for queued requests\nasync function queuedDocumensoRequest\u003CT>(\n  operation: () => Promise\u003CT>\n): Promise\u003CT> {\n  return documensoQueue.add(() => withExponentialBackoff(operation));\n}\n\n\u002F\u002F Usage example\nconst results = await Promise.all(\n  documents.map((doc) =>\n    queuedDocumensoRequest(() =>\n      client.documents.createV0({ title: doc.title })\n    )\n  )\n);\n```\n\n### Step 3: Batch Operations\n\n```typescript\n\u002F\u002F Batch multiple recipients into single requests where possible\nasync function addRecipientsInBatch(\n  documentId: string,\n  recipients: Array\u003C{ email: string; name: string; role: string }>\n): Promise\u003Cstring[]> {\n  \u002F\u002F Use createManyV0 for batch creation\n  const result = await queuedDocumensoRequest(() =>\n    client.documentsRecipients.createManyV0({\n      documentId,\n      recipients: recipients.map((r) => ({\n        email: r.email,\n        name: r.name,\n        role: r.role as any,\n      })),\n    })\n  );\n\n  return result.recipientIds ?? [];\n}\n\n\u002F\u002F Batch fields similarly\nasync function addFieldsInBatch(\n  documentId: string,\n  fields: Array\u003C{\n    recipientId: string;\n    type: string;\n    page: number;\n    x: number;\n    y: number;\n  }>\n): Promise\u003Cvoid> {\n  await queuedDocumensoRequest(() =>\n    client.documentsFields.createManyV0({\n      documentId,\n      fields: fields.map((f) => ({\n        recipientId: f.recipientId,\n        type: f.type as any,\n        page: f.page,\n        positionX: f.x,\n        positionY: f.y,\n        width: 200,\n        height: 60,\n      })),\n    })\n  );\n}\n```\n\n### Step 4: Rate Limit Monitor\n\n```typescript\nclass RateLimitMonitor {\n  private requestCount = 0;\n  private windowStart = Date.now();\n  private readonly windowMs = 60000; \u002F\u002F 1 minute window\n  private readonly maxRequests = 100; \u002F\u002F Target max per minute\n\n  async canMakeRequest(): Promise\u003Cboolean> {\n    const now = Date.now();\n\n    \u002F\u002F Reset window if expired\n    if (now - this.windowStart > this.windowMs) {\n      this.requestCount = 0;\n      this.windowStart = now;\n    }\n\n    \u002F\u002F Check if under limit\n    if (this.requestCount >= this.maxRequests) {\n      const waitTime = this.windowMs - (now - this.windowStart);\n      console.log(`Rate limit reached. Wait ${waitTime}ms`);\n      return false;\n    }\n\n    this.requestCount++;\n    return true;\n  }\n\n  getStats(): { count: number; remaining: number; resetIn: number } {\n    const now = Date.now();\n    return {\n      count: this.requestCount,\n      remaining: Math.max(0, this.maxRequests - this.requestCount),\n      resetIn: Math.max(0, this.windowMs - (now - this.windowStart)),\n    };\n  }\n}\n\nconst rateLimitMonitor = new RateLimitMonitor();\n\n\u002F\u002F Use with requests\nasync function monitoredRequest\u003CT>(operation: () => Promise\u003CT>): Promise\u003CT> {\n  while (!(await rateLimitMonitor.canMakeRequest())) {\n    await new Promise((r) => setTimeout(r, 1000));\n  }\n  return operation();\n}\n```\n\n### Step 5: Idempotent Requests\n\n```typescript\nimport crypto from \"crypto\";\n\n\u002F\u002F Generate deterministic idempotency key from request params\nfunction generateIdempotencyKey(\n  operation: string,\n  params: Record\u003Cstring, any>\n): string {\n  const data = JSON.stringify({ operation, params });\n  return crypto.createHash(\"sha256\").update(data).digest(\"hex\");\n}\n\n\u002F\u002F Track processed requests to prevent duplicates\nconst processedRequests = new Map\u003Cstring, any>();\n\nasync function idempotentRequest\u003CT>(\n  key: string,\n  operation: () => Promise\u003CT>\n): Promise\u003CT> {\n  \u002F\u002F Check cache first\n  if (processedRequests.has(key)) {\n    console.log(`Using cached result for ${key.substring(0, 8)}...`);\n    return processedRequests.get(key);\n  }\n\n  \u002F\u002F Execute and cache\n  const result = await operation();\n  processedRequests.set(key, result);\n\n  \u002F\u002F Clean old entries (keep last 1000)\n  if (processedRequests.size > 1000) {\n    const firstKey = processedRequests.keys().next().value;\n    processedRequests.delete(firstKey);\n  }\n\n  return result;\n}\n\n\u002F\u002F Usage\nasync function createDocumentIdempotent(title: string) {\n  const key = generateIdempotencyKey(\"createDocument\", { title });\n  return idempotentRequest(key, () =>\n    client.documents.createV0({ title })\n  );\n}\n```\n\n### Step 6: Bulk Document Processing with Rate Control\n\n```typescript\ninterface BulkProcessConfig {\n  documents: Array\u003C{ title: string; pdfPath: string }>;\n  batchSize: number;\n  delayBetweenBatches: number;\n}\n\nasync function bulkCreateDocuments(\n  config: BulkProcessConfig\n): Promise\u003CMap\u003Cstring, string>> {\n  const results = new Map\u003Cstring, string>();\n  const batches: Array\u003Ctypeof config.documents> = [];\n\n  \u002F\u002F Split into batches\n  for (let i = 0; i \u003C config.documents.length; i += config.batchSize) {\n    batches.push(config.documents.slice(i, i + config.batchSize));\n  }\n\n  console.log(`Processing ${config.documents.length} documents in ${batches.length} batches`);\n\n  for (let i = 0; i \u003C batches.length; i++) {\n    const batch = batches[i];\n    console.log(`\\nBatch ${i + 1}\u002F${batches.length}`);\n\n    \u002F\u002F Process batch concurrently (respecting queue limits)\n    const batchResults = await Promise.all(\n      batch.map(async (doc) => {\n        try {\n          const result = await queuedDocumensoRequest(async () => {\n            const pdfBlob = await openAsBlob(doc.pdfPath);\n            return client.documents.createV0({\n              title: doc.title,\n              file: pdfBlob,\n            });\n          });\n          return { title: doc.title, id: result.documentId!, error: null };\n        } catch (error: any) {\n          return { title: doc.title, id: null, error: error.message };\n        }\n      })\n    );\n\n    \u002F\u002F Record results\n    for (const result of batchResults) {\n      if (result.id) {\n        results.set(result.title, result.id);\n        console.log(`  Created: ${result.title}`);\n      } else {\n        console.error(`  Failed: ${result.title} - ${result.error}`);\n      }\n    }\n\n    \u002F\u002F Delay between batches (except for last)\n    if (i \u003C batches.length - 1) {\n      console.log(`Waiting ${config.delayBetweenBatches}ms before next batch...`);\n      await new Promise((r) => setTimeout(r, config.delayBetweenBatches));\n    }\n  }\n\n  return results;\n}\n\n\u002F\u002F Example usage\nconst results = await bulkCreateDocuments({\n  documents: [...],  \u002F\u002F Your documents\n  batchSize: 10,\n  delayBetweenBatches: 5000,  \u002F\u002F 5 seconds between batches\n});\n```\n\n## Output\n- Reliable API calls with automatic retry\n- Request queuing prevents rate limit errors\n- Bulk operations optimized for throughput\n- Idempotent requests prevent duplicates\n\n## Error Handling\n| Scenario | Response | Action |\n|----------|----------|--------|\n| 429 Rate Limited | Wait and retry | Use exponential backoff |\n| Retry-After header | Honor the value | Wait specified seconds |\n| Persistent 429 | Queue full | Reduce concurrency |\n| 503 Service Unavailable | Temporary | Retry with longer delay |\n\n## Resources\n- [Documenso Fair Use Policy](https:\u002F\u002Fdocs.documenso.com\u002Fdevelopers\u002Fpublic-api)\n- [p-queue Documentation](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- [Retry Patterns](https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fazure\u002Farchitecture\u002Fpatterns\u002Fretry)\n\n## Next Steps\nFor security configuration, see `documenso-security-basics`.\n","# Documenso Rate Limits\n\n## Overview\nHandle Documenso API rate limits gracefully with exponential backoff, request queuing, and fair use compliance.\n\n## Prerequisites\n- Documenso SDK installed\n- Understanding of async\u002Fawait patterns\n- Queue library (optional but recommended)\n\n## Documenso Fair Use Policy\n\nDocumenso implements fair use rate limiting. While specific limits are not publicly documented, follow these guidelines:\n\n| Recommendation | Limit | Notes |\n|----------------|-------|-------|\n| Requests per second | 5-10 | Stay well under burst |\n| Requests per minute | 100-200 | Sustained rate |\n| Bulk operations | Use batching | Batch create recipients\u002Ffields |\n| File uploads | 1 at a time | Sequential uploads |\n| Polling | 5-10 second intervals | Don't poll aggressively |\n\n## Instructions\n\n### Step 1: Implement Exponential Backoff with Jitter\n\n```typescript\ninterface BackoffConfig {\n  maxRetries: number;\n  baseDelayMs: number;\n  maxDelayMs: number;\n  jitterMs: number;\n}\n\nconst DEFAULT_BACKOFF: BackoffConfig = {\n  maxRetries: 5,\n  baseDelayMs: 1000,\n  maxDelayMs: 32000,\n  jitterMs: 500,\n};\n\nasync function withExponentialBackoff\u003CT>(\n  operation: () => Promise\u003CT>,\n  config: Partial\u003CBackoffConfig> = {}\n): Promise\u003CT> {\n  const { maxRetries, baseDelayMs, maxDelayMs, jitterMs } = {\n    ...DEFAULT_BACKOFF,\n    ...config,\n  };\n\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error: any) {\n      if (attempt === maxRetries) throw error;\n\n      const status = error.statusCode ?? error.status;\n\n      \u002F\u002F Only retry on rate limit (429) or server errors (5xx)\n      if (status !== 429 && (status \u003C 500 || status >= 600)) {\n        throw error;\n      }\n\n      \u002F\u002F Check for Retry-After header\n      const retryAfter = error.headers?.[\"retry-after\"];\n      let delay: number;\n\n      if (retryAfter) {\n        delay = parseInt(retryAfter) * 1000;\n      } else {\n        \u002F\u002F Exponential backoff with jitter\n        const exponentialDelay = baseDelayMs * Math.pow(2, attempt);\n        const jitter = Math.random() * jitterMs;\n        delay = Math.min(exponentialDelay + jitter, maxDelayMs);\n      }\n\n      console.log(\n        `Rate limited (attempt ${attempt + 1}\u002F${maxRetries}). ` +\n        `Waiting ${delay.toFixed(0)}ms...`\n      );\n      await new Promise((r) => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 2: Request Queue for Controlled Throughput\n\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Configure queue for Documenso's fair use limits\nconst documensoQueue = new PQueue({\n  concurrency: 3,          \u002F\u002F Max 3 concurrent requests\n  interval: 1000,          \u002F\u002F Per second\n  intervalCap: 5,          \u002F\u002F Max 5 requests per second\n});\n\n\u002F\u002F Wrapper for queued requests\nasync function queuedDocumensoRequest\u003CT>(\n  operation: () => Promise\u003CT>\n): Promise\u003CT> {\n  return documensoQueue.add(() => withExponentialBackoff(operation));\n}\n\n\u002F\u002F Usage example\nconst results = await Promise.all(\n  documents.map((doc) =>\n    queuedDocumensoRequest(() =>\n      client.documents.createV0({ title: doc.title })\n    )\n  )\n);\n```\n\n### Step 3: Batch Operations\n\n```typescript\n\u002F\u002F Batch multiple recipients into single requests where possible\nasync function addRecipientsInBatch(\n  documentId: string,\n  recipients: Array\u003C{ email: string; name: string; role: string }>\n): Promise\u003Cstring[]> {\n  \u002F\u002F Use createManyV0 for batch creation\n  const result = await queuedDocumensoRequest(() =>\n    client.documentsRecipients.createManyV0({\n      documentId,\n      recipients: recipients.map((r) => ({\n        email: r.email,\n        name: r.name,\n        role: r.role as any,\n      })),\n    })\n  );\n\n  return result.recipientIds ?? [];\n}\n\n\u002F\u002F Batch fields similarly\nasync function addFieldsInBatch(\n  documentId: string,\n  fields: Array\u003C{\n    recipientId: string;\n    type: string;\n    page: number;\n    x: number;\n    y: number;\n  }>\n): Promise\u003Cvoid> {\n  await queuedDocumensoRequest(() =>\n    client.documentsFields.createManyV0({\n      documentId,\n      fields: fields.map((f) => ({\n        recipientId: f.recipientId,\n        type: f.type as any,\n        page: f.page,\n        positionX: f.x,\n        positionY: f.y,\n        width: 200,\n        height: 60,\n      })),\n    })\n  );\n}\n```\n\n### Step 4: Rate Limit Monitor\n\n```typescript\nclass RateLimitMonitor {\n  private requestCount = 0;\n  private windowStart = Date.now();\n  private readonly windowMs = 60000; \u002F\u002F 1 minute window\n  private readonly maxRequests = 100; \u002F\u002F Target max per minute\n\n  async canMakeRequest(): Promise\u003Cboolean> {\n    const now = Date.now();\n\n    \u002F\u002F Reset window if expired\n    if (now - this.windowStart > this.windowMs) {\n      this.requestCount = 0;\n      this.windowStart = now;\n    }\n\n    \u002F\u002F Check if under limit\n    if (this.requestCount >= this.maxRequests) {\n      const waitTime = this.windowMs - (now - this.windowStart);\n      console.log(`Rate limit reached. Wait ${waitTime}ms`);\n      return false;\n    }\n\n    this.requestCount++;\n    return true;\n  }\n\n  getStats(): { count: number; remaining: number; resetIn: number } {\n    const now = Date.now();\n    return {\n      count: this.requestCount,\n      remaining: Math.max(0, this.maxRequests - this.requestCount),\n      resetIn: Math.max(0, this.windowMs - (now - this.windowStart)),\n    };\n  }\n}\n\nconst rateLimitMonitor = new RateLimitMonitor();\n\n\u002F\u002F Use with requests\nasync function monitoredRequest\u003CT>(operation: () => Promise\u003CT>): Promise\u003CT> {\n  while (!(await rateLimitMonitor.canMakeRequest())) {\n    await new Promise((r) => setTimeout(r, 1000));\n  }\n  return operation();\n}\n```\n\n### Step 5: Idempotent Requests\n\n```typescript\nimport crypto from \"crypto\";\n\n\u002F\u002F Generate deterministic idempotency key from request params\nfunction generateIdempotencyKey(\n  operation: string,\n  params: Record\u003Cstring, any>\n): string {\n  const data = JSON.stringify({ operation, params });\n  return crypto.createHash(\"sha256\").update(data).digest(\"hex\");\n}\n\n\u002F\u002F Track processed requests to prevent duplicates\nconst processedRequests = new Map\u003Cstring, any>();\n\nasync function idempotentRequest\u003CT>(\n  key: string,\n  operation: () => Promise\u003CT>\n): Promise\u003CT> {\n  \u002F\u002F Check cache first\n  if (processedRequests.has(key)) {\n    console.log(`Using cached result for ${key.substring(0, 8)}...`);\n    return processedRequests.get(key);\n  }\n\n  \u002F\u002F Execute and cache\n  const result = await operation();\n  processedRequests.set(key, result);\n\n  \u002F\u002F Clean old entries (keep last 1000)\n  if (processedRequests.size > 1000) {\n    const firstKey = processedRequests.keys().next().value;\n    processedRequests.delete(firstKey);\n  }\n\n  return result;\n}\n\n\u002F\u002F Usage\nasync function createDocumentIdempotent(title: string) {\n  const key = generateIdempotencyKey(\"createDocument\", { title });\n  return idempotentRequest(key, () =>\n    client.documents.createV0({ title })\n  );\n}\n```\n\n### Step 6: Bulk Document Processing with Rate Control\n\n```typescript\ninterface BulkProcessConfig {\n  documents: Array\u003C{ title: string; pdfPath: string }>;\n  batchSize: number;\n  delayBetweenBatches: number;\n}\n\nasync function bulkCreateDocuments(\n  config: BulkProcessConfig\n): Promise\u003CMap\u003Cstring, string>> {\n  const results = new Map\u003Cstring, string>();\n  const batches: Array\u003Ctypeof config.documents> = [];\n\n  \u002F\u002F Split into batches\n  for (let i = 0; i \u003C config.documents.length; i += config.batchSize) {\n    batches.push(config.documents.slice(i, i + config.batchSize));\n  }\n\n  console.log(`Processing ${config.documents.length} documents in ${batches.length} batches`);\n\n  for (let i = 0; i \u003C batches.length; i++) {\n    const batch = batches[i];\n    console.log(`\\nBatch ${i + 1}\u002F${batches.length}`);\n\n    \u002F\u002F Process batch concurrently (respecting queue limits)\n    const batchResults = await Promise.all(\n      batch.map(async (doc) => {\n        try {\n          const result = await queuedDocumensoRequest(async () => {\n            const pdfBlob = await openAsBlob(doc.pdfPath);\n            return client.documents.createV0({\n              title: doc.title,\n              file: pdfBlob,\n            });\n          });\n          return { title: doc.title, id: result.documentId!, error: null };\n        } catch (error: any) {\n          return { title: doc.title, id: null, error: error.message };\n        }\n      })\n    );\n\n    \u002F\u002F Record results\n    for (const result of batchResults) {\n      if (result.id) {\n        results.set(result.title, result.id);\n        console.log(`  Created: ${result.title}`);\n      } else {\n        console.error(`  Failed: ${result.title} - ${result.error}`);\n      }\n    }\n\n    \u002F\u002F Delay between batches (except for last)\n    if (i \u003C batches.length - 1) {\n      console.log(`Waiting ${config.delayBetweenBatches}ms before next batch...`);\n      await new Promise((r) => setTimeout(r, config.delayBetweenBatches));\n    }\n  }\n\n  return results;\n}\n\n\u002F\u002F Example usage\nconst results = await bulkCreateDocuments({\n  documents: [...],  \u002F\u002F Your documents\n  batchSize: 10,\n  delayBetweenBatches: 5000,  \u002F\u002F 5 seconds between batches\n});\n```\n\n## Output\n- Reliable API calls with automatic retry\n- Request queuing prevents rate limit errors\n- Bulk operations optimized for throughput\n- Idempotent requests prevent duplicates\n\n## Error Handling\n| Scenario | Response | Action |\n|----------|----------|--------|\n| 429 Rate Limited | Wait and retry | Use exponential backoff |\n| Retry-After header | Honor the value | Wait specified seconds |\n| Persistent 429 | Queue full | Reduce concurrency |\n| 503 Service Unavailable | Temporary | Retry with longer delay |\n\n## Resources\n- [Documenso Fair Use Policy](https:\u002F\u002Fdocs.documenso.com\u002Fdevelopers\u002Fpublic-api)\n- [p-queue Documentation](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- [Retry Patterns](https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fazure\u002Farchitecture\u002Fpatterns\u002Fretry)\n\n## Next Steps\nFor security configuration, see `documenso-security-basics`.\n",{"name":5,"author":52,"license":15,"version":53,"description":54,"allowed-tools":55},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Documenso rate limiting, backoff, and request throttling patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Documenso.\nTrigger with phrases like \"documenso rate limit\", \"documenso throttling\",\n\"documenso 429\", \"documenso retry\", \"documenso backoff\".\n","Read, Write, Edit","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdocumenso-pack\u002Fskills\u002Fdocumenso-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":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill documenso-rate-limits",{"tool":71,"command":72},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill documenso-rate-limits",{"tool":74,"command":75},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill documenso-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdocumenso-pack\u002Fskills\u002Fdocumenso-rate-limits\u002FSKILL.md",true,[],[80,113,148,171,197,224],{"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,34,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,41,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,165,98,166,138,167,168,169,170,34,145],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":175,"sourceHtmlUrl":176,"categories":177,"keywords":178,"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",[],[179,180,181,182,183,184,185,186,41,187,188,189,190,191,192,193,34,194,195,196,145,25],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":207,"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",[204],{"categoryNo":205,"categoryName":206,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000023","Skill与智能体开发",[208,209,210,211,212,213,214,215,216,217,218,219,220,221,34,145,222,25,223],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":225,"name":226,"nameZh":6,"description":227,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":228,"sourceHtmlUrl":229,"categories":230,"keywords":232,"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",[231],{"categoryNo":205,"categoryName":206,"taxonomyType":91,"taxonomyTypeDesc":92},[226,233,234,235,236,237,238,166,239,240,41,241,242,243,244,145,245],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]