Overview
- Skill Key
- camelsprout/duckdb-cli-ai-skills
- Author
- camelsprout
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/camelsprout/duckdb-cli-ai-skills
- Latest Commit SHA
- 9fa76ebeb6a156dbcf03f22bf656a29aa98655b5
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".
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 duckdb-en 技能。 若已安装,则直接安装 duckdb-en 技能。
# DuckDB CLI Specialist
Helps with data analysis, SQL queries and file conversion via DuckDB CLI.
## Quick Start
### Read data files directly with SQL
```bash
# 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
```bash
# 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
```bash
duckdb -c "COPY (SELECT * FROM 'input.csv') TO 'output.parquet' (FORMAT PARQUET)"
```
### Parquet to CSV
```bash
duckdb -c "COPY (SELECT * FROM 'input.parquet') TO 'output.csv' (HEADER, DELIMITER ',')"
```
### JSON to Parquet
```bash
duckdb -c "COPY (SELECT * FROM read_json_auto('input.json')) TO 'output.parquet' (FORMAT PARQUET)"
```
### Convert with filtering
```bash
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 C...
# DuckDB CLI AI Skill A comprehensive AI skill for [Claude Code](https://claude.ai/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: ```bash 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: - [CLI Overview](https://duckdb.org/docs/stable/clients/cli/overview) - [Arguments](https://duckdb.org/docs/stable/clients/cli/arguments) - [Dot Commands](https://duckdb.org/docs/stable/clients/cli/dot_command...
edholofy
University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning required.
openstockdata
OpenClaw Skill for stock data analysis
lethehades
macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
canuto
Deploy serverless backends for REST APIs, webhooks, data storage, scheduled jobs, queue workers, and autonomous workflows.
camopel
Continuous financial news crawler for finviz.com with SQLite storage, article extraction, and query tool. Use when monitoring financial markets, building news digests, or needing a local financial news database. Runs as a background daemon or systemd service.