/major-ai-skills:snowflakefrom major-ai-skills
Size Snowflake warehouses, design RBAC and stages, run idempotent COPY/MERGE loads, bound ad-hoc SQL cost, and avoid Time Travel/Fail-safe and restore credit surprises.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Snowflake separates storage (micro-partitions in cloud object storage) from compute (virtual warehouses). SQL runs on warehouses; services layer handles auth, metadata, and result cache. Roles gate objects; stages reference cloud files; COPY / Snowpipe / connectors load data. Time Travel and Fail-safe retain historical data at cost.
Stages / Snowpipe / connectors
-> tables (micro-partitions, clustering metadata)
-> virtual warehouse (compute credits)
-> RESULT_SCAN / query history / RBAC
Use when
@dbt, role-separated envs (DEV/PROD)Do not use when
@postgresql)@duckdb)ACCOUNTADMIN—use least-privilege rolesUSE ROLE explicitly in scripts; key-pair auth for service users; never commit passwords or private keys.LIMIT.COPY INTO / MERGE set-based patterns; track load idempotency with file metadata or staging keys—duplicate COPY without strategy duplicates rows.STATEMENT_TIMEOUT_IN_SECONDS on sessions; use QUERY_TAG for cost attribution.DATA_RETENTION_TIME_IN_DAYS is not a DR plan alone; Fail-safe adds cost; cloning (CREATE TABLE ... CLONE) is not free—document credit impact.USE ROLE TRANSFORMER;
USE WAREHOUSE ETL_WH;
USE DATABASE ANALYTICS;
ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = 600;
ALTER SESSION SET QUERY_TAG = 'dbt_daily_fct_orders';
CREATE FILE FORMAT IF NOT EXISTS ff_parquet TYPE = PARQUET;
CREATE STAGE IF NOT EXISTS stg_orders
URL = 's3://bucket/orders/'
STORAGE_INTEGRATION = si_prod;
COPY INTO raw.orders_ext
FROM @stg_orders
FILE_FORMAT = ff_parquet
PATTERN = '.*\\.parquet'
ON_ERROR = 'ABORT_STATEMENT';
MERGE INTO marts.fct_orders t
USING raw.orders_ext s
ON t.order_id = s.order_id
WHEN MATCHED AND s.updated_at > t.updated_at THEN
UPDATE SET amount = s.amount, updated_at = s.updated_at
WHEN NOT MATCHED THEN
INSERT (order_id, amount, updated_at)
VALUES (s.order_id, s.amount, s.updated_at);
SELECT * FROM TABLE(INFORMATION_SCHEMA.QUERY_HISTORY())
WHERE query_tag = 'dbt_daily_fct_orders'
ORDER BY start_time DESC LIMIT 20;
| Failure signature | Root cause | Diagnostic & fix |
|---|---|---|
| Credit spike | WH never suspends / XL default | Auto-suspend; resize; separate WH |
| Slow full scan | Poor clustering / cast filters | Cluster keys; sargable predicates |
| Access denied | Role or future grants missing | SHOW GRANTS; grant USAGE chain |
| Duplicate fact rows | Re-run COPY without purge | MERGE; copy history; stage file lists |
| Time Travel bill shock | Long retention on huge tables | Lower retention; transient staging |
| OAuth/key auth fail | Rotated key not updated | Rotate service user keys safely |
@dbt tests (unique, not_null) on merge keys.WAREHOUSE_METERING_HISTORY and storage usage views.@dbt — model lifecycle@airflow / @prefect — orchestration@great-expectations — data qualityMANDATORY: Never recommend
ACCOUNTADMINfor routine transforms. Every load pattern must state idempotency (MERGE keys or file tracking). Set warehouse auto-suspend and statement timeouts in examples. Do not commit secrets.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.