SQL Queries skill for Claude Code

Write and review SQL queries against the dialect and schema of the target dataset.

How to add the SQL Queries skill to Claude Code

  1. Run both commands in your terminal to add Anthropic’s Knowledge Work marketplace and install the parent plugin.
  2. Start a Data plugin session and ask to write SQL for the fixture with the target dialect clearly named.
Claude Code · Install the data plugin
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install data@knowledge-work-plugins

Try 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.

Publisher references

Anthropic skill definition

Parent package

Browse Skills