The master skill in PlanetScale's official pack: runs a full read-only best-practices assessment of a database or org, then produces one evidence-backed report.
Snowflake Cortex Code RouterSkill
Summary
Snowflake's official skill that routes Snowflake work from Claude Code to the Cortex Code CLI, with semantic routing, approval modes and audit logging.
Features
- Semantic routing with confidence scores, not keyword matching
- Dynamic discovery of Cortex Code capabilities at session start
- Three approval modes: prompt, auto, and envelope_only
- Prompt sanitisation with PII removal and injection detection
- Credential-path blocking and structured JSONL audit logging
- Enterprise policy override via ~/.snowflake/cortex/claude-skill-policy.yaml
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
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.
Related Skills
Build crash-safe AI agents on AgentKit and step.ai — durable tool calls, human-in-the-loop approval, realtime progress, and when not to reach for an agent loop at all.
Inngest's durable-execution playbook as an agent skill — steps and memoisation, event and cron triggers, idempotency, cancellation, retries and non-retriable errors.
Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.