搜索

PythonReactSEOPDF
OpenClaw

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".

camelsprout0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install camelsprout/duckdb-cli-ai-skills

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 C...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/camelsprout/duckdb-cli-ai-skills
Version
—
Commit
9fa76ebeb6a156dbcf03f22bf656a29aa98655b5
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

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:

来源内容

SKILL.md
# 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...
README
# 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...

相关技能

OpenClaw

dojo.md

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 req...

OpenClaw

geo-optimization

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 discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance