mcpbeat

Snowflake Development

borghei/snowflake-development

> This skill should be used when the user asks to "optimize Snowflake queries", "analyze Snowflake SQL performance", "size Snowflake warehouses", "review Snowflake data models", or "troubleshoot Snowflake cost issues".

7k tokens
context cost
the whole folder, loaded on every use
3
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
447
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/borghei/Claude-Skills --skill snowflake-development

What comes with it

23 325 bytes besides the instruction
references/snowflake-best-practices.md
scripts/snowflake_query_helper.py

The instruction itself

11 sections, as written by the author

Snowflake Development

> Category: Engineering

> Domain: Data Warehouse

Overview

The Snowflake Development skill provides tools for analyzing and optimizing Snowflake SQL queries, recommending warehouse sizing, and enforcing Snowflake-specific best practices. Helps data engineers reduce costs and improve query performance.

Clarify First

Before analyzing or sizing, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • [ ] Action — analyze / optimize / warehouse-sizing (--action; selects the workflow)
  • [ ] SQL file or query — the specific query(ies) to optimize (--file; the subject of the analysis)
  • [ ] Workload type & data volume — ETL / BI / ad-hoc and the GB scale (--workload/--data-volume; drives the warehouse recommendation)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Quick Start

# Analyze a Snowflake SQL file for optimization opportunities
python scripts/snowflake_query_helper.py --file queries.sql --action analyze

# Get warehouse sizing recommendations
python scripts/snowflake_query_helper.py --action warehouse-sizing --workload "etl" --data-volume "500GB"

# Optimize a specific query
python scripts/snowflake_query_helper.py --file slow_query.sql --action optimize

Tools Overview

| Tool | Purpose | Key Flags |

|------|---------|-----------|

| snowflake_query_helper.py | Analyze, optimize Snowflake SQL and recommend warehouse sizes | --file, --action, --workload, --data-volume |

Workflows

Query Performance Optimization

  • Collect slow queries from query history
  • Run analyzer to identify optimization opportunities
  • Apply recommended changes
  • Compare before/after execution plans

Warehouse Right-Sizing

  • Identify workload type (ETL, BI, ad-hoc, etc.)
  • Run warehouse-sizing with data volume
  • Review recommendations
  • Implement multi-cluster settings if applicable

Reference Documentation

  • Snowflake Best Practices - Query patterns, warehouse management, cost optimization

Common Patterns

Cost Reduction

  • Right-size warehouses (don't use XL for small queries)
  • Set auto-suspend to 60 seconds for ad-hoc warehouses
  • Use materialized views for frequently accessed aggregations
  • Partition large tables with clustering keys
  • Avoid SELECT * in production queries

How to use it

Copy the folder

Take borghei/snowflake-development from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.