Csv Wrangling logo

Csv Wrangling

Organization
Kilo-Org
csv-wrangling

Standard workflow order, tool selection matrix, and composition patterns for qsv CSV data wrangling

Overview

PublisherKilo-Org
Repositorykilo-marketplace
Skill namecsv-wrangling
Stars
179
Forks
168
Bundled files
Instructions only
LicenseApache-2.0
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 Kilo-Org on GitHub. Read the source before you install it.

Installation

Install the Csv Wrangling 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.
  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/Kilo-Org/kilo-marketplace.git /tmp/kilo-marketplace
mkdir -p .claude/skills
cp -r /tmp/kilo-marketplace/skills/csv-wrangling .claude/skills/csv-wrangling
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Csv Wrangling 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 Wrangling 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 Wrangling 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 Wrangling with qsv

Standard Workflow Order

Always follow this sequence when processing CSV data:

  1. Setup (Cowork) - If relative paths don't resolve, call mcp__qsv__qsv_get_working_dir and mcp__qsv__qsv_set_working_dir to sync
  2. Index - index (enables fast random access for subsequent commands)
  3. Discover - sniff (detect format, encoding, delimiter) -> headers -> count
  4. Profile - stats --cardinality --stats-jsonl (creates cache used by smart commands)
  5. Inspect - slice --len 5 (preview rows), frequency --frequency-jsonl (value distributions with cache for reuse)
  6. Transform - select, sort, dedup, rename, replace, search, sqlp, etc.
  7. Validate - validate (against JSON Schema), stats (verify results)
  8. Export - tojsonl, table, mcp__qsv__qsv_to_parquet, to (xlsx/sqlite/postgres/ods/datapackage)
  9. Document - describegpt --all (AI-generated Data Dictionary, Description & Tags)

Tool Selection Matrix

TaskBest ToolAlternativeWhen to Use Alternative
Select columnsselectsqlpNeed computed columns
Filter rowssearchsqlpComplex WHERE conditions
Sort datasortsqlpNeed ORDER BY with LIMIT
Remove duplicatesdedupsqlpNeed GROUP BY dedup
Join two filesjoinpjoinjoin for memory-constrained
Aggregate/GROUP BYsqlpfrequencyfrequency for simple counts; --frequency-jsonl creates cache
Column statsstatsmoarstatsmoarstats for extended stats
Find/replacereplacesqlpsqlp for conditional replace
Reshape wide->longtranspose --long-DuckDB UNPIVOT (external) for complex reshaping
Reshape long->widepivotpsqlpComplex pivots
Concatenate filescat rowscat rowskeyDifferent column orders
Sample rowssamplesliceslice for positional ranges
Document datasetdescribegptAI-generated Data Dictionary, Description & Tags

qsv Selection Syntax

Used by select, search, sort, dedup, frequency, and other commands:

SyntaxMeaningExample
nameColumn by nameselect "City"
1Column by 1-based indexselect 1
1,3,5Multiple columnsselect 1,3,5
1-5Range (inclusive)select 1-5
!colExclude columnselect '!SSN'
!1-3Exclude rangeselect '!1-3'
/regex/Match column namesselect '/^price/'

Common Pipeline Patterns

Clean and Deduplicate

sniff -> index -> safenames -> fixlengths -> sqlp (TRIM) -> dedup -> validate

Profile and Analyze

sniff -> index -> stats --cardinality --stats-jsonl -> read .stats.csv -> frequency (on key columns) -> sqlp (GROUP BY queries)

Before writing SQL: read .stats.csv to learn column types, cardinality, nullcount, min/max, sort order. Run frequency on columns you'll GROUP BY or filter on. Use this to write precise WHERE clauses, correct type casts, and avoid unnecessary COALESCE.

For repeated SQL queries on large CSV (> 10MB), consider converting to Parquet: sniff -> index -> stats -> to_parquet -> sqlp (using read_parquet()). Note: sqlp can query CSV of any size directly.

Join and Enrich

index (both files) -> stats (both) -> joinp -> select (keep needed columns) -> sort

Profile and Document

sniff -> index -> stats --cardinality --stats-jsonl -> describegpt --all

Convert and Export

excel (to CSV) -> index -> stats -> select -> tojsonl / qsv_to_parquet

Batch Convert to Multiple Formats

excel (to CSV) -> index -> stats -> to xlsx report.xlsx
excel (to CSV) -> index -> stats -> to sqlite report.db
excel (to CSV) -> index -> stats -> to parquet parquet_output_dir

File Integrity Verification

blake3 file.csv > checksums.b3 (before transfer) -> blake3 --check checksums.b3 (after transfer)

Delimiter Handling

  • CSV (,): default, no flag needed
  • TSV (\t): use --delimiter '\t' or file extension .tsv
  • SSV (;): use --delimiter ';' or file extension .ssv
  • Auto-detect: set QSV_SNIFF_DELIMITER=1 environment variable

Important Notes

  • Column indices are 1-based, not 0-based
  • --no-headers flag changes behavior significantly - most commands assume headers exist
  • Output goes to stdout by default; use --output file.csv to write to file
  • Many commands auto-detect .sz (Snappy compressed) files transparently
  • cat rows requires same column order; use cat rowskey for different schemas
  • dedup loads all data into memory and sorts internally; use --sorted flag if input is already sorted to enable streaming mode with constant memory
  • sort loads entire file into memory; for huge files use sqlp with ORDER BY
  • For repeated SQL queries on large CSV (> 10MB), consider converting to Parquet with mcp__qsv__qsv_to_parquet for faster performance. Parquet works ONLY with sqlp and DuckDB — all other qsv commands need CSV/TSV/SSV input

Tool Discovery

Use mcp__qsv__qsv_search_tools to discover commands beyond the initially loaded core tools. There are 55 qsv skill-based commands covering selection, filtering, transformation, aggregation, joining, validation, formatting, conversion, and more.

Operational Notes

  • Timeout: Default operation timeout is 10 minutes (configurable via QSV_MCP_OPERATION_TIMEOUT_MS, max 30 min). Allow operations to run to completion.
  • Memory: dedup, sort, reverse, table, transpose, pragmastat, and stats (with extended stats) load entire files into memory. For files >1GB, prefer extdedup/extsort via mcp__qsv__qsv_command.
  • Cowork path architecture: qsv runs on the HOST machine. File paths must be valid on the host. Always verify with mcp__qsv__qsv_get_working_dir.
  • Sequential operations: Prefer sequential over parallel qsv calls to avoid queuing delays: index → stats → analysis.
  • Large files (>5GB): Let mcp__qsv__qsv_frequency run to completion. Only fall back to mcp__qsv__qsv_sqlp with GROUP BY if the server timeout is exceeded.
  • Context window: Save outputs to files rather than returning to chat. Use mcp__qsv__qsv_slice or mcp__qsv__qsv_sqlp with LIMIT to inspect subsets.

Frequently asked questions

What does the Csv Wrangling AI skill do?

Standard workflow order, tool selection matrix, and composition patterns for qsv CSV data wrangling

Why use Csv Wrangling on TypingMind?

Because you install it once and use it with any model. Csv Wrangling 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 Wrangling in TypingMind?

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

Which AI models can use Csv Wrangling?

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 Wrangling?

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

Is the Csv Wrangling AI skill free?

Yes. It is published on GitHub by Kilo-Org under the Apache-2.0 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 👇