BUNDLE Security scanned8 skills

    Shared State & Initialization Safety

    Protect shared state from lazy initialization races, lost wakeups, leaked permits, breaker transition races, quota oversubscription, optimistic-lock conflicts, transaction drift, and cache stampedes. This bundle repairs synchronization contracts rather than hiding timing failures with wider locks or retries. Use it when concurrency bugs cause duplicate initialization, missed signals, capacity leaks, stale state, or inconsistent ownership under load.

    230 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
    $48.99$69.92
    Save 30% · $20.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

    See it in action

    Repair Lazy Initialization Races

    Repair Lazy Initialization Races

    Example session with this skill installed

    Our Python asyncio application lazily initializes a shared SDK client with if client is None: client = await create_client(). When traffic starts, many requests enter at once and we see several clients created. If create_client() fails once, a quick retry burst can create another herd. There is also a config reload that clears the client while initialization may still be running. Repair locally with a fake SDK, event barriers, and a fake clock. Do not call the real provider, change client scope, or add unbounded retries.

    • Read your context and instructions
    • Compiled the repair lazy initialization

    Lazy initialization race found. Concurrent first use starts several client creations and reload can be overwritten by an older initializer. The repair introduces one initialization task per config generation, safe publication, stale-generation disposal, shared failure handling, and deterministic concurrency tests. Provider behavior remains unverified.

    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