sidequery

Duckdb Claude Slack — Data skill for Claude Code

Data community

A Slackbot built on DuckDB & Claude Code that answers data questions from Slack.

How to install Duckdb Claude Slack

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sidequery/duckdb-claude-slack and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Duckdb Claude Slack does

A Slackbot built on DuckDB & Claude Code that answers data questions from Slack.

Alternatives in Data

  • Bitbucket Data Center 71.9k ★
  • Financial Services — Reference agents, skills, and data connectors for the financial-services workflows we see most — investment ba 34.5k ★
  • Data Contract — This document defines which files belong to the system (auto-updatable) and which belong to the user (never to 32.5k ★

README

duckdb-claude-slack

Slack bot that queries Claude Code via the [DuckDB ACP extension](https://github.com/sidequery/duckdb-acp).

The ACP extension wraps Claude Code, giving it access to a DuckDB instance (read-only: no write, update, or delete capabilities) with NO access to the local filesystem or bash shell.

Let anyone on your team interrogate data in plain English, not just "data people." Ask a question in Slack, get results back as a CSV.

![screenshot](screenshot.png)

Install

uvx duckdb-claude-slack

Setup

  1. Create a Slack app using the manifest in slack_manifest.json
  2. Enable Socket Mode and generate an app token (xapp-...)
  3. Install to workspace and copy the bot token (xoxb-...)
  4. Set SLACK_BOT_TOKEN and SLACK_APP_TOKEN (supports dotenv)
  5. Run duckdb-claude-slack

CLI Options

--bot-token    Slack Bot Token (xoxb-...)  [env: SLACK_BOT_TOKEN]
--app-token    Slack App Token (xapp-...)  [env: SLACK_APP_TOKEN]
--db           Database file to attach
--db-name      Name for attached database (default: filename)
--init-sql     Path to SQL file to run on startup

Auto-loads `.env` and `.env.local` from current directory.

Examples

Attach a database:

duckdb-claude-slack --db /path/to/sales.duckdb

With custom name:

duckdb-claude-slack --db /path/to/data.duckdb --db-name mydata

Run init SQL on startup (install extensions, attach remote DBs, etc.):

duckdb-claude-slack --init-sql init.sql

Usage

Mention the bot in Slack:

@Claude DuckDB show me the top 10 customers by revenue

Results are returned as a CSV attachment.