cortex-router
Auto-routing skill loaded by the prompt filter hook. Routes Snowflake-related operations to Cortex Code CLI. Not for direct…
Monitor and manage Snowflake data pipelines — Dynamic Tables, streams, tasks, dbt projects, and Snowpipe. Check refresh status, diagnose failures, and inspect pipeline dependencies.
Claude Code
$ npx -y skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines --agent claude-code
Codex
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a codex -y
Cursor
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a cursor -y
Gemini CLI
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a gemini-cli -y
GitHub Copilot
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a github-copilot -y
OpenCode
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a opencode -y
Windsurf
$ npx skills add Snowflake-Labs/snowflake-ai-kit --skill snowflake-pipelines -a windsurf -y
name: snowflake-pipelines description: >- Monitor and manage Snowflake data pipelines — Dynamic Tables, streams, tasks, dbt projects, and Snowpipe. Check refresh status, diagnose failures, and inspect pipeline dependencies.
Monitor and manage data pipelines in Snowflake.
Dynamic Tables are Snowflake's declarative pipeline primitive — SQL defines the transform, Snowflake manages refresh.
**List dynamic tables:**
SHOW DYNAMIC TABLES IN ACCOUNT;
**Check refresh status and lag:**
SHOW DYNAMIC TABLES LIKE '%my_table%'; -- Key columns: SCHEDULING_STATE, REFRESH_MODE, TARGET_LAG, DATA_TIMESTAMP
**Refresh history (find failures):**
SELECT name, state, refresh_trigger, refresh_end_time, statistics FROM TABLE(INFORMATION_SCHEMA.DYNAMIC_TABLE_REFRESH_HISTORY()) WHERE state = 'FAILED' ORDER BY refresh_end_time DESC LIMIT 20;
**Diagnose UPSTREAM_FAILED:** A dynamic table fails with UPSTREAM_FAILED when a dependency failed. Check the upstream table's refresh history to find the root cause.
-- List streams
SHOW STREAMS IN SCHEMA my_db.my_schema;
-- Check for pending changes
SELECT SYSTEM$STREAM_HAS_DATA('my_db.my_schema.my_stream');-- List tasks SHOW TASKS IN SCHEMA my_db.my_schema; -- Task execution history (last 24 hours) SELECT name, state, error_message, scheduled_time, completed_time FROM TABLE(INFORMATION_SCHEMA.TASK_HISTORY( SCHEDULED_TIME_RANGE_START => DATEADD(hour, -24, CURRENT_TIMESTAMP()) )) ORDER BY scheduled_time DESC LIMIT 20;
-- List deployed dbt projects (if using snow dbt deploy) SHOW DBT PROJECTS IN ACCOUNT; -- Describe a deployed project DESCRIBE DBT PROJECT my_db.my_schema.my_project;
dbt models typically materialize as tables, views, or dynamic tables. Check the target schema for the materialized objects.
-- List pipes
SHOW PIPES IN SCHEMA my_db.my_schema;
-- Check pipe status
SELECT SYSTEM$PIPE_STATUS('my_db.my_schema.my_pipe');
-- Recent copy history
SELECT * FROM TABLE(INFORMATION_SCHEMA.COPY_HISTORY(
TABLE_NAME => 'my_table',
START_TIME => DATEADD(hour, -24, CURRENT_TIMESTAMP())
))
ORDER BY LAST_LOAD_TIME DESC
LIMIT 20;1. **Data is stale** → Check dynamic table `DATA_TIMESTAMP` or refresh history 2. **Pipeline failed** → Check `DYNAMIC_TABLE_REFRESH_HISTORY()` for state=FAILED 3. **UPSTREAM_FAILED** → Trace upstream dependencies, fix the root failure first 4. **Task not running** → Check if task is suspended (`SHOW TASKS`), check `TASK_HISTORY()` 5. **Snowpipe not loading** → Check `SYSTEM$PIPE_STATUS`, verify stage files and notifications
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…
Use Cortex AI services — Cortex Analyst for natural-language-to-SQL through semantic views, Cortex Search for semantic search,…
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…
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.