Skip to content
coworkplugins

Claude skill

Write Query

Write Query is a Claude skill in the Data plugin, built by Anthropic. Write optimized SQL for your dialect with best practices.

From AnthropicShips in DataData Analysis

What it does

The description in the skill's SKILL.md, which Claude reads to decide when to use it:

Write optimized SQL for your dialect with best practices. Use when translating a natural-language data need into SQL, building a multi-CTE query with joins and aggregations, optimizing a query against a large partitioned table, or getting dialect-specific syntax for Snowflake, BigQuery, Postgres, etc.

The skill's instructions (about 666 words) cover:

  • Usage
  • Workflow
  • 1. Understand the Request
  • 2. Determine SQL Dialect
  • 3. Discover Schema (If Warehouse Connected)
  • 4. Write the Query
  • 5. Present the Query
  • 6. Offer to Execute
  • Examples
  • Tips

How to use it

  1. Write Query comes inside the Data plugin, so you get it by installing that plugin, along with its 9 other skills. A plugin installs as one unit, with all its skills. The plugin's page has the install steps, and plugins are saved to your Claude account.
  2. Ask Claude for the task. When your request matches the skill's description, Claude loads it.
  3. To pick it yourself in Claude chat, type / or click + and choose write-query. In Claude Code and Cowork, type:
    /data:write-query <description of what data you need>

Source

Plugin
Data (Anthropic)
SKILL.md
View on GitHub
Repo stars
36,253
Repo last pushed
Nov 13, 2026
Checked
Nov 16, 2026

More skills in Data