BUNDLE Security scanned8 skills

    Resource Finalization & Shutdown

    Close every owned task, descriptor, permit, process, buffer, iterator, and orphan during normal completion, failure, cancellation, and service shutdown. This bundle repairs finalization ordering across async producers and finite runtime resources without masking the first error. Use it when an application stops accepting work but hangs, loses buffered output, leaks handles, or leaves work alive after shutdown reports success.

    211 views

    Works with every agent that reads SKILL.md — Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Windsurf, OpenClaw, and more.

    ToolForge Labs
    Created by
    ToolForge Labs
    $51.99$71.92
    Save 28% · $19.93

    One payment, lifetime access. 8 skills unlock instantly in your library.

    30-day refund guarantee

    Instant unlock in your library

    Free updates from the creator

    What's included

    8 skills
    1/8
    Repair Async Generator Cleanup Bugs

    Repair async-generator cleanup leaks after early break, return, throw, timeout, cancellation, or pending-next races.

    View skill
    $8.99$6.50Save 28%
    2/8
    Repair Child Process Reaping Bugs

    Repair zombie children, kill-without-wait paths, double wait races, orphaned descendants, blocked subprocess pipes, and shutdown hangs.

    View skill
    $8.99$6.50Save 28%
    3/8
    Repair File Descriptor Leaks

    Repair file descriptor and handle leaks from files, streams, watchers, pipes, subprocesses, early returns, retries, errors, and cancellations.

    View skill
    $8.99$6.50Save 28%
    4/8
    Repair Semaphore Permit Leaks

    Repair semaphore permit leaks and over-release bugs across exceptions, cancellation, timeouts, task submission, and shutdown.

    View skill
    $8.99$6.50Save 28%
    5/8
    Repair Thread Pool Starvation

    Repair thread-pool starvation from nested waits, callback affinity, fan-out, or shutdown competition without adding capacity.

    View skill
    $8.99$6.50Save 28%
    6/8
    Repair Buffered Flush Loss

    Repair missing flushes, ignored finalization errors, close-order inversions, premature success, and buffered output lost before it reaches the intended sink.

    View skill
    $8.99$6.50Save 28%
    7/8
    Stop Data Loss During Shutdown

    Repair apps that lose jobs, events, or writes when containers restart, deployments roll, or processes receive termination signals.

    View skill
    $8.99$6.50Save 28%
    8/8
    Orphaned Resource Reconciler

    Safely detect, verify, quarantine, and clean up orphaned cloud resources after failed provisioning, deletions, or database drift.

    View skill
    $8.99$6.50Save 28%

    See it in action

    Repair Async Generator Cleanup Bugs

    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 install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 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 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

    Frequently asked questions

    More bundles from ToolForge Labs