datus-ai/datus-db-adapters/db-snowflake-sql
- community
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-sqlSKILL.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.objectwhen 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
LIMITor ANSIFETCHfor row limiting and add a deterministicORDER BYfor pagination. - Use
QUALIFYto filter window-function results without an extra subquery when it makes the query clearer. - Use Snowflake functions such as
DATEADD,DATEDIFF,DATE_TRUNC,IFF, andTRY_TO_*with their Snowflake argument order and return semantics. - Use
ILIKEfor 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, andTIMESTAMP_TZ. - Distinguish
TIMESTAMP_NTZfrom session-timezone-awareTIMESTAMP_LTZand offset-preservingTIMESTAMP_TZ; do not use genericTIMESTAMPwhen the distinction matters. - Use
VARIANT,OBJECT, andARRAYfor semi-structured data. Parse text with functions such asPARSE_JSONbefore storing it inVARIANT. - Access semi-structured paths with Snowflake path syntax and cast scalar results to the required SQL type.
- Use
LATERAL FLATTEN(INPUT => expression)to expandVARIANT,OBJECT, orARRAYvalues 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
- Snowflake DDL and writes: object replacement, table design, MERGE and transaction boundaries.
- Snowflake loading and unloading: COPY, stages, file formats, storage authentication and load options.
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
- SKILL.md in the repositoryCheckingdatus-snowflake/datus_snowflake/skills/db-snowflake-sql/SKILL.md
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
[](https://verified-skill.com/skills/datus-ai/datus-db-adapters/db-snowflake-sql)