Giverny

Write Query

Write optimized SQL for your dialect with best practices.

by Anthropic★ 37,401DatabasesOfficial

What Write Query does

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.

How to install Write Query in Claude Code

Giverny gives you a ready prompt with the exact install command from anthropics/knowledge-work-plugins. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone anthropics/knowledge-work-plugins and copy the data/skills/write-query folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Write Query on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the write-query skill on my current project.”

More Claude skills for databases