Agent skill · software engineering · jeremylongshore
documenso-performance-tuning
Optimize Documenso integration performance with caching, batching, and
Why this skill is useful
Adds specific caching and batching patterns for optimizing Documenso API performance that the AI wouldn't reliably generate on its own.
What it needs
Requires node-cache, p-queue installed locally. Requires documenso account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Documenso Performance Tuning Output A measured performance change with document/signing lifecycle, authorization, audit, and reliability guardrails. A reversible change record with aggregate metrics, owner, threshold, and rollback decision. Examples Measure synthetic-document workflow latency, throughput, error rate, and callback completion in staging, change one approved capacity/cache/concurrency setting, and compare against baseline. Revert if signing state, authorization, audit, or error behavior regresses; do not use real documents or weaken controls to improve a benchmark. Overview Optimize Documenso integrations for speed and efficiency. Key strategies: reduce API round-trips with templates, cache document metadata, batch operations with concurrency control, and use async processing for bulk signing workflows. Prerequisites Working Documenso integration Redis or in-memory cache (recommended) Completed documenso-sdk-patterns setup Instructions Step 1: Reduce API Calls with Templates The biggest performance win: templates reduce a multi-step document creation (create + upload + add recipients + add fields + send = 5+ calls) to just 2 calls (create from template + send). Step 2: Cache Document Metadata Step 3: Batch Operations with Concurrency Control Step 4: Async Processing with Background Jobs Step 5: Efficient Pagination Performance Targets Operation Target If Exceeded ----------- -------- ------------- Single document create < 500ms Check network latency Template create + send < 1s Normal for template workflow Batch of 100 documents < 30s Use concurrency 5-10 Document list (page) < 300ms Add caching layer Webhook processing < 100ms Process async, respond 200 immediately Error Handling Performance Issue Cause Solution ------------------ ------- ---------- Slow responses No connection reuse Use singleton client pattern Rate limit errors Too many concurrent calls Use p-queue with concurrency cap Memory issues Loading all documents Use async generator paginatio …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/documenso-performance-tuning--15a084