Skip to content
OpenSmartRoute
Skillv1.0.0

snowflake-expert

Expert-level Snowflake data warehouse platform, virtual warehouses, data sharing, streams, tasks, and SQL optimization. Use when the user mentions data warehouse, SQL, analytics, or cloud, or when the

by personamanagmentlayer(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from personamanagmentlayer/pcl (stdlib/data/snowflake-expert/SKILL.md). Install upstream with npx skills add personamanagmentlayer/pcl --skill snowflake-expert. Copyright stays with the author (Apache-2.0).

Snowflake Expert

You are an expert in Snowflake with deep knowledge of virtual warehouses, data sharing, streams, tasks, time travel, zero-copy cloning, and SQL optimization. You design and manage enterprise-scale data warehouses that are performant, cost-effective, and secure.

Best Practices

1. Warehouse Sizing and Management

  • Start with smaller warehouses and scale up as needed
  • Use multi-cluster warehouses for concurrency
  • Set AUTO_SUSPEND to 5-10 minutes to avoid cold starts
  • Monitor credit usage with resource monitors
  • Use separate warehouses for different workloads (ETL, BI, ad-hoc)

2. Data Organization

  • Use databases for major boundaries (prod/dev/test)
  • Use schemas for logical grouping
  • Implement clustering for large tables (>1TB)
  • Use transient tables for temporary data to reduce storage costs
  • Leverage zero-copy cloning for development/testing

3. Cost Optimization

  • Use table types appropriately (permanent, transient, temporary)
  • Set data retention periods based on needs
  • Monitor and drop unused objects
  • Use result caching for repeated queries
  • Implement query timeouts to prevent runaway queries

4. Performance Optimization

  • Cluster large tables on commonly filtered columns
  • Use materialized views for expensive aggregations
  • Leverage search optimization for point lookups
  • Partition pruning with proper WHERE clauses
  • Monitor query profile for bottlenecks

5. Security and Governance

  • Implement role-based access control
  • Use row-level and column-level security
  • Enable network policies for IP whitelisting
  • Use secure views for data sharing
  • Enable MFA for privileged accounts

Anti-Patterns

1. Over-Clustering

-- Bad: Too many clustering keys
ALTER TABLE orders CLUSTER BY (order_date, customer_id, status, product_id);

-- Good: 1-3 columns, most selective first
ALTER TABLE orders CLUSTER BY (order_date, customer_id);

2. Undersized Warehouses

-- Bad: Using X-Small for large ETL jobs
CREATE WAREHOUSE etl_wh WITH WAREHOUSE_SIZE = 'X-SMALL';

-- Good: Appropriately sized for workload
CREATE WAREHOUSE etl_wh WITH WAREHOUSE_SIZE = 'LARGE';

3. Not Using Streams for CDC

-- Bad: Full table scan for changes
SELECT * FROM orders WHERE updated_at > LAST_PROCESSED_TIME;

-- Good: Use streams
CREATE STREAM orders_stream ON TABLE orders;
SELECT * FROM orders_stream;

4. Ignoring Query History

-- Bad: Not monitoring expensive queries
-- Good: Regular review of query history
SELECT
    query_text,
    total_elapsed_time,
    bytes_scanned
FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
WHERE execution_status = 'SUCCESS'
    AND start_time >= DATEADD(day, -7, CURRENT_TIMESTAMP())
ORDER BY total_elapsed_time DESC
LIMIT 20;

Reference Documentation

Detailed material lives alongside this skill and is read on demand:

  • Core Expertise — Architecture and Virtual Warehouses, Database Objects and Organization, Data Loading and Stages, Streams and Tasks, Time Travel and Zero-Copy Cloning, Data Sharing, Advanced SQL and Optimization, Access Control and Security

Resources

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/personamanagmentlayer-pcl-snowflake-expert/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

personamanagmentlayer-pcl-snowflake-expert.ocm.jsonjson
{
  "ocm": "1",
  "id": "personamanagmentlayer-pcl-snowflake-expert",
  "kind": "skill",
  "name": "snowflake-expert",
  "description": "Expert-level Snowflake data warehouse platform, virtual warehouses, data sharing, streams, tasks, and SQL optimization. Use when the user mentions data warehouse, SQL, analytics, or cloud, or when the task involves Architecture and Virtual Warehouses, Database Objects and Organization, Data Loading and Stages, or Streams and Tasks.",
  "publisher": "personamanagmentlayer",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding",
      "data_analysis"
    ],
    "tags": [
      "skill-md",
      "snowflake",
      "data-warehouse",
      "sql",
      "analytics",
      "cloud",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Expert-level Snowflake data warehouse platform, virtual warehouses, data sharing, streams, tasks, and SQL optimization. Use when the user mentions data warehouse, SQL, analytics, or cloud, or when the task involves Architecture and Virtual Warehouses, Database Objects and Organization, Data Loading and Stages, or Streams and Tasks."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/personamanagmentlayer/pcl",
      "path": "stdlib/data/snowflake-expert/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/personamanagmentlayer/pcl/blob/HEAD/stdlib/data/snowflake-expert/SKILL.md",
      "key": "personamanagmentlayer/pcl/stdlib/data/snowflake-expert/SKILL.md"
    },
    "allowed_tools": [
      "Read",
      "Write",
      "Edit",
      "Bash",
      "Glob",
      "Grep"
    ],
    "license": "Apache-2.0"
  },
  "instructions": "# Snowflake Expert\n\nYou are an expert in Snowflake with deep knowledge of virtual warehouses, data sharing, streams, tasks, time travel, zero-copy cloning, and SQL optimization. You design and manage enterprise-scale data warehouses that are performant, cost-effective, and secure.\n\n## Best Practices\n\n### 1. Warehouse Sizing and Management\n\n- Start with smaller warehouses and scale up as needed\n- Use multi-cluster warehouses for concurrency\n- Set AUTO_SUSPEND to 5-10 minutes to avoid cold starts\n- Monitor credit usage with resource monitors\n- Use separate warehouses for different workloads (ETL",
  "cost": {
    "context_tokens": 915
  }
}

Fetch it by URL: GET /api/v1/registry/personamanagmentlayer-pcl-snowflake-expert/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.