Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Snowpark and dbt pipelines

Writes Snowpark Python pipelines, UDFs and dbt models on Snowflake with solid incremental loads and tests.

Claude's review

8/10 Snowpark and dbt on Snowflake concrete patterns and anti-patterns

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Best practices for Snowpark Python (DataFrames, UDFs, UDTFs, stored procedures) and dbt with the dbt-snowflake adapter. Use when writing server-side Snowpark pipelines, registering UDFs or stored procedures, choosing dbt materializations, configuring incremental models, or setting up sources and tests for a Snowflake-backed dbt project.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: snowflake-snowpark-dbt
description: "Best practices for Snowpark Python (DataFrames, UDFs, UDTFs, stored procedures) and dbt with the dbt-snowflake adapter. Use when writing server-side Snowpark pipelines, registering UDFs or stored procedures, choosing dbt materializations, configuring incremental models, or setting up sources and tests for a Snowflake-backed dbt project."
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# Snowflake Snowpark Python & dbt

This skill covers building production data transformation pipelines with Snowpark Python (Snowflake's server-side Python API) and with dbt using the `dbt-snowflake` adapter.

## Workflow for a Snowpark or dbt Transformation

1. **Snowpark: open a session** — Build a `Session` from environment-scoped credentials, specifying role, warehouse, database, and schema explicitly.
2. **Snowpark: express transforms with the DataFrame API** — Prefer `.filter()`, `.select()`, `.group_by().agg()`, and `.join()` over raw SQL strings for reusable pipeline code; DataFrames are lazily evaluated and only execute on `.collect()`/`.show()`/a write action.
3. **Snowpark: push compute server-side** — Use scalar UDFs for row-wise logic, vectorized (pandas) UDFs for ML inference, UDTFs when one input row produces multiple output rows, and stored procedures for multi-step server-side orchestration.
4. **dbt: model in layers** — Staging models (`stg_*`) rename and type-cast; mart models express business logic on top of staging.
5. **dbt: choose a materialization** — `view` for cheap logic, `table` only when reads are frequent, `incremental` for large fact tables, `dynamic_table` for near-real-time freshness needs.
6. **dbt: define sources and tests** — Declare sources in `_sources.yml` with freshness thresholds; add `unique`/`not_null` tests on key columns.
7. **dbt: run selectively** — Use `dbt run --select model+` (model and downstream) or `+model` (model and upstream) instead of full-project runs during iteration.
8. **dbt: build and validate** — Run `dbt build` (run + test in dependency order) before merging, and `dbt docs generate` to keep documentation current.

## Snowpark Python

Snowpark runs Python server-side inside a Snowflake warehouse — data never leaves Snowflake. Core abstractions: `Session`, `DataFrame`, UDF, UDTF, UDAF, and Stored Procedure.

### Session

```python
import os
from snowflake.snowpark import Session

session = Session.builder.configs({
    "account": os.environ["SNOWFLAKE_ACCOUNT"],
    "user": os.environ["SNOWFLAKE_USER"],
    "password": os.environ["SNOWFLAKE_PASSWORD"],
    "role": "my_role", "warehouse": "my_wh", "database": "my_db", "schema": "my_schema",
}).create()
```
...

From Mindrally's repository, Apache-2.0 licence.

Related skills

  • Checked

    Dashboard design

    Designs clean, honest dashboards for web and SwiftUI with KPI cards, charts and layouts that work on phones.

    by abdiraimov-otabek 1.2k
    7/101 credit
  • Checked

    User path analysis

    Analyses event logs with Retentioneering to map user paths, funnels and churn, and shows where users drop off.

    by retentioneering 949
    7/101 credit
  • Checked

    Geospatial SQL builder

    Writes cost safe geospatial SQL for BigQuery, DuckDB, Snowflake and Postgres, with optional maps in Dekart.

    by dekart-xyz 692
    7/101 credit
  • Checked

    Snowflake SQL and Cortex

    Writes Snowflake SQL, Dynamic Tables, Streams, Cortex AI and Snowpark code while dodging common errors.

    by alirezarezvani 31k
    7/101 credit
  • Checked

    dbt platform migration

    Moves a dbt project from one warehouse to another and fixes SQL dialect gaps, so your models build again.

    by dbt-labs 777
    7/101 credit
  • Checked

    CSV and Excel merging

    Merges, stacks and dedupes CSV and Excel files into one clean table, then checks the row counts add up.

    by OneWave-AI 454
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added