Published by Snowflake in the Snowflake-Labs/subagent-cortex-code repository, this skill makes a general coding agent defer to a specialist. Snowflake questions — warehouses, Snowpark, dynamic tables, Cortex AI features, governance — are handed to the Cortex Code CLI running headless, while everything else stays with the agent you started in.
It discovers what it can delegate rather than hardcoding a list. At session start it runs cortex skill list, reads each bundled skill's SKILL.md frontmatter and trigger patterns, and caches the result, so the routing table tracks whatever version of Cortex Code is installed. Routing itself is semantic rather than keyword matching: a script classifies each request and returns a decision with a confidence score, and the skill is explicit about what must not be routed — general programming, local file operations, non-Snowflake databases, web development, unrelated infrastructure.
The security design is the part worth reading before adoption, because this is a skill that hands prompts to another executable against production data. Three approval modes trade safety against friction: prompt shows predicted tools and confidence and waits for the user, which Snowflake recommends for interactive and production use; auto approves everything but makes audit logging mandatory; envelope_only skips tool prediction for lower latency and relies on the envelope blocklist. Underneath sit prompt sanitisation with PII removal and injection detection, credential-path blocking that refuses to route when secrets are detected, SHA256-validated caching, structured JSONL audit logs, and an enterprise policy file that lets an organisation override the configuration centrally.
Requires the Cortex Code CLI installed and configured. Released under a proprietary Snowflake licence — check the repository's LICENSE before use in a commercial setting.