CSV Import Contract Repair

    by Mariusz Wrzeszczynski

    1

    Repair CSV and spreadsheet import drift across encoding, headers, mappings, types, row identity, validation, retries, partial success, and cleanup.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Repair our CSV import flow. Preview uses header names but the worker uses indices, leading to column shifts. Add idempotency to the worker and ensure the preview token binds the file hash.

    Your agent does

    Analyzed import services and BullMQ workers. Found drift in column mapping logic. Planned safe patch: unified parser profile, added file digest to confirmation token, and implemented row-level idempotency via a results ledger. Added deterministic tests for shifted headers.

    What you get

    Align preview and execution parsing logic to prevent column shifts.Bind confirmation tokens to file digests to stop stale imports.Implement idempotent row application for safe background job retries.Enforce tenant-scoped reference resolution for multi-tenant data safety.

    About this skill

    The problem

    CSV and spreadsheet imports often suffer from contract drift where preview logic, execution workers, and retry handlers interpret files differently. This leads to silent data corruption, duplicate records, and tenant-scope leaks when encoding, locales, or mapping rules vary across the stack.

    What it does

    • Identifies drift between preview parsers and background execution workers.
    • Detects encoding, delimiter, and byte-order mark (BOM) inconsistencies.
    • Adds version-binding to ensure execution matches the exact file digest and mapping confirmed by the user.
    • Implements idempotent row application to prevent duplicate writes during job retries.
    • Neutralizes dangerous formulas and external links in generated error export files.

    Frameworks & tools

    Works with repository-based import logic including pandas, openpyxl, Prisma, SQLAlchemy, BullMQ, Celery, and standard CSV parsers.

    Why this beats prompting it yourself

    Generic prompts often miss the subtle lifecycle gaps between a web-based preview and a background worker. This skill enforces a strict provenance chain from raw bytes to persisted row outcomes, ensuring local verification remains deterministic without needing production data access.

    Use cases

    • Fixing column-shift risks where headers are mapped differently in preview versus execution.
    • Standardizing locale-sensitive date and decimal parsing across heterogeneous environments.
    • Securing multi-tenant imports where referenced IDs must be resolved within strict ownership boundaries.
    • Hardening batch rollback logic to target only mutations owned by a specific import.

    Known limitations

    Does not access production databases, execute live migrations, or certify the accuracy of historical data already imported into the system.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    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 today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Popular in Workflow Automation