{"id":"anthropics-knowledge-work-plugins-data-skills-write-query","title":"write-query","type":"skill","industry":"data-research","roles":["general"],"summary":"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.","summary_lang":"en","source_url":"https://github.com/anthropics/knowledge-work-plugins/blob/main/data/skills/write-query/SKILL.md","raw_url":"https://raw.githubusercontent.com/SiinXu/agent-academy/main/data/mirror/anthropics-knowledge-work-plugins-data-skills-write-query.md","upstream_raw_url":"https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/data/skills/write-query/SKILL.md","repo":"anthropics/knowledge-work-plugins","author":"anthropics","license":"Apache-2.0","redistributable":true,"content_policy":"mirror-with-attribution","original":{"kind":"full","license":"Apache-2.0","url":"https://github.com/anthropics/knowledge-work-plugins/blob/main/data/skills/write-query/SKILL.md"},"install":"npx skills add anthropics/knowledge-work-plugins --skill write-query","security":{"audited":false,"executes_code":false,"needs_credentials":false,"writes_external":false},"metrics":{"repo_stars":29734,"repo_pushed_at":"2026-10-15"},"course_step":"3-learn-rules","status":"active","first_seen":"2026-10-15T10:15:30Z","updated_at":"2026-10-15T10:15:30Z","checked_at":"2026-10-15T10:15:30Z","http_status":{"source":200},"page":"https://academy.incidental.site/r/anthropics-knowledge-work-plugins-data-skills-write-query/","source":"github"}