More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair Partial Read Truncation Bugs

    1

    Repair partial reads, truncated frames, stream-chunk/message confusion, early EOF acceptance, and stale decoder state.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Partial Read Truncation Bugs

    Repair Partial Read Truncation Bugs

    Example session with this skill installed

    Our Go TCP client reads a 4-byte length header with conn.Read(header) once, then allocates the payload and calls conn.Read(payload) once. Under packet fragmentation we occasionally decode truncated protobuf messages. Repair locally with a deterministic fragmenting reader and loopback sockets. Preserve the existing frame format and maximum-frame setting. Do not connect to production or invent new framing.

    • Read your context and instructions
    • Compiled the repair partial read

    Partial-read bug found. Header and payload readers assume one read returns the requested length. The repair uses exact-length reads, explicit truncation errors, preserves the existing frame limit, and adds deterministic fragmented/coalesced input tests.

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

    About this skill

    A read call is not a message boundary. TCP, TLS, files, and async streams may return fewer bytes than requested, split one frame across many chunks, or coalesce several frames together. Code that assumes one read returns everything can silently feed truncated data into parsers.

    This skill fixes exact-length reads and incremental framing, distinguishes clean EOF from truncation, preserves bounded streaming, and adds deterministic fragmentation/coalescing tests.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Cannot infer undocumented framing rules, prove remote peer correctness, determine production fragmentation patterns, or define retry safety without an existing contract.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Use generated bytes, loopback sockets, temp files, and deterministic fragmenting readers on a clean branch. Keep production traffic and customer files out of scope.

    Listed3 months ago
    Updated18 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies and replaces unsafe 'read' or 'recv' calls with robust loop-until-complete logic to handle TCP fragmentation, packet coalescing, and slow stream inputs.

    It is compatible with any AI agent that has 'Read', 'Edit', and 'Bash' capabilities, allowing it to analyze and refactor code across C/C++, Rust, Go, Python, and Node.js repositories.

    Unlike generic prompts, this skill enforces a strict 'Canonical Read Contract' and ensures your parsers handle partial headers and state resets without creating security risks like unbounded buffering.

    You receive the full skill logic, instructions for your AI agent, and a suite of deterministic fragmentation tests to verify the fixes in your local environment.

    Yes, it specializes in reconstructing framed protocol decoders to ensure they maintain state correctly across fragmented packets rather than crashing on partial data.

    The skill operates entirely on your local source files and test fixtures; it does not require access to your production traffic or live network endpoints.

    New in Agents & Orchestration