Loading...
Loading...
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.
npx skill4agent add anthropics/knowledge-work-plugins write-queryIf you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
/write-query <description of what data you need>daily_signupsactive_usersrevenue_by_productSELECT *EXISTSINabcsql-queries/write-query Count of orders by status for the last 30 days/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/write-query We have a 500M row events table partitioned by date. Find the top 100 users by event count in the last 7 days with their most recent event type.