Skip to content

Add Snowflake rules: SQL development, data pipelines, and Cortex AI#11

Open
jamescha-earley wants to merge 1 commit into
continuedev:mainfrom
jamescha-earley:snowflake-rules
Open

Add Snowflake rules: SQL development, data pipelines, and Cortex AI#11
jamescha-earley wants to merge 1 commit into
continuedev:mainfrom
jamescha-earley:snowflake-rules

Conversation

@jamescha-earley
Copy link
Copy Markdown

Summary

Three focused Snowflake rule sets for the rules collection:

  • snowflake-sql-development -- Naming conventions, stored procedure colon-prefix gotcha, semi-structured data patterns, MERGE upserts, performance tuning (cluster keys, search optimization, warehouse sizing), common error patterns, and security essentials.
  • snowflake-data-pipelines -- Dynamic Tables vs Streams+Tasks decision framework with blocker table, DT creation and design rules, Snowpipe, pipeline debugging queries, dbt on Snowflake configs, and pipeline anti-patterns.
  • snowflake-cortex-ai -- Cortex AI function reference (with deprecated name warnings), TO_FILE argument rules, AI_CLASSIFY vs AI_COMPLETE guidance, Cortex Search service creation, Cortex Agent spec structure rules, Snowpark Python session setup and vectorized UDFs, and cost estimation patterns.

Each rule uses globs **/*.sql and alwaysApply: false. README updated with a new Data Platform category section.

No existing rules were modified.

Why Snowflake?

Snowflake has significant syntax gotchas that trip up AI coding agents -- the stored procedure colon prefix rule, the TO_FILE two-argument signature, Dynamic Table constraints, and the $spec$ vs $$ delimiter distinction for agents. These rules prevent the most common mistakes.

Three focused rule sets for Snowflake development:
- snowflake-sql-development: naming conventions, stored procedure gotchas, semi-structured data, performance tuning
- snowflake-data-pipelines: Dynamic Tables vs Streams+Tasks decision framework, Snowpipe, dbt integration
- snowflake-cortex-ai: AI functions, TO_FILE rules, Cortex Search, Cortex Agents, Snowpark Python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant