Streaming Export & Cursor Integrity
Protect paged and streaming exports from cursor leaks, pagination drift, partial reads, lost flushes, unsafe replacement, and inconsistent snapshots. This bundle joins async-generator cleanup with exact byte and record integrity from query through final file publication. Use it when large exports work normally but truncate, duplicate, omit, or retain resources after timeout, cancellation, retry, or concurrent updates.
Works with every agent that reads SKILL.md — Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Windsurf, OpenClaw, and more.
One payment, lifetime access. 8 skills unlock instantly in your library.
What's included
8 skillsRepair async-generator cleanup leaks after early break, return, throw, timeout, cancellation, or pending-next races.
Repair API pagination contract drift in a repo using Cursor.
Repair APIs where users see duplicate, missing, or reordered records while paging through changing data.
Repair long-running exports that produce missing, duplicate, mixed-version, or inconsistent rows when source data changes mid-run.
Repair partial reads, truncated frames, stream-chunk/message confusion, early EOF acceptance, and stale decoder state.
Repair missing flushes, ignored finalization errors, close-order inversions, premature success, and buffered output lost before it reaches the intended sink.
Repair atomic file replacement bugs that expose partial content, cross filesystems, lose metadata, or overstate durability.
Repair bulk APIs, imports, and workers where one failed item hides successful work or triggers unsafe full retries.
See it in action
Repair Async Generator Cleanup Bugs
Example session with this skill installed
Our TypeScript service wraps a broker subscription in two async-generator adapters. Breaking from for-await closes the outer generator, but the inner subscription keeps receiving messages and its heartbeat timer survives. A pending next() can also resolve after cancellation and publish one more value. Repair locally with a fake subscription and controlled promises. Preserve message order, buffer size, retry behavior, and timeout values; do not connect to the broker.
- Read your context and instructions
- Compiled the repair async generator
Cleanup leak found. The adapter forwards next but not return, so breaking from for-await leaves the source producer and subscription alive. The repair forwards all terminal operations, makes finalization single-owner, cancels the pending read, preserves the original error, and verifies that no value or resource survives termination.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs these skills for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every skill in this bundle passes our trust checks.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back