Turn data questions into optimized SQL tailored to your database dialect.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "write-query" skill from askskill: 1. Download https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/data/skills/write-query/SKILL.md 2. Save it as ~/.claude/skills/write-query/SKILL.md 3. Reload skills and tell me it's ready
Write a BigQuery SQL query to calculate order count, total revenue, and average order value by channel for the last 90 days. Include only paid orders, sort by revenue descending, and use a clear CTE structure.
A well-structured BigQuery SQL query with date filtering, aggregations, sorting, and best-practice patterns.
This Snowflake SQL query is running slowly. Rewrite it and explain the optimizations. It joins three large tables to compute monthly active users. Minimize scanned data and consider partition pruning and predicate pushdown.
An optimized Snowflake SQL query plus explanations of scan reduction, filter order, CTE usage, and aggregation strategy.
Rewrite this Postgres SQL for Snowflake while preserving the original logic. Handle dialect differences in date functions, string concatenation, and null handling.
A Snowflake-compatible equivalent SQL query with key dialect differences and replacement rationale noted.
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Write a SQL query from a natural language description, optimized for your specific SQL dialect and following best practices.
/write-query <description of what data you need>
Parse the user's description to identify:
If the user's SQL dialect is not already known, ask which they use:
Remember the dialect for future queries in the same session.
If a data warehouse MCP server is connected:
Follow these best practices:
Structure:
daily_signups, active_users, revenue_by_product)Performance:
SELECT * in production queries -- specify only needed columnsEXISTS over IN for subqueries with large result setsReadability:
a, b, c)Dialect-specific optimizations:
sql-queries skill for details)Provide:
If a data warehouse is connected, offer to run the query and analyze the results. If the user wants to run it themselves, the query is ready to copy-paste.
Simple aggregation:
/write-query Count of orders by status for the last 30 days
Complex analysis:
/write-query Cohort retention analysis -- group users by their signup month, then show what percentage are still active (had at least one event) at 1, 3, 6, and 12 months after signup
Performance-critical:
…
Embed Zoom Virtual Agent chat on web with secure controls and context updates.
Quickly add Zoom’s prebuilt React video UI to web workflows.
Create stakeholder updates tailored to audience, cadence, and communication goals.
Review an analysis for methodology, accuracy, bias, and evidence support.
Generate people analytics reports on headcount, attrition, diversity, and org health.
Identify, categorize, and prioritize technical debt for smarter refactoring decisions.
Write, optimize, and translate SQL across major warehouse dialects.
Turn natural language into SQL across databases with document QA and semantic caching.
Connect to PostgreSQL across projects to inspect schemas, run queries, and analyze performance.
Query and manage Snowflake databases with natural language and SQL.
Query, provision, and operate cloud and SaaS resources with SQL.
Run read-only T-SQL queries on Fabric warehouse and lakehouse data.