How to add the SQL Queries skill to Claude Code
- Run both commands in your terminal to add Anthropic’s Knowledge Work marketplace and install the parent plugin.
- Start a Data plugin session and ask to write SQL for the fixture with the target dialect clearly named.
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install data@knowledge-work-pluginsTry this workflow
Ask for a PostgreSQL query that counts first paid orders per account by month. Specify the timestamp column and include two accounts with repeat orders and one account with none.
Run the query on the fixture and verify each qualifying account contributes only once. Check whether the month cutoff follows the project’s specified time zone.
What you need
Give the warehouse dialect, table schema, and expected grain before asking for the query. Use a small fixture for execution.
How to trigger the skill
The parent plugin can load this skill as context when your request matches its purpose. Describe the sample task in the conversation.