cortex-code

Route Snowflake operations to Cortex Code CLI for headless execution.

56|8|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/Snowflake-Labs/subagent-cortex-code --skill cortex-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cortex-code
Source: https://github.com/Snowflake-Labs/subagent-cortex-code/tree/main
Command: npx skills add https://github.com/Snowflake-Labs/subagent-cortex-code --skill cortex-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Route Snowflake-related operations to Cortex Code CLI for headless execution and expert processing.

Core Features & Use Cases

  • Semantic routing of Snowflake queries to Cortex Code CLI in headless mode
  • Security envelopes with approval modes, prompt sanitization, and audit logging
  • Context enrichment by passing relevant conversation context to Cortex Code
  • Enterprise-grade readiness with organization policy overrides and secure caching

Quick Start

Load the cortex-code skill and start asking Snowflake questions to route them to Cortex Code automatically.

Frequently Asked Questions about cortex-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route Snowflake queries to a coding agent for headless execution?

You can route Snowflake queries to a coding agent for headless execution by loading the cortex-code skill, which uses semantic LLM-based routing to automatically direct database, schema, and Snowpark operations to Cortex Code CLI.

What security features are available when automating Snowflake operations through a coding agent?

Automating Snowflake operations through a coding agent provides security envelopes with configurable approval modes, prompt sanitization, credential protection, audit logging, and organization-policy overrides to ensure secure enterprise execution.

Can I use Cortex Code to manage Snowflake data governance and Snowpark workflows?

Yes, you can use Cortex Code to manage Snowflake data governance and Snowpark workflows because the skill supports dynamic capability discovery for Snowflake-specific tasks, automatically routing them for expert processing.

Do I need to install pyyaml to route Snowflake operations to Cortex Code?

Yes, you need to install pyyaml because it is a required dependency for the cortex-code skill to function properly and enable its routing, security, and execution features.

What is the best way to securely execute Snowflake database queries in an automated workflow?

The best way to securely execute Snowflake database queries in an automated workflow is using a routing skill with built-in security envelopes, which provides prompt sanitization and audit logging for headless processing.

How does LLM-based routing work for Snowflake operations?

LLM-based routing for Snowflake operations works through dynamic capability discovery, evaluating your requests and automatically passing relevant conversation context to direct database and schema queries to the appropriate Cortex Code CLI functions.