# Install DuckDB CLI in Google Antigravity

Source: https://github.com/duckdb/duckdb-skills
Listing: https://www.antigravityskills.org/skill/duckdb-cli
Safety review (2026-10-14): Official instruction-only DuckDB skills that run the duckdb CLI via Bash; only query's ad-hoc mode is sandboxed, and the upgrade path uses a curl | sh installer after asking.

## Rules for the agent
- Before running anything, tell the user what you will download and whether it contains scripts, and ask them to confirm.
- Install into this project (.agents/skills/) unless the user asks for a global install (~/.gemini/config/skills/).
- Do not run other commands from the source repository unless the user asks.

## Steps
1. Install the DuckDB CLI

```bash
duckdb --version
```

   If it is missing, the install-duckdb skill lists: macOS brew install duckdb; Linux curl -fsSL https://install.duckdb.org | sh; Windows winget install DuckDB.cli (Windows is not fully supported per the README).
2. Download the repository

```bash
git clone --depth 1 https://github.com/duckdb/duckdb-skills /tmp/duckdb-skills && git -C /tmp/duckdb-skills log -1 --format=%h
```

   We reviewed commit 7feda8e; a different hash means the skills changed after our review.
3. Copy the skills into this project (workspace skills)

```bash
mkdir -p .agents/skills && cp -r /tmp/duckdb-skills/skills/{attach-db,convert-file,duckdb-docs,install-duckdb,query,read-file,s3-explore,spatial} .agents/skills/
```

   Run from your project root (bash or zsh). This copies 8 of the 9 folders and leaves out read-memories, which only reads Claude Code session logs. Copy just query and read-file if you want the minimum.
4. Or install them for all projects (global skills)

```bash
mkdir -p ~/.gemini/config/skills && cp -r /tmp/duckdb-skills/skills/{attach-db,convert-file,duckdb-docs,install-duckdb,query,read-file,s3-explore,spatial} ~/.gemini/config/skills/
```

   Use this instead of the previous step. For the Antigravity CLI the global folder is ~/.gemini/antigravity-cli/skills/.
5. Check that Antigravity sees them
   Antigravity 2.0 app: start a new conversation and ask "What skills do you have?"; query, read-file and the others should be listed. Antigravity CLI: run /skills (/skills reload in a session that was already open).

Note: The duckdb-skills README only documents the Claude Code plugin and does not mention Antigravity. These steps copy the plain SKILL.md folders into Antigravity's standard skill folders; the /duckdb-skills:<name> references inside them are Claude Code names, so ask for a skill by what you want done.

Done when the skill is listed: in the Antigravity 2.0 app ask "What skills do you have?" in a new conversation (the app has no /skills command); in the Antigravity CLI run /skills (run /skills reload first in a session that was already open).
