Back to Registry
View Author Profile
Official Verified
duckdb-en
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/camelsprout/duckdb-cli-ai-skillsOr
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.duckdb
Command 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)
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-camelsprout-duckdb-cli-ai-skills": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.