Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Repair Buffered Flush Loss

    1

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

    $2.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Buffered Flush Loss

    Repair Buffered Flush Loss

    Example session with this skill installed

    Our Go export service stacks gzip.Writer over bufio.Writer over a file. The handler writes all NDJSON rows and returns success, but it defers closes in the wrong order and ignores both gzip.Close() and bufio.Flush() errors. Large exports sometimes miss the trailer or final rows; tiny fixtures often pass. Repair locally with fake failing writers and ordering assertions. Do not touch production storage, add fsync, change the export format, or claim that a successful flush means the file is durably persisted.

    • Read your context and instructions
    • Compiled the repair buffered flush

    Buffered finalization bug found. The repair centralizes writer ownership, finalizes outer wrappers before inner close, propagates flush/close failures, and blocks false success without claiming durability.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Buffered writers can report successful writes while bytes are still only in memory. Compression wrappers may require a final trailer, inner sinks may close too early, and finalization errors can disappear if success is acknowledged first.

    Repair Buffered Flush Loss maps the writer stack, gives finalization one owner, propagates Flush/Close errors, prevents premature success, and proves ordering with deterministic failing-sink fixtures.

    It does not claim flush equals fsync, disk durability, or remote receipt.

    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 this skill 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 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

    Listed1 month ago

    What's inside

    Frequently Asked Questions