Csv Cleaner logo

Csv Cleaner

Community
Krusty84
csv-cleaner

Clean and normalize messy CSV/TSV files - fix malformed rows, inconsistent headers, mixed encodings, stray delimiters, and duplicated records - and deliver a valid, verified file. Use when the user mentions a broken, messy, or malformed CSV, a file a spreadsheet tool refuses to open, or asks to deduplicate or normalize tabular data. Do not use when the deliverable is analysis or a chart rather than a cleaned file, or for Excel-native features like formulas and pivot tables.

Overview

PublisherKrusty84
RepositorySKILL.md-Inspector
Skill namecsv-cleaner
Stars
43
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Krusty84 on GitHub. Read the source before you install it.

Installation

Install the Csv Cleaner AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Krusty84/SKILL.md-Inspector/tree/main/demo_skills/skills/csv-cleaner
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Krusty84/SKILL.md-Inspector.git /tmp/SKILL.md-Inspector
mkdir -p .claude/skills
cp -r /tmp/SKILL.md-Inspector/demo_skills/skills/csv-cleaner .claude/skills/csv-cleaner
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Csv Cleaner in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Csv Cleaner on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Csv Cleaner is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CSV Cleaner

Repair a malformed delimited file into one that parses cleanly, without silently losing data.

Core principle

Never destroy data silently. Every dropped row, merged duplicate, or coerced value must be counted and reported to the user at the end.

Workflow

1. Diagnose before touching anything

bash
file -i input.csv          # encoding
head -5 input.csv          # delimiter, header shape
wc -l input.csv            # row count baseline

Then attempt a strict parse (e.g. Python csv with strict=True) and record every failure with its line number. Common findings:

SymptomLikely cause
Field count varies by rowunquoted delimiter inside a value
� replacement charswrong encoding assumption (try cp1252, latin-1)
Header repeats mid-fileconcatenated exports
Rows of only commastrailing padding from export tool

2. Fix in this order

  1. Encoding → convert to UTF-8 first; everything downstream assumes it.
  2. Structural repairs → re-quote fields containing delimiters, remove repeated header rows, drop fully-empty rows.
  3. Header normalization → trim whitespace, deduplicate column names (name, name_2), only rename beyond that if the user asked.
  4. Value normalization → only what the user requested (date formats, casing, whitespace). Do not "improve" values unprompted.
  5. Deduplication → only if requested. Ask which columns define identity if it is ambiguous; exact-full-row duplicates may be merged without asking.

3. Verify — this step is not optional

Re-parse the output strictly. The job is done only when all of these hold:

  • Strict parse succeeds with zero errors
  • Every row has the same field count as the header
  • rows_in == rows_out + rows_dropped (and each dropped row is accounted for)
  • Spot-check 3 rows against the original file — values survived intact

If verification fails, fix and re-verify. Never hand over a file that did not pass.

4. Report

Tell the user: what was wrong, what was changed, exact counts (rows in / out / dropped / merged), and anything that needs their judgment. Write the result to a new file — never overwrite the original.

Edge cases

  • Huge files (>100 MB): stream row-by-row; never load into memory at once.
  • Ambiguous delimiter (commas and semicolons present): count candidate delimiters per line across a sample; the one with a consistent count wins. If neither is consistent, ask the user.
  • No header row: confirm with the user before inventing column names.
  • Numeric-looking IDs with leading zeros: treat as strings; flag if asked to convert to numbers.

Frequently asked questions

What does the Csv Cleaner AI skill do?

Clean and normalize messy CSV/TSV files - fix malformed rows, inconsistent headers, mixed encodings, stray delimiters, and duplicated records - and deliver a valid, verified file. Use when the user mentions a broken, messy, or malformed CSV, a file a spreadsheet tool refuses to open, or asks to deduplicate or normalize tabular data. Do not use when the deliverable is analysis or a chart rather than a cleaned file, or for Excel-native features like formulas and pivot tables.

Why use Csv Cleaner on TypingMind?

Because you install it once and use it with any model. Csv Cleaner is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Csv Cleaner in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Krusty84/SKILL.md-Inspector/tree/main/demo_skills/skills/csv-cleaner. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Csv Cleaner?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Csv Cleaner?

As many as you like. As long as a model supports skills, you can use Csv Cleaner with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Csv Cleaner AI skill free?

Yes. It is published on GitHub by Krusty84 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇