Attach DuckDB Database

•
435
•

Connects DuckDB database files to Claude for interactive querying, schema exploration, and persistent session management.

The attach-db skill streamlines the process of integrating DuckDB databases into your development workflow. It automatically resolves database paths, validates file integrity, and performs a deep dive into the schema to identify tables, columns, and row counts. By maintaining a centralized state.sql file, it ensures that your database connections and configurations persist across sessions, allowing Claude to execute complex SQL queries instantly without manual setup. This is ideal for data-driven applications where understanding the underlying data structure is critical for code generation.

Key Features

01Automatic absolute path resolution and file existence verification
02Conflict-aware database aliasing for multi-database project environments
03Comprehensive schema discovery including table metadata and estimated row counts
04Automatic DuckDB environment validation and installation assistance
05Persistent session management via project-specific or global SQL state files
06435 GitHub stars

Use Cases

01Automating the initialization of data-heavy local development environments
02Quickly exploring the structure of a local DuckDB file during development
03Setting up a persistent SQL context for Claude to perform multi-step data analysis