xsv
Fast CSV/TSV processing with xsv - select, search, slice, sort, join, stats, frequency, and indexing for large delimited files. Use when processing CSV-shaped…
от lanej★ 41 звезда на GitHub
Установить xsv в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
xsv
Per-command flags work as documented (xsv <cmd> --help). This file covers tool selection and the
streaming-vs-in-memory distinction, which is what actually determines whether a pipeline finishes.
Reach for xsv when
The data is CSV/TSV-shaped and the job is selection, filtering, joining, or summary statistics.
Faster and less ceremony than loading pandas. For anything needing SQL (GROUP BY, windows,
multi-way joins), switch to duckdb. For Excel formats, formulas, formatting, or multiple sheets,
use xlsx — xsv has none of those.
Always start with headers
xsv headers data.csv
Column-name errors are the most common failure; check the structure before writing a pipeline.
Streaming vs. in-memory — the thing that matters
Streaming (safe on files of any size): select, search, slice, headers, cat, fmt,
count (with an index).
Loads the whole file: sort, table, frequency, stats --median, stats --mode.
On a large file, sample or slice before an in-memory command:
xsv sample 100000 huge.csv | xsv stats --everything
Index large files once
xsv index large.csv
Makes count O(1), gives slice and sample direct access, and enables parallel stats -j 0.
Pipelines, not temp files
xsv select Name,Age data.csv | xsv search -s Age "^[3-9]" | xsv table
xsv sort -s Revenue -N -R customers.csv | xsv slice -l 10 | xsv table # top 10
Each -o temp.csv hop re-reads and re-parses; chaining keeps it streaming.
Delimiters
-d reads, -t writes — so fmt is the format converter:
xsv select 1,3 -d '\t' data.tsv # read TSV
xsv fmt -t '\t' data.csv -o data.tsv # write TSV
record has different length
Ragged rows. Normalize first: xsv fixlengths data.csv -o fixed.csv.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл xsv?
Fast CSV/TSV processing with xsv - select, search, slice, sort, join, stats, frequency, and indexing for large delimited files. Use when processing CSV-shaped data on the command line with filtering, joining, or summary statistics. Prefer over pandas or awk for CLI-based CSV work. Don't use for Excel formats, multi-sheet data, or complex SQL queries — use xlsx for Excel, duckdb for SQL operations.
Как установить скилл xsv?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xsv запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…