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 -y skills add anthropics/knowledge-work-plugins --skill write-queryInstalls into the current project.
Run `npx skills use "https://github.com/anthropics/knowledge-work-plugins" --skill "anthropics/knowledge-work-plugins/write-query"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/anthropics/knowledge-work-plugins" that are relevant to the current task. Run `npx skills add "https://github.com/anthropics/knowledge-work-plugins"` and select the relevant skills, then follow their instructions.