From bootstrap-tools
Invoke Snowflake Cortex Code CLI for complex Snowflake-native workflows: deploying Streamlit apps, creating Cortex Agents, building Snowflake Intelligence agents, generating dbt models, schema discovery, and catalog exploration. Use when the task requires Snowflake-native capabilities beyond raw SQL. Do not use for simple SQL queries (use snow sql instead). Triggers on "cortex", "cortex code", "cortex agent", "streamlit deploy", "snowflake intelligence", "snowflake agent".
How this skill is triggered — by the user, by Claude, or both
Slash command
/bootstrap-tools:cortex-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Cortex Code is Snowflake's AI coding agent CLI (built on Claude Code). It has native access to
Cortex Code is Snowflake's AI coding agent CLI (built on Claude Code). It has native access to Snowflake schema introspection, SQL execution, Streamlit deployment, Cortex Agent creation, dbt model generation, and Airflow DAG optimization.
| Task | Tool |
|---|---|
| Run a SQL query | snow sql -q "SELECT ..." |
| List/manage Snowflake objects | snow object list ... |
| Deploy a Streamlit app | cortex |
| Create a Cortex Agent | cortex |
| Build a Snowflake Intelligence agent | cortex |
| Generate dbt models from schema | cortex |
| Explore schema, lineage, RBAC | cortex |
| Optimize Airflow DAGs | cortex |
| Complex multi-step Snowflake workflows | cortex |
Rule of thumb: If it's a single SQL statement or object operation, use snow. If it requires
Snowflake-native AI capabilities, schema awareness, or multi-step orchestration, use cortex.
cortex -p "your prompt here" -c <connection> --dangerously-allow-all-tool-calls
cortex -p "your prompt here" -c <connection> --dangerously-allow-all-tool-calls --output-format stream-json
cortex -p "your prompt here" -c <connection> -w /workspace/group --dangerously-allow-all-tool-calls
| Flag | Purpose |
|---|---|
-p "prompt" | Non-interactive: pass prompt, print response, exit |
-c <connection> | Select Snowflake connection from connections.toml |
-w <path> | Working directory for file operations |
--dangerously-allow-all-tool-calls | Skip permission prompts (required for non-interactive use) |
--output-format stream-json | JSON output for scripting/parsing |
-m <model> | Override AI model (default: auto) |
--continue | Resume most recent conversation |
-r <session-id> | Resume specific session |
Cortex Code reads connections from ~/.snowflake/connections.toml (same as snow CLI). Always
specify -c <connection> to target the correct Snowflake account. Available connections depend
on which are configured for your environment.
cortex -p "Create a Cortex Agent for inventory management that can answer questions about stock levels, reorder points, and supplier lead times using the INVENTORY schema in the ANALYTICS database. Deploy it to Snowflake Intelligence." -c apollo -w /workspace/group --dangerously-allow-all-tool-calls
cortex -p "Build an interactive Streamlit dashboard showing revenue by region with date filters using the SALES_MART.REVENUE table. Deploy it to Snowflake." -c apollo -w /workspace/group --dangerously-allow-all-tool-calls
cortex -p "Create dbt staging models for all tables in the RAW.STRIPE schema. Follow the dbt style guide with proper materialization configs and tests." -c apollo -w /workspace/group --dangerously-allow-all-tool-calls
cortex -p "List all tables tagged with PII=TRUE and show their data lineage" -c apollo --dangerously-allow-all-tool-calls
-w to control where files land.~/.snowflake/cortex/conversations/. Use --continue or -r to resume.npx claudepluginhub davekim917/bootstrap --plugin bootstrap-toolsAssists with Snowflake SQL best practices, data pipelines (Dynamic Tables, Streams, Tasks, Snowpipe), Cortex AI, Snowpark Python, dbt, performance tuning, and security hardening.
ONLY load this skill when the user explicitly types $cortex-run or /cortex-run. NEVER load this skill from auto-routing hooks or keyword matching. For auto-routed prompts, use cortex-code:cortex-router instead.
Provides Snowflake architecture blueprints: traditional data warehouse, Iceberg lakehouse, data mesh with sharing. Includes diagrams and SQL for multi-scale deployments.