convert-file

Convert data files between formats using DuckDB COPY statements.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-extensions --skill convert-file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convert-file
Source: https://github.com/nq-rdl/agent-extensions/tree/main/skills/duckdb/convert-file
Command: npx skills add https://github.com/nq-rdl/agent-extensions --skill convert-file

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert data files between formats to enable interoperability and reduce manual reformatting across data pipelines.

Core Features & Use Cases

  • Convert common data formats (CSV, Parquet, JSON, Excel, GeoJSON) using DuckDB's SQL engine.
  • Infer output format from the destination file extension and handle both local and remote inputs.
  • Use cases include exporting transformed datasets to a different format for analytics, sharing, or archival.

Quick Start

Provide an input file path and an optional output path to automatically convert the file to the inferred or specified format.

Frequently Asked Questions about convert-file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a CSV file to Parquet or JSON format?

To convert a CSV file to Parquet or JSON, you provide an input file path and an optional output path, and DuckDB's SQL engine handles the format conversion automatically using format-aware COPY statements based on the destination file extension.

Can I convert remote data files or do I need to download them first?

You can convert remote data files directly without downloading them first. The conversion process supports both local and remote inputs, applying DuckDB format-aware COPY statements to read and export datasets across formats like CSV, Parquet, JSON, and Excel.

What is the best way to convert Excel files to CSV for data pipelines?

The best way to convert Excel files to CSV is using DuckDB's SQL engine, which infers the output format from the destination file extension and handles the export seamlessly to reduce manual reformatting across data pipelines.

Does DuckDB support GeoJSON conversion alongside formats like Parquet and JSON?

Yes, DuckDB supports GeoJSON conversion alongside CSV, Parquet, JSON, and Excel formats. It requires appropriate DuckDB extensions to be enabled, allowing you to import, transform, and export datasets across these common formats.

Why convert data files to Parquet format for analytics workflows?

Converting data files to Parquet format for analytics workflows enables interoperability and reduces manual reformatting. Parquet is optimized for analytical queries, making it ideal for exporting transformed datasets for sharing, archival, or downstream analysis.