Skip to content

SQL Queries

Write correct, fast SQL for Postgres, Snowflake, BigQuery, Databricks and more.

Official Anthropicby AnthropicChecked October 18, 2026

Anthropic's SQL reference skill from the Data plugin. It knows the quirks of each major dialect and common analytical patterns such as cohorts and funnels.

Who it is for

  • Analysts
  • Data engineers
  • Product managers

Prompts to try

Once the skill is installed, ask for the result in plain words. Claude picks the skill up on its own.

Prompt 1
Write a BigQuery query for 30-day retention by signup month
Prompt 2
Translate this Postgres query to Snowflake
Prompt 3
This query is slow, rewrite it with CTEs and explain why

How to install it

In Claude Code

  1. /plugin marketplace add anthropics/knowledge-work-plugins
  2. /plugin install data@knowledge-work-plugins

In Claude.ai

Listed in Claude's plugin directory for Cowork: add the Data plugin from Customize > Plugins on a paid plan, and its skills also load in chat.

Unlock the install steps

Free. Leave your email once to open the install steps for all 149 skills, and get the best new skills each month.

No spam. One click to unsubscribe. We use your email to send you the course and AI tips.

How we checked it

Confirmed SKILL.md at data/skills/sql-queries/SKILL.md in anthropics/knowledge-work-plugins via the GitHub API; skill folder last changed 2026-03-13, repo has 29,992 stars and was pushed 2026-10-17; published in Anthropic's knowledge-work-plugins marketplace.

Source: github.com/anthropics/knowledge-work-plugins/tree/main/data/skills/sql-queries