cortex-router
Auto-routing skill loaded by the prompt filter hook. Routes Snowflake-related operations to Cortex Code CLI. Not for direct…
Use Cortex AI services — Cortex Analyst for natural-language-to-SQL through semantic views, Cortex Search for semantic search, and Cortex Agents for orchestrated AI tasks.
Claude Code
$ npx -y skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex --agent claude-code
Codex
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a codex -y
Cursor
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a cursor -y
Gemini CLI
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a gemini-cli -y
GitHub Copilot
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a github-copilot -y
OpenCode
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a opencode -y
Windsurf
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-cortex -a windsurf -y
name: snowflake-cortex description: >- Use Cortex AI services — Cortex Analyst for natural-language-to-SQL through semantic views, Cortex Search for semantic search, and Cortex Agents for orchestrated AI tasks.
Use Snowflake's Cortex AI services when they are available on the MCP server.
-- Semantic views (data models for Cortex Analyst) SHOW SEMANTIC VIEWS IN ACCOUNT; -- Cortex Search services SHOW CORTEX SEARCH SERVICES IN ACCOUNT; -- Cortex Agents SHOW AGENTS IN ACCOUNT;
Cortex Analyst converts natural language questions into SQL using semantic views. If the MCP server exposes a `CORTEX_ANALYST_MESSAGE` tool, pass the user's question as the `message`.
**When to prefer Analyst over raw SQL:**
**When to use raw SQL instead:**
Cortex Search provides semantic search over unstructured text columns. If the MCP server exposes a `CORTEX_SEARCH_SERVICE_QUERY` tool:
{
"query": "billing dispute resolution",
"columns": ["TICKET_ID", "CUSTOMER_NAME", "REQUEST"],
"limit": 10
}**Filter syntax** (optional):
{
"query": "network outage",
"filter": { "@eq": { "SERVICE_TYPE": "Cloud" } },
"limit": 5
}Supported filter operators: `@eq`, `@contains` (arrays), `@gte`, `@lte`, composed with `@and`, `@or`, `@not`.
If the MCP server wraps a Cortex Agent (`CORTEX_AGENT_RUN`), send a `text` message. The agent decides which internal tools to use (SQL, Analyst, Search, code execution).
For multi-turn conversations, include `thread_id` from the previous response.
Connect your AI coding agent to Snowflake. Plugins for Claude Code and OpenAI Codex that automatically detect Snowflake prompts and route them to Cortex Code — where 55+ built-in skills handle SQL, data governance, dynamic tables, ML, and more.
Auto-routing skill loaded by the prompt filter hook. Routes Snowflake-related operations to Cortex Code CLI. Not for direct…
ONLY load this skill when the user explicitly types $cortex-run or /cortex-run. NEVER load this skill from auto-routing hooks or…
Install Snowflake CLI and Cortex Code CLI. Use when cortex is not installed, when the user asks to set up Cortex Code, or when…
Manage Database Change Management (DCM) projects in Snowflake. DCM is infrastructure-as-code for Snowflake objects — databases,…
Discover databases, schemas, tables, views, and columns in Snowflake. Use when the user wants to understand what data is…
Audit data access, inspect masking and row access policies, review tags and classification, and analyze role hierarchies and…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.