Skip to main content
skill CX Codex

cortex-code — Claude Code skill: Snowflake operations routing

Routes Snowflake requests to Cortex Code CLI. Triggers on Snowflake SQL, Cortex AI, Snowpark, and data warehouse queries.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Snowflake-Labs/subagent-cortex-code --skill cortex-code -a claude-code
Open on GitHub

What cortex-code does

The skill uses LLM-based routing: mentions of Snowflake databases, dynamic tables, Cortex Search, or Analyst invoke Cortex Code in headless mode. Local files, other databases, and web tasks stay with the main agent. On first load, discover_cortex.py caches Cortex skill metadata in ~/.cache/cortex-skill/; repeat queries skip initialization.

A security wrapper offers three approval modes: prompt asks the user before execution, auto and envelope_only approve automatically and write audit logs. Mode is set in config.yaml (defaults to prompt if the file is absent). Requires Cortex Code CLI installed; without it, routing will fail.

What it helps with

  • delegate Snowflake SQL queries to a specialized agent
  • call Cortex AI functions and Snowpark without switching tools
  • log warehouse operations for compliance audit
  • separate Snowflake tasks from local development in one agent
  • cache Cortex skill metadata to skip repeated discovery

Example prompts for the agent

  • Show schemas in my Snowflake warehouse
  • Run a Cortex Search query on the orders table
  • Build a Snowpark model for sales forecasting

How to install cortex-code

1Skills CLI (Vercel)

npx skills add Snowflake-Labs/subagent-cortex-code --skill cortex-code -a claude-code

2Manually: put the files in place

~/.claude/skills/cortex-code/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cortex-code/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cortex-code

How to install cortex-code in Claude Code?

Run npx skills add Snowflake-Labs/subagent-cortex-code --skill cortex-code -a claude-code, the skill appears in ~/.claude/skills/cortex-code/SKILL.md.

What does cortex-code do?

The skill routes Snowflake requests to Cortex Code CLI: SQL, Cortex AI, Snowpark, data warehouses. Everything else stays with the main agent.

What does cortex-code require to work?

Cortex Code CLI installed and an active Snowflake connection. Check with which cortex — if not found, the skill will not run.

Similar skills

All skills for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor