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.
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
- 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.
- Ask Claude for the task. When your request matches the skill's description, Claude loads it.
- 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
- AnalyzeAnswer data questions -- from quick lookups to full analyses.
- Build DashboardBuild an interactive HTML dashboard with charts, filters, and tables.
- Create VizCreate publication-quality visualizations with Python.
- Data Context ExtractorGenerate or improve a company-specific data analysis skill by extracting tribal knowledge from analysts.
- Data VisualizationCreate effective data visualizations with Python (matplotlib, seaborn, plotly).
- Explore DataProfile and explore a dataset to understand its shape, quality, and patterns.
- SQL QueriesWrite correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.).
- Statistical AnalysisApply statistical methods including descriptive stats, trend analysis, outlier detection, and hypothesis testing.
- Validate DataQA an analysis before sharing -- methodology, accuracy, and bias checks.