con un clic
cortex-code
// Routes Snowflake-related operations to Cortex Code agent for specialized Snowflake expertise. Use when querying databases, checking data quality, or asking about Snowflake features.
// Routes Snowflake-related operations to Cortex Code agent for specialized Snowflake expertise. Use when querying databases, checking data quality, or asking about Snowflake features.
Routes Snowflake-related operations to Cortex Code CLI for specialized Snowflake expertise. Use when user asks about Snowflake databases, data warehouses, SQL queries on Snowflake, Cortex AI features, Snowpark, dynamic tables, data governance in Snowflake, Snowflake security, or mentions "Cortex" explicitly. Do NOT use for general programming, local file operations, non-Snowflake databases, web development, or infrastructure tasks unrelated to Snowflake.
Routes Snowflake-related operations to Cortex Code CLI for specialized Snowflake expertise. Use when the user asks about Snowflake databases, warehouses, schemas, tables, SQL on Snowflake, Cortex AI features, Snowpark, dynamic tables, streams, tasks, governance, or Snowflake security. Do not use for general programming, local file operations, non-Snowflake databases, web development, or infrastructure unrelated to Snowflake.
Routes Snowflake-related operations to Cortex Code CLI for specialized Snowflake expertise. Use when user asks about Snowflake databases, data warehouses, SQL queries on Snowflake, Cortex AI features, Snowpark, dynamic tables, data governance in Snowflake, Snowflake security, or mentions "Cortex" explicitly. Do NOT use for general programming, local file operations, non-Snowflake databases, web development, or infrastructure tasks unrelated to Snowflake.
| name | cortex-code |
| description | Routes Snowflake-related operations to Cortex Code agent for specialized Snowflake expertise. Use when querying databases, checking data quality, or asking about Snowflake features. |
| license | Proprietary. See LICENSE for complete terms |
Routes Snowflake queries to Cortex Code agent with conversation context enrichment.
Use this skill when the user asks about:
Before executing, build an enriched prompt that includes:
Conversation Context (if relevant):
User's Question:
Pass the enriched context to Cortex Code:
python3 scripts/execute_cortex.py \
--prompt "# Conversation Context
[relevant prior exchanges if any]
# Current Question
[USER'S QUESTION]" \
--envelope "RO"
If user previously asked "Which databases have stock data?" and now asks "Show me the schema for the main table":
python3 scripts/execute_cortex.py \
--prompt "# Recent Context
User previously identified databases with stock data: DB_STOCK, FINANCE__ECONOMICS
# Current Question
Show me the schema for the main table in DB_STOCK" \
--envelope "RO"
For standalone questions:
python3 scripts/execute_cortex.py \
--prompt "How many databases do I have in Snowflake?" \
--envelope "RO"
cortex CLI with stream-json formatsnowflake_sql_execute tool