- Home
- Skills
- Agents & Orchestration
- Repair Double Completion Races
Works with the AI tools you already use
Repair Double Completion Races
Repair double completion, duplicate callbacks, timeout/cancel races, stale retry callbacks, duplicate response writes, and cleanup running twice.
$8.99
Repair Double Completion Races
Example session with this skill installed
Our Node/TypeScript payment-status wrapper converts a callback SDK into a Promise. We start a timeout timer, register an AbortSignal listener, and call the SDK. If the timeout fires first we reject and release a semaphore permit, but the SDK callback can arrive later and release the permit again. In one path the callback also invokes an onComplete hook after the timeout. Repair locally with fake clocks and deterministic callback barriers. Do not call production, change payment semantics, or assume a timeout means the partner did not process the request.
- Read your context and instructions
- Compiled the repair double completion
Double-completion race found. Timeout, abort, and SDK callback can all settle one operation and release the same semaphore. The repair centralizes terminal ownership, makes cleanup exactly-once locally, fences late callbacks, and preserves unknown external outcome after timeout.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
Async operations often have several ways to finish: callback, timeout, cancellation, socket close, retry completion, or response commit. Without one terminal owner, two paths can settle the same promise/future, invoke user callbacks twice, release resources twice, or let an old retry attempt complete newer work.
Repair Double Completion Races maps every completion source, introduces a single terminal state transition and generation fencing, makes late completions observable and side-effect-free, and proves the repair with deterministic fake-clock/barrier tests.
It does not alter business retry semantics or pretend timeout/cancellation proves an external operation did not happen.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
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
Trust & safety
Security scanned
Verified clean 1 month ago
- Passed all security checks, Safe to install