datus-ai/datus-db-adapters/db-snowflake-sql

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate and interpret Snowflake SQL with case-sensitive names, time semantics, semi-structured data and standard/hybrid-table constraints. Task references cover DDL, MERGE, stages and COPY.

Install

npx vskill@latest install datus-ai/datus-db-adapters/db-snowflake-sql

SKILL.md

Snowflake SQL

Generate Snowflake-compatible SQL from metadata-provided object and column names. Preserve Snowflake object resolution, type, and semi-structured data semantics.

Namespaces and identifiers

  • Qualify schema objects as database.schema.object when the current database and schema are not guaranteed; otherwise use the shortest unambiguous name.
  • Treat warehouses, roles, and databases as account-level objects rather than schema objects.
  • Remember that unquoted identifiers are stored and resolved in uppercase, while double-quoted identifiers preserve exact case and characters.
  • Reuse metadata names exactly. Use double quotes for case-sensitive, reserved, spaced, or special-character identifiers; do not use backticks or square brackets.

Queries and expressions

  • Use LIMIT or ANSI FETCH for row limiting and add a deterministic ORDER BY for pagination.
  • Use QUALIFY to filter window-function results without an extra subquery when it makes the query clearer.
  • Use Snowflake functions such as DATEADD, DATEDIFF, DATE_TRUNC, IFF, and TRY_TO_* with their Snowflake argument order and return semantics.
  • Use ILIKE for case-insensitive pattern matching when intended. Do not import another dialect's date formatting or interval syntax without conversion.
  • Treat session settings such as timezone, week policy, and timestamp mapping as part of date/time semantics when interpreting results.

Types and semi-structured data

  • Use Snowflake types such as NUMBER(p,s), FLOAT, VARCHAR, BINARY, BOOLEAN, DATE, TIME, TIMESTAMP_NTZ, TIMESTAMP_LTZ, and TIMESTAMP_TZ.
  • Distinguish TIMESTAMP_NTZ from session-timezone-aware TIMESTAMP_LTZ and offset-preserving TIMESTAMP_TZ; do not use generic TIMESTAMP when the distinction matters.
  • Use VARIANT, OBJECT, and ARRAY for semi-structured data. Parse text with functions such as PARSE_JSON before storing it in VARIANT.
  • Access semi-structured paths with Snowflake path syntax and cast scalar results to the required SQL type.
  • Use LATERAL FLATTEN(INPUT => expression) to expand VARIANT, OBJECT, or ARRAY values into rows.

Avoid common dialect leaks

Before returning SQL, reject backticks, PostgreSQL/MySQL upsert syntax, Oracle FROM DUAL, SQL Server TOP, traditional index DDL, and unqualified objects whose database and schema cannot be inferred.

Existing constraints

Treat primary-key, unique and foreign-key constraints on standard tables primarily as metadata; they do not establish enforced integrity. Distinguish the enforced constraints of hybrid tables and the target version. Keep declared keys separate from demonstrated row uniqueness.

Task references

Read these for the requested operation, including SQL-only authoring. Supplied ETL is evidence; follow the user's task.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
11
Repository forks
22
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/datus-ai/datus-db-adapters/db-snowflake-sql/badge)](https://verified-skill.com/skills/datus-ai/datus-db-adapters/db-snowflake-sql)

Something wrong with this skill or its page? Tell us.