write-query
Skill26k starsChanged 10 months agoApache-2.0View on GitHub
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.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about anthropics/knowledge-work-plugins
- @tommis.fi“github.com/anthropics/k...”Bluesky · May 24, 2026 · 5 likes
- A Hacker News story“Anthropic – Legal Productivity Plugin”Hacker News · Feb 4, 2026 · 4 points
- A Hacker News story“Claude open source knowledge Work Plugins”Hacker News · Jan 30, 2026 · 4 points
- Kilo-Org/kilo-marketplace“Add build-dashboard skill”GitHub · Jun 23, 2026 · 2 reactions
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 13,162 (+486) 🗒 Python Open …”Bluesky · May 24, 2026 · 2 likes
The biggest 5 of 57 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 57
Talked about on GitHub, Bluesky and Hacker News (57 times).
On GitHub · 50
- Jun 23, 2026Add build-dashboard skill — Kilo-Org/kilo-marketplace2 reactions · 1 comment
- Nov 24, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 2baf6d1 → 5e504ae — sudosubin/agents.nix0 reactions
- Nov 24, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 24, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 23, 2026chore(skills): bump the skill-packs group across 1 directory with 19 updates — solanabr/ai-kit0 reactions · 2 comments
45 more on GitHub
- Nov 23, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-19 → 0-unstable-2026-11-23 — sudosubin/agents.nix0 reactions
- Nov 20, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 19, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 19, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 18, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 18, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 18, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-13 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 16, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 16, 2026Feature: 3 role additions adapted from Anthropic knowledge-work-plugins (Sales deal skills, Legal helper, Accounting close) — amgadbarkat-ab/Ark-Agent0 reactions
- Nov 15, 2026[P1 WORK PACKS] Composable knowledge-work skills, commands, connectors and real professional workflows — loftwah/app-composer0 reactions
- Nov 14, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 14, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 43ccfc0 → e91a134 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 02717ef → 43ccfc0 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026investigation: evaluate anthropics/knowledge-work-plugins — gordonpn/dotfiles0 reactions
- Nov 11, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-09 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-07 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 9, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 7, 2026engineering plugin — mattbutlerengineering/skills0 reactions
- Nov 7, 2026knowledge base improvements — mattbutlerengineering/skills0 reactions
- Nov 7, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 6, 2026deps: actualiza skills (auditar) — savaf/dotfiles0 reactions
- Nov 6, 2026research: instilling placement and architecture judgment in coding agents (skills, agents, rules, checks) — dfadler/agent-config0 reactions
- Nov 6, 2026agent-skills.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-11-04 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-marketplaces.github.anthropics.knowledge-work-plugins: 0-unstable-2026-10-28 → 0-unstable-2026-11-04 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.anthropics.knowledge-work-plugins: 0-unstable-2026-10-28 → 0-unstable-2026-11-04 — sudosubin/agents.nix0 reactions
- Oct 27, 2026scan: 2026-10-27 daily discovery — mattbutlerengineering/ai-tooling0 reactions
- Oct 24, 2026📈 Bản tin xu hướng AI mã nguồn mở 2026-10-24 — thanhtantran/agents-radar0 reactions
- Oct 24, 2026🔥 GitHub Trending AI 早报 · 2026-10-24 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
On Bluesky · 5
- May 24, 2026github.com/anthropics/k... — @tommis.fi5 likes and reposts
- May 24, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 13,162 (+486) 🗒 Python Open source repository of plugins… — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 25, 2026📈 Today's GitHub Trending: 1. https://github.com/Lum1104/Understand-Anything - TypeScript, 5625 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 24, 2026今日のGitHubトレンド anthropics/knowledge-work-plugins Claudeを特定の役割や企業に最適化したスペシャリストにするためのプラグイン集です。 Claude CoworkやClaude… — @dailygithubtrends.bsky.social1 likes and repost
- Oct 20, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / knowledge-work-plugins ⭐ 30,616 (+262) 🗒 Python Open source repository of plugins… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Feb 4, 2026Anthropic – Legal Productivity Plugin4 points · 2 comments
- Jan 30, 2026Claude open source knowledge Work Plugins4 points
In this repository253 other files it gives its agents.
- partner-built/zoom-plugin/AGENTS.mdAGENTS.md
- partner-built/slack/CLAUDE.mdCLAUDE.md
- instrument-data-to-allotropeSkill
- nextflow-developmentSkill
- scientific-problem-selectionSkill
- scvi-toolsSkill
- single-cell-rna-qcSkill
- startSkill
- cowork-plugin-customizerSkill
- create-cowork-pluginSkill
- customer-escalationSkill
- customer-researchSkill
- draft-responseSkill
- kb-articleSkill
- ticket-triageSkill
- analyzeSkill
- build-dashboardSkill
- create-vizSkill
- data-context-extractorSkill
- data-visualizationSkill
- explore-dataSkill
- sql-queriesSkill
- statistical-analysisSkill
- validate-dataSkill
- accessibility-reviewSkill
- design-critiqueSkill
- design-handoffSkill
- design-systemSkill
- research-synthesisSkill
- user-researchSkill
- ux-copySkill
- architectureSkill
- code-reviewSkill
- debugSkill
- deploy-checklistSkill
- documentationSkill
- incident-responseSkill
- standupSkill
- system-designSkill
- tech-debtSkill
- testing-strategySkill
- digestSkill
- knowledge-synthesisSkill
- searchSkill
- search-strategySkill
- source-managementSkill
- audit-supportSkill
- close-managementSkill
- financial-statementsSkill
- journal-entry-prepSkill
- journal-entrySkill
- reconciliationSkill
- sox-testingSkill
- variance-analysisSkill
- comp-analysisSkill
- draft-offerSkill
- interview-prepSkill
- onboardingSkill
- org-planningSkill
- people-reportSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 18 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Write a SQL query from a natural language description, optimized for your specific SQL dialect and following best practices.
- Distinctive: line 34
If the user's SQL dialect is not already known, ask which they use:
- Distinctive: line 51
If a data warehouse MCP server is connected:
- Distinctive: line 53
Search for relevant tables based on the user's description
- Distinctive: line 55
Check for partitioning or clustering keys that affect performance
- Distinctive: line 56
Look for pre-built views or materialized views that might simplify the query
- Distinctive: line 60
Follow these best practices:
- Distinctive: line 63
Use CTEs (WITH clauses) for readability when queries have multiple logical steps
- Very specific: line 68
Never use SELECT * in production queries -- specify only needed columns
- Distinctive: line 70
Use partition filters when available (especially date partitions)
- Very specific: line 71
Prefer EXISTS over IN for subqueries with large result sets
- Distinctive: line 72
Use appropriate JOIN types (don't use LEFT JOIN when INNER JOIN is correct)
- Distinctive: line 73
Avoid correlated subqueries when a JOIN or window function works
- Distinctive: line 77
Add comments explaining the "why" for non-obvious logic
- Distinctive: line 78
Use consistent indentation and formatting
- Distinctive: line 80
Put each major clause on its own line
- Distinctive: line 84
Use dialect-appropriate date functions, string functions, and window syntax
- Distinctive: line 93
Performance notes: if relevant (expected cost, partition usage, potential bottlenecks)
- Distinctive: line 98
If a data warehouse is connected, offer to run the query and analyze the results.
- Distinctive: line 120
If you know the table names, include them -- otherwise Claude will help you find them
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/write-query - Write Optimized SQL
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.
Usage
/write-query <description of what data you need>Workflow
1. Understand the Request
Parse the user's description to identify:
- Output columns: What fields should the result include?
- Filters: What conditions limit the data (time ranges, segments, statuses)?
- Aggregations: Are there GROUP BY operations, counts, sums, averages?
- Joins: Does this require combining multiple tables?
- Ordering: How should results be sorted?
- Limits: Is there a top-N or sample requirement?
2. Determine SQL Dialect
If the user's SQL dialect is not already known, ask which they use:
- PostgreSQL (including Aurora, RDS, Supabase, Neon)
- Snowflake
- BigQuery (Google Cloud)
- Redshift (Amazon)
- Databricks SQL
- MySQL (including Aurora MySQL, PlanetScale)
- SQL Server (Microsoft)
- DuckDB
- SQLite
- Other (ask for specifics)
Remember the dialect for future queries in the same session.
3. Discover Schema (If Warehouse Connected)
If a data warehouse MCP server is connected:
- Search for relevant tables based on the user's description
- Inspect column names, types, and relationships
- Check for partitioning or clustering keys that affect performance
- Look for pre-built views or materialized views that might simplify the query
4. Write the Query
Follow these best practices:
Structure:
- Use CTEs (WITH clauses) for readability when queries have multiple logical steps
- One CTE per logical transformation or data source
- Name CTEs descriptively (e.g.,
daily_signups,active_users,revenue_by_product)
Performance:
- Never use
SELECT *in production queries -- specify only needed columns - Filter early (push WHERE clauses as close to the base tables as possible)
- Use partition filters when available (especially date partitions)
- Prefer
EXISTSoverINfor subqueries with large result sets - Use appropriate JOIN types (don't use LEFT JOIN when INNER JOIN is correct)
- Avoid correlated subqueries when a JOIN or window function works
- Be mindful of exploding joins (many-to-many)
Readability:
- Add comments explaining the "why" for non-obvious logic
- Use consistent indentation and formatting
- Alias tables with meaningful short names (not just
a,b,c) - Put each major clause on its own line
Dialect-specific optimizations:
- Apply dialect-specific syntax and functions (see
sql-queriesskill for details) - Use dialect-appropriate date functions, string functions, and window syntax
- Note any dialect-specific performance features (e.g., Snowflake clustering, BigQuery partitioning)
5. Present the Query
Provide:
- The complete query in a SQL code block with syntax highlighting
- Brief explanation of what each CTE or section does
- Performance notes if relevant (expected cost, partition usage, potential bottlenecks)
- Modification suggestions -- how to adjust for common variations (different time range, different granularity, additional filters)
6. Offer to Execute
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.
Examples
Simple aggregation:
/write-query Count of orders by status for the last 30 daysComplex 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 signupPerformance-critical:
/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.Tips
- Mention your SQL dialect upfront to get the right syntax immediately
- If you know the table names, include them -- otherwise Claude will help you find them
- Specify if you need the query to be idempotent (safe to re-run) or one-time
- For recurring queries, mention if it should be parameterized for date ranges
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

