snowflake-query

snowflake-query is a skill for Claude Code from Snowflake-Labs/snowflake-ai-kit. It costs 42 tokens per session (624 once invoked), scanned A, original, Apache-2.0.

A skill for running SQL queries against Snowflake and summarizing the results. SQL is the language used to retrieve, filter, join, and aggregate data in databases.

In plain words
What is it for?
Use it for selections, aggregations, joins, window functions, common table expressions, semi-structured data, time travel, and explicit SQL requests.
Why use it?
It removes the need to handle Snowflake query execution manually when you need specific records, counts, or calculations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the snowflake plugin — 7 skills shipped together

Good fit Use it for selections, aggregations, joins, window functions, common table expressions, semi-structured data, time travel, and explicit SQL requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/snowflake-ai-kit/snowflake-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-query
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/snowflake-ai-kit

Made for: Claude Code.

Or install snowflake, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for snowflake-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/snowflake-labs/snowflake-ai-kit/snowflake-query/github.svg)](https://agentmods.dev/skills/snowflake-labs/snowflake-ai-kit/snowflake-query)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/snowflake-ai-kit/snowflake-query"><img src="https://agentmods.dev/badge/skills/snowflake-labs/snowflake-ai-kit/snowflake-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for snowflake-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/snowflake-ai-kit/snowflake-query"><img src="https://agentmods.dev/badge/skills/snowflake-labs/snowflake-ai-kit/snowflake-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 624 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00624
Opus 5.5 $0.00017 $0.00250
Sonnet 5.5 $0.00008 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured 16d ago against content hash c8e064a64d1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

snowflake-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/snowflake-mcp-devin/skills/snowflake-query/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Snowflake Query

Run SQL queries against Snowflake. Use this skill when the user asks to query data, run SQL, or retrieve specific results.

When to use

  • User asks to query, select, or look at data
  • User provides a specific SQL statement to run
  • User asks about row counts, aggregations, or filtered results
  • User needs joins, window functions, or CTEs

How to use

  1. Identify the SQL. Use Snowflake dialect (ILIKE, TRY_CAST, FLATTEN, QUALIFY).
  2. Send the query to the MCP server. With the default setup in this plugin's README, that's the cortex_code_agent tool. If the server exposes a dedicated SQL execution tool, use that instead.
  3. Summarize results. For large sets, show a sample and total count.

Examples

Simple count:

SELECT COUNT(*) AS row_count FROM my_db.my_schema.orders;

Top-N with aggregation:

SELECT customer_name, SUM(amount) AS total_revenue
FROM orders
GROUP BY customer_name
ORDER BY total_revenue DESC
LIMIT 10;

Join with filter:

SELECT o.order_id, c.name, o.amount
FROM orders o
JOIN customers c ON o.customer_id = c.id
WHERE o.created_at >= DATEADD(day, -30, CURRENT_DATE())
ORDER BY o.amount DESC
LIMIT 20;

Semi-structured (VARIANT/JSON):

SELECT
  raw:event_type::STRING AS event_type,
  raw:user.name::STRING AS user_name,
  raw:timestamp::TIMESTAMP AS event_time
FROM events
WHERE raw:event_type::STRING ILIKE '%purchase%'
LIMIT 10;

Flatten arrays:

SELECT t.order_id, f.value:product_name::STRING AS product
FROM orders t,
LATERAL FLATTEN(input => t.items) f
LIMIT 20;

Time travel:

SELECT * FROM orders AT(TIMESTAMP => '2025-01-15 10:00:00'::TIMESTAMP) LIMIT 10;

Window function with QUALIFY:

SELECT customer_id, order_date, amount
FROM orders
QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) = 1;

Important

  • Default to read-only (SELECT). Never run DDL/DML unless explicitly requested.
  • Always use LIMIT on exploratory queries.
  • If a query fails, report the error and suggest a fix.
  • MCP responses truncate at 250KB — aggregate or narrow your SELECT if results are large.

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 89 lines · 42 tokens per session scan A c8e064a64d1d

Subscribe to this mod's changes

snowflake-query is a skill published in the GitHub repository Snowflake-Labs/snowflake-ai-kit (42 stars, last pushed 3d ago), licensed Apache-2.0. It adds 42 tokens to every session and 624 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

snowflake-query compared with skills from other repositories

snowflake-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
snowflake-querySnowflake-Labs/snowflake-ai-kitSkill423d agoApache-2.0A42Claude Code
wisdom-indexSnowflake-Labs/cocoplusSkill7282d agoMITA21Claude Code, Codex
snowflake-to-bigquery-converterlooker-open-source/looker-skillsSkill463d agoApache-2.0A83Claude Code
ecommerce-data-warehousefinsilabs/awesome-ecommerce-skillsSkill6317d agoMITA35Claude Code, Codex
snowflake-syntheticdynatrace-oss/dynatrace-snowflake-observability-agentSkill103d agoMITA19OpenCode
snowflake-mcpchristianclaudio/mcp-server-snowflakeSkill1yesterdayApache-2.0A45Claude Code, Codex
data-engineerbuiphucminhtam/forgewrightSkill492d agononeA85Claude Code