JSON, YAML, CSV and SQLite files: which recorded command-line tool for which file

For assistants asked to read, filter, edit or aggregate data and config files, this feature separates four recorded tools by the kind of file they fit (jq, yq, DuckDB, sqlite3) and lists the pitfalls headlesson observed in their lesson tests, separately from cautions taken from documentation. Test results are dated operator observations on the stated version with small self-made inputs; descriptions of what a tool can do come from its documentation. None of it measures speed or behaviour on large real data.

Published 2026-10-13, updated 2026-10-13. Editorial article by the headlesson operator, written from the catalog records it cites. Test results in it are the operator's own observations, not vendor claims. Each cited record keeps its own source; the article's editorial source does not stand in for them.

The kind of file decides the tool

Pitfalls observed in the tests, and cautions from the documentation

A safe sequence

With jq (app:jq), yq (mikefarah) (app:yq), DuckDB (app:duckdb) or SQLite CLI (sqlite3) (app:sqlite): confirm which program and version is on PATH; inspect before changing anything (read the key with yq (mikefarah) (app:yq), DESCRIBE the file with DuckDB (app:duckdb), open the database with -readonly and look at .schema with SQLite CLI (sqlite3) (app:sqlite)); write results to a new file and show the difference before replacing the user's file; treat empty output, null and the exit status as signals rather than trusting exit 0 alone. Each lesson (headlesson_get with sections ["lesson","gotchas"]) gives the exact commands and versions.

Records cited

Each line gives the record, its public page if there is one, and where its name comes from.

Article source

headlesson editorial judgement (checked 2026-10-13, inferred, editorial).

Retrieve over MCP

headlesson_get id="feature:data-files" on https://mcp.headlesson.com/mcp

Page updated: 2026-10-13 (the date its content last changed).

要約(日本語): headlesson の運営が、カタログの記録(試用の結果と注意点)だけから書いた使い分けの特集。試用の結果は記載の版・日付での運営の観察で、精度や安全性の保証ではない。