Snowflake data engineering Cursor rules
This rule file gives Cursor broad guidance for data engineering on Snowflake, covering SQL, Dynamic Tables, Streams, Tasks, Snowpipe, semi-structured data, Snowflake Postgres and cost control. It is for data engineers who want generated SQL and pipelines to follow Snowflake's own conventions.
What it does
Semi-structured data uses VARIANT, OBJECT and ARRAY with colon notation, explicit casts and LATERAL FLATTEN, and avoids mixed types in one field. SQL uses snake_case identifiers, CTEs, CREATE OR REPLACE for idempotent DDL, COPY INTO for bulk loads and MERGE for upserts. Cluster keys are reserved for very large tables.
How to use it
The rule applies across the repository, including .sql files and pipeline definitions.
Requirements and limits
Stored procedure examples use Snowflake Scripting syntax, so variables need a colon prefix inside SQL statements.
More in Rules and the Cursor library.
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.