Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 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.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity 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.

    What you get

    Resolve truncated files caused by missing compression trailers.Enforce error propagation for failed Flush and Close operations.Fix close-order inversions in nested stream wrappers.Implement deterministic tests for buffer-threshold edge cases.

    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 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 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
    Updated1 month ago

    What's inside

    Frequently Asked Questions