
Duckdb En
- 17 installs
- 82 repo stars
- Updated August 2, 2026
- aaaaqwq/claude-code-skills
duckdb-en is a Claude Code skill that acts as a DuckDB CLI reference for SQL analysis, data processing, and file conversion across CSV, Parquet, and JSON.
About
This Claude Code skill is a DuckDB CLI reference for SQL analysis, data processing, and file conversion. It shows how to query CSV, Parquet, and JSON files directly, convert between formats, use output flags and dot commands, and pipe data through stdin/stdout. A developer uses it for quick command-line data analysis and format conversion.
- DuckDB CLI reference for SQL analysis over CSV, Parquet, and JSON files directly
- Data conversion recipes between CSV, Parquet, and JSON via COPY statements
- Covers CLI flags, dot commands, 18 output formats, and stdin/stdout piping
Duckdb En by the numbers
- 17 all-time installs (skills.sh)
- Ranked #575 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
duckdb-en capabilities & compatibility
Free; DuckDB is open source and runs locally
- Capabilities
- sql query · file conversion · csv analysis · parquet analysis · json analysis
- Use cases
- data analysis · database
- Platforms
- macOS · Linux
- Pricing
- Free
What duckdb-en says it does
DuckDB CLI specialist for SQL analysis, data processing and file conversion.
Helps with data analysis, SQL queries and file conversion via DuckDB CLI.
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill duckdb-enAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 17 |
|---|---|
| repo stars | ★ 82 |
| Last updated | August 2, 2026 |
| Repository | aaaaqwq/claude-code-skills ↗ |
What it does
Run SQL analysis and convert CSV, Parquet, and JSON files from the command line using the DuckDB CLI.
Who is it for?
Developers doing quick command-line SQL analysis and file conversion with DuckDB
Skip if: Building a persistent multi-user database service; this is a CLI analysis reference
When should I use this skill?
You need to run SQL over CSV/Parquet/JSON files or convert between those formats with DuckDB
What you get
SQL query results and converted data files produced from the DuckDB command line
- SQL query results
- Converted data files (CSV/Parquet/JSON)
By the numbers
- 18 output formats available
- 6 output-format flags (csv, json, table, markdown, html, line)
Files
DuckDB CLI Specialist
Helps with data analysis, SQL queries and file conversion via DuckDB CLI.
Quick Start
Read data files directly with SQL
# CSV
duckdb -c "SELECT * FROM 'data.csv' LIMIT 10"
# Parquet
duckdb -c "SELECT * FROM 'data.parquet'"
# Multiple files with glob
duckdb -c "SELECT * FROM read_parquet('logs/*.parquet')"
# JSON
duckdb -c "SELECT * FROM read_json_auto('data.json')"Open persistent databases
# Create/open database
duckdb my_database.duckdb
# Read-only mode
duckdb -readonly existing.duckdbCommand Line Arguments
Output formats (as flags)
| Flag | Format |
|---|---|
-csv | Comma-separated |
-json | JSON array |
-table | ASCII table |
-markdown | Markdown table |
-html | HTML table |
-line | One value per line |
Execution arguments
| Argument | Description |
|---|---|
-c COMMAND | Run SQL and exit |
-f FILENAME | Run script from file |
-init FILE | Use alternative to ~/.duckdbrc |
-readonly | Open in read-only mode |
-echo | Show commands before execution |
-bail | Stop on first error |
-header / -noheader | Show/hide column headers |
-nullvalue TEXT | Text for NULL values |
-separator SEP | Column separator |
Data Conversion
CSV to Parquet
duckdb -c "COPY (SELECT * FROM 'input.csv') TO 'output.parquet' (FORMAT PARQUET)"Parquet to CSV
duckdb -c "COPY (SELECT * FROM 'input.parquet') TO 'output.csv' (HEADER, DELIMITER ',')"JSON to Parquet
duckdb -c "COPY (SELECT * FROM read_json_auto('input.json')) TO 'output.parquet' (FORMAT PARQUET)"Convert with filtering
duckdb -c "COPY (SELECT * FROM 'data.csv' WHERE amount > 1000) TO 'filtered.parquet' (FORMAT PARQUET)"Dot Commands
Schema inspection
| Command | Description |
|---|---|
.tables [pattern] | Show tables (with LIKE pattern) |
.schema [table] | Show CREATE statements |
.databases | Show attached databases |
Output control
| Command | Description |
|---|---|
.mode FORMAT | Change output format |
.output file | Send output to file |
.once file | Next output to file |
.headers on/off | Show/hide column headers |
.separator COL ROW | Set separators |
Queries
| Command | Description |
|---|---|
.timer on/off | Show execution time |
.echo on/off | Show commands before execution |
.bail on/off | Stop on error |
.read file.sql | Run SQL from file |
Editing
| Command | Description |
|---|---|
.edit or \e | Open query in external editor |
.help [pattern] | Show help |
Output Formats (18 available)
Data export
- csv - Comma-separated for spreadsheets
- tabs - Tab-separated
- json - JSON array
- jsonlines - Newline-delimited JSON (streaming)
Readable formats
- duckbox (default) - Pretty ASCII with unicode box-drawing
- table - Simple ASCII table
- markdown - For documentation
- html - HTML table
- latex - For academic papers
Specialized
- insert TABLE - SQL INSERT statements
- column - Columns with adjustable width
- line - One value per line
- list - Pipe-separated
- trash - Discard output
Keyboard Shortcuts (macOS/Linux)
Navigation
| Shortcut | Action |
|---|---|
Home / End | Start/end of line |
Ctrl+Left/Right | Jump word |
Ctrl+A / Ctrl+E | Start/end of buffer |
History
| Shortcut | Action |
|---|---|
Ctrl+P / Ctrl+N | Previous/next command |
Ctrl+R | Search history |
Alt+< / Alt+> | First/last in history |
Editing
| Shortcut | Action |
|---|---|
Ctrl+W | Delete word backward |
Alt+D | Delete word forward |
Alt+U / Alt+L | Uppercase/lowercase word |
Ctrl+K | Delete to end of line |
Autocomplete
| Shortcut | Action |
|---|---|
Tab | Autocomplete / next suggestion |
Shift+Tab | Previous suggestion |
Esc+Esc | Undo autocomplete |
Autocomplete
Context-aware autocomplete activated with Tab:
- Keywords - SQL commands
- Table names - Database objects
- Column names - Fields and functions
- File names - Path completion
Database Operations
Create table from file
CREATE TABLE sales AS SELECT * FROM 'sales_2024.csv';Insert data
INSERT INTO sales SELECT * FROM 'sales_2025.csv';Export table
COPY sales TO 'backup.parquet' (FORMAT PARQUET);Analysis Examples
Quick statistics
SELECT
COUNT(*) as count,
AVG(amount) as average,
SUM(amount) as total
FROM 'transactions.csv';Grouping
SELECT
category,
COUNT(*) as count,
SUM(amount) as total
FROM 'data.csv'
GROUP BY category
ORDER BY total DESC;Join on files
SELECT a.*, b.name
FROM 'orders.csv' a
JOIN 'customers.parquet' b ON a.customer_id = b.id;Describe data
DESCRIBE SELECT * FROM 'data.csv';Pipe and stdin
# Read from stdin
cat data.csv | duckdb -c "SELECT * FROM read_csv('/dev/stdin')"
# Pipe to another command
duckdb -csv -c "SELECT * FROM 'data.parquet'" | head -20
# Write to stdout
duckdb -c "COPY (SELECT * FROM 'data.csv') TO '/dev/stdout' (FORMAT CSV)"Configuration
Save common settings in ~/.duckdbrc:
.timer on
.mode duckbox
.maxrows 50
.highlight onSyntax highlighting colors
.keyword green
.constant yellow
.comment brightblack
.error redExternal Editor
Open complex queries in your editor:
.editEditor is chosen from: DUCKDB_EDITOR → EDITOR → VISUAL → vi
Safe Mode
Secure mode that restricts file access. When enabled:
- No external file access
- Disables
.read,.output,.import,.shetc. - Cannot be disabled in the same session
Tips
- Use
LIMITon large files for quick preview - Parquet is faster than CSV for repeated queries
read_csv_autoandread_json_autoguess column types- Arguments are processed in order (like SQLite CLI)
- WSL2 may show incorrect
memory_limitvalues on some Ubuntu versions
{
"owner": "camelsprout",
"slug": "duckdb-cli-ai-skills",
"displayName": "DuckDB CLI skills",
"latest": {
"version": "1.0.0",
"publishedAt": 1769247814673,
"commit": "https://github.com/clawdbot/skills/commit/268be0947e980dab4f8b40c20989f7f3d5dcb72d"
},
"history": []
}
DuckDB CLI AI Skill
A comprehensive AI skill for Claude Code that provides expert assistance with DuckDB CLI operations.
What is this?
This is a skill file for Claude Code (Anthropic's CLI tool). When activated, it gives Claude deep knowledge about DuckDB CLI, enabling it to help you with:
- SQL queries on CSV, Parquet, and JSON files
- Data conversion between formats
- Database operations and analysis
- Command-line arguments and dot commands
- Output formatting and configuration
Installation
Claude Code (recommended)
Copy SKILL.md to your Claude Code skills directory:
mkdir -p ~/.claude/skills/duckdb
cp SKILL.md ~/.claude/skills/duckdb/Then use /duckdb in Claude Code to activate the skill.
Other AI Tools
The SKILL.md file follows standard markdown conventions and can be adapted for use with other AI assistants that support custom instructions or system prompts.
What's Included
The skill covers all official DuckDB CLI documentation:
- Quick Start - Read files directly with SQL
- Command Line Arguments - All flags and options
- Data Conversion - CSV, Parquet, JSON transformations
- Dot Commands - Schema inspection, output control
- Output Formats - All 18 available formats
- Keyboard Shortcuts - Navigation, history, editing
- Autocomplete - Context-aware completion
- Configuration - ~/.duckdbrc settings
- Safe Mode - Restricted file access mode
Example Usage
Once the skill is activated, you can ask Claude things like:
- "Convert this CSV to Parquet"
- "Show me statistics for sales.csv"
- "Join these two files on customer_id"
- "What's the DuckDB command to export as JSON?"
Documentation Sources
Based on official DuckDB documentation:
License
MIT
Related skills
FAQ
Can it query files without importing them?
Yes. You can run SQL directly against CSV, Parquet, and JSON files, including glob patterns for multiple files.
What formats can it convert between?
It shows COPY recipes for CSV to Parquet, Parquet to CSV, and JSON to Parquet, with optional filtering.