attach-db

Attach a DuckDB database file to shared state for query workflows.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-extensions --skill attach-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: attach-db
Source: https://github.com/nq-rdl/agent-extensions/tree/main/skills/duckdb/attach-db
Command: npx skills add https://github.com/nq-rdl/agent-extensions --skill attach-db

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users attach a DuckDB database file to the shared state, enabling immediate access for the sibling query workflow and seamless repeated queries without manual reconfiguration.

Core Features & Use Cases

  • Attach a DuckDB file as an available database alias in the shared state for use by the query workflow.
  • Inspect the database's tables and schema to understand structure and prepare for queries.
  • Use case: Open a local .duckdb to run a set of recurring analytics queries across workflows.

Quick Start

Provide the path to the DuckDB file to attach it to the shared state and make it accessible to the query workflow.

Frequently Asked Questions about attach-db

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach a DuckDB database file for repeated queries?

You attach a DuckDB database by providing its file path, which appends a guarded ATTACH entry to the shared state file, enabling immediate and repeated queries without manual reconfiguration.

What is the best way to inspect DuckDB tables and schema before querying?

Inspecting DuckDB tables and schema happens automatically when you attach the database file, allowing you to understand its structure and prepare your analytics queries across workflows.

Do I need a DuckDB installation to attach a local .duckdb file?

Yes, attaching a local .duckdb file requires a functional DuckDB installation and a valid database file to successfully append the ATTACH entry to the shared state.

Can I attach multiple DuckDB files to the same workflow state?

You can attach multiple DuckDB files because the Skill uses a guarded step to append each ATTACH entry to the state file without creating duplicates, ensuring all aliases remain accessible.

Why does my attached DuckDB database not show in the query workflow?

If your attached DuckDB database does not appear, the state file may lack the ATTACH entry or the DuckDB installation may be non-functional, preventing the sibling query workflow from accessing it.