convert-file
Convert any data file to another format: CSV, Parquet, JSON, Excel, GeoJSON, and more.
Skill by duckdb
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/duckdb-convert-file
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/convert-file
Tools it pre-approves 1
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash
What's inside
- Skill 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.
- License
- MIT
- Allowed tools
- Bash
- Instructions
- 61 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
Files (1)
- SKILL.md
SKILL.md (first lines)
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.
```bash
duckdb -c "
<EXTENSION_LOADS>
COPY (FROM '<INPUT_PATH>') TO '<OUTPUT_PATH>' <FORMAT_CLAUSE>;
"
```
For remote inputs (`s3://`, `https://`, etc.), prepend the same protocol setup as `read-file`:
| Protocol | Prepend |
|---|---|
| `s3://` | `LOAD httpfs; CREATE SECRET (TYPE S3, PROVIDER credential_chain);` |
| `gs://` / `gcs://` | `LOAD httpfs; CREATE SECRET (TYPE GCS, PROVIDER credential_chain);` |
| `https://` / `http://` | `LOAD httpfs;` |
**If the user mentions partitioning** (e.g., "partition by year"), add `PARTITION_BY (col)` to the format clause. This only works with Parquet and CSV output.
**If the user mentions compression** (e.g., "use zstd"), add `CODEC 'zstd'` for Parquet output.
## Step 3 — Report
On success, report:
- Input file and detected format
- Output file, format, and size (`ls -lh`)
- Row count if quick to compute
On failure:
- **`duckdb: command not found`** → delegate to `/duckdb-skills:install-duckdb`
- **Missing extension** → install it and retry
- **Input parse error** → suggest the user check the input format or try `/duckdb-skills:read-file` first to inspect itFrom duckdb/duckdb-skills, MIT.
More from duckdb/duckdb-skills
- 0.638score
spatial
duckdb
Answer questions about spatial data using DuckDB.
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
s3-explore
duckdb
Explore and query data on S3, Cloudflare R2, GCS, MinIO, or any S3-compatible storage.
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
read-file
duckdb
Read any data file (CSV, JSON, Parquet, Avro, Excel, spatial, SQLite) or remote URL (S3, HTTPS).
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
read-memories
duckdb
Search past Claude Code session logs to recall prior decisions, patterns, or unresolved work.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
query
duckdb
Run SQL queries against the attached DuckDB database or ad-hoc against files.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
duckdb-docs
duckdb
Search DuckDB and DuckLake documentation and blog posts.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
install-duckdb
duckdb
Install or update DuckDB extensions.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
attach-db
duckdb
Attach a DuckDB database file for use with /duckdb-skills:query.
SkillDFreshness: D★ 610Claude Code +9
Signals
- Stars
- 610
- Forks
- 37
- Open issues
- 4
- Last commit (this folder)
- Apr 7, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/duckdb/duckdb-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from duckdb
- 0.638score
spatial
duckdb
Answer questions about spatial data using DuckDB.
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
s3-explore
duckdb
Explore and query data on S3, Cloudflare R2, GCS, MinIO, or any S3-compatible storage.
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
read-file
duckdb
Read any data file (CSV, JSON, Parquet, Avro, Excel, spatial, SQLite) or remote URL (S3, HTTPS).
SkillDFreshness: D★ 610Claude Code +9 - 0.632score
read-memories
duckdb
Search past Claude Code session logs to recall prior decisions, patterns, or unresolved work.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
query
duckdb
Run SQL queries against the attached DuckDB database or ad-hoc against files.
SkillDFreshness: D★ 610Claude Code +9 - 0.547score
duckdb-docs
duckdb
Search DuckDB and DuckLake documentation and blog posts.
SkillDFreshness: D★ 610Claude Code +9
Cite this page
convert-file skill. Agent Mart. https://agentmart.dev/skills/duckdb-convert-file (last updated 2026-10-24)