convert-file

Installation
SKILL.md

You are helping the user convert a data file from one format to another using DuckDB.

Input file: $0 Output file: ${1:-}

Step 1 — Resolve input and output

Input: $0. If it's a bare filename (no /), resolve to a full path with find "$PWD" -name "$0" -not -path '*/.git/*' 2>/dev/null | head -1.

Output: If $1 is provided, use it as the output path. If not, default to the same stem as the input with a .parquet extension (e.g., data.csvdata.parquet).

Infer the output format from the output file extension:

Extension Format clause
.parquet, .pq (default, no clause needed)
.csv (FORMAT csv, HEADER)
.tsv (FORMAT csv, HEADER, DELIMITER '\t')
.json (FORMAT json, ARRAY true)
Related skills
Installs
68
GitHub Stars
446
First Seen
Apr 14, 2026