- Home
- Skills
- Data & Databases
- CleanCSV — Formula Injection & Encoding Preflight
Works with the AI Agents you already use
CleanCSV — Formula Injection & Encoding Preflight
by Conver Man
Audit CSV/TSV files for Excel formula injection (=,+,-,@), fix delimiter/BOM issues, and flag ragged rows locally.
Free
CleanCSV — Formula Injection & Encoding Preflight
Example session with this skill installed
Audit vendor-export.csv (semicolon-delimited) for spreadsheet formula injection triggers, preserve negative numbers, flag ragged rows, and save a UTF-8 BOM CSV.
- Read your context and instructions
- Compiled the cleancsv
CleanCSV Preflight Audit Summary
- Detected Delimiter:
;-> UTF-8 BOM,CSV - Formula-Injection Triggers Neutralized: 2 (
'=cmd|calc,'+1+1)
SKU,Title,Balance,Notes
A-101,USB-C Hub,-42.50,'=cmd|calc
A-102,HDMI Cable,19.99,'+1+1
Next steps
- Need HTML table extraction? Try CleanTable — HTML Table, Grid & List Extractor ($5).
Connects securely to your tools. The creator never sees your data.
About this skill
Dirty CSV files break importers and compromise security through formula injection. This skill provides a deterministic audit and sanitization workflow to prepare data for Excel, Google Sheets, or CRM platforms. It eliminates encoding issues and structural inconsistencies that cause silent data corruption during ingestion.
What it does
- Formula injection defense: Detects and neutralizes dangerous leading characters like
=,+,@, and\twhile preserving numeric data. - Encoding normalization: Converts files to UTF-8 with BOM to ensure compatibility across Windows and macOS spreadsheet applications.
- Delimiter detection: Automatically sniffs and standardizes comma, semicolon, tab, or pipe delimiters.
- Structural validation: Identifies ragged rows, column count mismatches, empty columns, and duplicate headers.
- Sanitized output: Generates a cleaned CSV file alongside a detailed markdown preflight report.
How it works
- Analyze input: Run the provided Python script against a raw CSV or TSV file to detect structural and security flaws.
- Review report: Examine the generated preflight markdown to see specific counts of neutralized formulas and row mismatches.
- Verify JSON: Check the optional JSON summary for automated integration or programmatic validation checks.
- Deploy clean data: Use the sanitized UTF-8 output for secure import into downstream applications or LLM contexts.
Why this beats prompting it yourself
Standard LLM prompts often fail at high-volume data cleaning, either hallucinating cell values or missing subtle injection triggers like tab characters. This skill uses deterministic Python logic to ensure 100% data integrity without the token limits or non-deterministic risks of raw prompting.
Use cases
- Secure CRM imports: Clean lead lists before uploading to Salesforce or HubSpot to prevent spreadsheet exploits.
- Data preprocessing: Prepare messy CSV exports for RAG pipelines or vector database ingestion.
- Cross-platform sharing: Fix encoding bugs when moving data between Windows Excel and macOS Numbers.
- Audit reports: Generate compliance-ready preflight summaries for data migration tasks.
Known limitations
The script requires a Python 3 environment. It focuses on structural and injection audits rather than semantic data cleaning or deduplication.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Requires Python 3. Does not perform semantic data cleaning, deduplication, or complex data transformation beyond sanitization and normalization.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
- Software
Python
CleanCSV deterministically audits and sanitizes messy CSV or TSV files before opening in Excel, Google Sheets, CRM importers, or LLM workflows. - Formula injection neutralization (=, +, -, @, tab, CR) preserving negative numbers - Auto delimiter detection (, ; \t |) and UTF-8 BOM CSV output - Ragge