Convert file
Convert any data file to another format: CSV, Parquet, JSON, Excel, GeoJSON, and more.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: convert-file
description: >
Convert any data file to another format: CSV, Parquet, JSON, Excel, GeoJSON, and more.
Use when the user says "convert to parquet", "save as xlsx", "export as JSON", "make this a CSV",
"turn into parquet", or any variation of format-to-format conversion for data files.
Also triggers when the user wants to write Parquet, Excel, or other binary formats that Claude cannot produce natively.
argument-hint: <input-file> [output-file]
allowed-tools: Bash
---
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.csv` → `data.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)` |
| `.jsonl`, `.ndjson` | `(FORMAT json, ARRAY false)` |
| `.xlsx` | `(FORMAT xlsx)` — requires `INSTALL excel; LOAD excel;` |
| `.geojson` | `(FORMAT GDAL, DRIVER 'GeoJSON')` — requires `LOAD spatial;` |
| `.gpkg` | `(FORMAT GDAL, DRIVER 'GPKG')` — requires `LOAD spatial;` |
| `.shp` | `(FORMAT GDAL, DRIVER 'ESRI Shapefile')` — requires `LOAD spatial;` |
## Step 2 — Convert
Run a single DuckDB command. Prepend extension loads as needed based on both the input and output formats.
...From duckdb's repository, MIT licence.
Related skills
-
Checked
Spreadsheet formula explainer
Explains a tangled spreadsheet formula step by step and rebuilds it with helper columns anyone can follow.
7/101 credit -
Checked
Excel file builder
Creates and edits Excel files whose formulas carry their values, so totals show in every viewer and preview.
8/101 credit -
Checked
Spreadsheet audit
Opens your actual spreadsheet, traces formulas and ranks the errors, so you know it is safe to present.
7/101 credit -
Checked
Spreadsheet fixer
Fixes broken formulas, builds Excel files with charts and automates Google Sheets, all from a plain request.
9/101 credit -
Checked
Google Sheets automation
Builds Google Apps Script menus, triggers, sidebars and email batches, so repeat Sheets work runs itself.
8/101 credit -
Checked
CSV and Excel merging
Merges, stacks and dedupes CSV and Excel files into one clean table, then checks the row counts add up.
7/101 credit