Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

csvtk

$ csvtk Community Low Risk
Shen Wei · Database & Data · MIT · macos / linux / windows

csvtk is a single-binary Go toolkit with 35+ subcommands (dim, summary, freq, join, filter2, csv2json, pretty) for high-throughput CSV/TSV wrangling, supporting multi-core processing, gzipped inputs, and header-name selection.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install csvtk
CLI vs MCP Decision CLI Only

Performs fast Go-native CSV joins, grouped summaries, and csv2json conversions locally without Python dependencies.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Provides csv2json, --tabular output on dim/stats, field-name addressing (-f), clean exit codes, and non-interactive streaming.

  • Supports csvtk csv2json and csvtk dim --tabular
  • Zero interactive prompts
Trust & Safety 24 / 25

Read-only stdout processing by default; only writes files when -o (--out-file) is explicitly supplied.

  • Stdout default; explicit -o required for file writes
Setup & Portability 15 / 15

Single static Go binary across macOS, Linux, and Windows with built-in .gz/.xz/.zst transparent decompression.

  • Static Go binary (brew install csvtk)
Utility & Efficiency 13 / 15

Fast multi-threaded CSV/TSV joins, frequency tables (freq), grouped summary, and plot subcommands.

  • 35+ subcommands covering joins, stats, and conversion
Maintenance & Lineage 8 / 10

Actively maintained by Shen Wei (shenwei356/csvtk) under MIT license.

  • Active shenwei356/csvtk GitHub repository
Docs & Verifiability 7 / 10

Detailed usage docs and subcommand examples on bioinf.shenwei.me/csvtk.

  • Subcommand docs and --help flags

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates purely on local CSV/TSV files and stdin/stdout.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# csvtk Agent Rules
- Check `csvtk dim --tabular` and `csvtk headers` before printing full CSV tables.
- Pass `-t` for TSV inputs and `-o <file>` when writing outputs; omit `-o` to stream safely to stdout.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect CSV row/column dimensions
csvtk dim --tabular data.csv

Reports row and column counts in clean tabular output without dumping file contents.

Convert CSV rows to structured JSON
csvtk csv2json -n data.csv

Converts CSV records to JSON while parsing numeric columns cleanly via -n (--parse-num).

Controlled Writes & Previews

Join two CSV files by key column
csvtk join -f id a.csv b.csv -o joined.csv

Performs an inner join on column id and writes the merged table to joined.csv.

Strengths for Agents

  • + Zero-dependency static Go binary handles gzipped/zstd CSVs directly.
  • + csvtk csv2json and csvtk dim --tabular integrate smoothly into JSON-centric agent pipelines.
  • + Significantly faster than Python csvkit on large tables.

Caveats & Pitfalls

  • ! Requires -t explicitly for tab-separated (.tsv) input unless configured.
  • ! Only csv2json outputs JSON; analytical commands (summary, freq) output CSV/TSV.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI