Back to skills

attach-db

data

Attaches a DuckDB database file to your current project session. It explores the schema, collects table names, column definitions, and row counts, then writes a shared state file so future queries res

Setup & Installation

npx skills add https://github.com/duckdb/attach-db --skill attach-db
or paste the link and ask your coding assistant to install it
https://github.com/duckdb/attach-db
View on GitHub

What This Skill Does

Attaches a DuckDB database file to your current project session. It explores the schema, collects table names, column definitions, and row counts, then writes a shared state file so future queries restore the connection automatically via `duckdb -init`. Instead of manually writing ATTACH statements and checking schemas every session, this skill writes and maintains the state file once so every subsequent query just works.

When to use it

  • Working with attach db functionality
  • Implementing attach db features
  • Debugging attach db related issues