DuckDB CLI Specialist for Openclaw

A high-performance SQL analytical tool for the CLI that enables instant querying and conversion of CSV, Parquet, and JSON data files.

proxx
v1.0.0
Mar 19, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install duckdb-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install duckdb-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DuckDB CLI Specialist?

The DuckDB CLI Specialist is an essential tool in the Openclaw Skills collection designed for developers and data scientists who need to perform rapid data analysis without the overhead of a traditional database server. It leverages the power of DuckDB to execute complex SQL queries directly against local files like CSV, Parquet, and JSON, providing sub-second response times even on large datasets.

This skill transforms the command line into a powerful analytical workstation. Whether you are joining a local CSV with a Parquet file or converting nested JSON into a flat table structure, the DuckDB CLI Specialist provides a rich, interactive environment with features like auto-completion, syntax highlighting, and versatile export formats.

DuckDB CLI Specialist Use Cases

  • Querying large CSV or Parquet files directly from the terminal without importing them into a database.
  • Converting data between different formats such as CSV to Parquet or JSON to CSV.
  • Performing quick exploratory data analysis (EDA) using standard SQL syntax on raw data logs.
  • Joining disparate data sources, such as a local text file and an existing DuckDB database file.
  • Automating data transformation pipelines using shell scripts and DuckDB command-line arguments.

How DuckDB CLI Specialist Works

  1. The user initiates a query or command using the duckdb executable followed by specific flags or SQL statements.
  2. DuckDB's vectorized execution engine reads the source files (CSV, Parquet, or JSON) directly into memory using optimized scanners.
  3. The SQL engine processes the query, applying filters, aggregations, or joins as specified in the command.
  4. Result sets are formatted according to the selected output mode (e.g., ASCII table, JSON, or Markdown).
  5. For persistent storage, the skill handles connections to .duckdb database files, managing ACID-compliant transactions locally.

DuckDB CLI Specialist Setup

To start using this skill within the Openclaw Skills ecosystem, ensure you have the DuckDB CLI installed. You can run ad-hoc queries or enter an interactive session:

# Run a direct query on a CSV file
duckdb -c "SELECT * FROM 'data.csv' LIMIT 10"

# Enter interactive mode with a persistent database
duckdb my_analysis.duckdb

Configure your environment by creating a ~/.duckdbrc file to enable features like timers and syntax highlighting.

DuckDB CLI Specialist Data Schema & Taxonomy

The skill interacts with various data formats and organizes internal metadata through the following structures:

Feature Description
File Formats Supports CSV, Parquet, JSON (auto-detect), and DuckDB native files.
Persistence Data can be stored in .duckdb binary files for cross-session persistence.
Metadata Accessible via .tables and .schema dot commands to inspect table structures.
Output Modes Over 18 formats including csv, json, markdown, and latex.

DuckDB CLI Specialist Advanced Features

  • Direct integration with stdin and stdout for powerful Unix-style piping and automation.
  • External editor support via the .edit command to write complex SQL in your preferred IDE.
  • Safe Mode execution to restrict file access and ensure secure data processing environment.
  • Context-aware autocomplete for SQL keywords, table names, and file paths using the Tab key.
  • Advanced Parquet features including projection and filter pushdown for high-speed analysis of massive datasets.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*