- Home
- Skills
- APIs & Backend
- Repair Multipart Boundary Bugs
Works with the AI Agents you already use
Repair Multipart Boundary Bugs
Repair multipart parser and encoder bugs involving quoted boundaries, split delimiters, CRLF framing, nested parts, filename parameters, size limits, premature EOF, and cleanup.
$1
Repair Multipart Boundary Bugs
Example session with this skill installed
Our Rust multipart parser misses a closing boundary when it is split across three reads and occasionally truncates binary data containing a boundary prefix. Repair with generated byte fixtures and every chunk split. Preserve limits, filename sanitation, accepted syntax, temp-file cleanup, and error types.
- Read your context and instructions
- Compiled the repair multipart boundary
Streaming delimiter defect found. The parser discards an incomplete boundary prefix at buffer rollover and accepts prefix matches without verifying legal CRLF/closing suffixes. The repair retains the minimal overlap window, validates full delimiter framing, preserves every size/header/filename rule, and exhaustively tests all chunk splits, binary near-matches, premature EOF, cancellation, and single-owner temporary-file cleanup.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Large file uploads fail intermittently when boundaries are split across streaming chunks or when binary data mimics boundary prefixes. These bugs often lead to truncated files, unhandled temporary file leaks, and hard-to-reproduce parsing errors in production.
What it does
- Identifies state machine failures in multipart/form-data and MIME parsing logic.
- Repairs boundary overlap handling and CRLF framing to prevent premature part truncation.
- Implements deterministic chunk-split test matrices to verify streaming stability.
- Fixes resource lifecycle management to ensure temporary files are cleaned up after cancellation or malformed input.
- Corrects handling of quoted boundary parameters and nested parts without weakening validation policy.
Frameworks & tools
Works with repository-level streaming parsers, HTTP servers, and MIME encoders. Compatible with languages using local file systems and standard networking libraries.
Why this beats prompting it yourself
Parsing multipart streams is notoriously edge-case heavy, especially when boundaries split across byte buffers. This skill enforces a rigorous state machine audit and ownership register, ensuring you don't just fix one symptom while leaving resource leaks or concurrency race conditions behind.
Use cases
- Fixing uploads that crash only at specific chunk sizes or network speeds.
- Preventing binary payloads from being misinterpreted as closing delimiters.
- Auditing multipart parsers for quoted boundary and preamble compliance.
- Automating the cleanup of orphaned temp files during failed streaming transfers.
Known limitations
This skill cannot fix issues requiring production service access or live secret rotation. It does not replace correctness with increased timeouts or catch-all error suppression.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
Cannot choose or change upload size/count limits, accepted syntax, filename sanitation, storage, cancellation, cleanup, and public errors; cannot verify production infrastructure or prove every runtime, proxy, network, or scheduler ordering.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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 2 months ago
Permissions
Run on a clean branch with repository files and disposable local fixtures. Review every patch and validation result before merge. Keep production services, real credentials, customer payloads, and deployment out of scope.