cortex-code
БесплатноЗапускает вложенные скриптыНе проверенRoutes Snowflake-related operations to Cortex Code agent for specialized Snowflake expertise. Use when querying databases, checking data quality, or asking…
от Snowflake-Labs★ 65 звёзд на GitHubОб этом скилле
Cortex Code Integration
Routes Snowflake queries to Cortex Code agent with conversation context enrichment.
When to Use
Use this skill when the user asks about:
- Snowflake databases, warehouses, schemas, tables, views
- SQL queries for Snowflake data ("How many databases?", "Show top customers")
- Data quality checks, validation, profiling
- Cortex AI features (Cortex Search, Cortex Analyst, ML functions)
- Semantic views, data modeling
- Snowpark, dynamic tables, streams, tasks
- Snowflake security, roles, policies, governance
Instructions
Step 1: Build Enriched Context
Before executing, build an enriched prompt that includes:
Conversation Context (if relevant):
- Previous 2-3 exchanges from this conversation
- Any Snowflake-specific details already discussed
- User's stated goals or requirements
User's Question:
- The current query being asked
Step 2: Execute with Context
Pass the enriched context to Cortex Code:
python3 scripts/execute_cortex.py \
--prompt "# Conversation Context
[relevant prior exchanges if any]
# Current Question
[USER'S QUESTION]" \
--envelope "RO"
Example with Context
If user previously asked "Which databases have stock data?" and now asks "Show me the schema for the main table":
python3 scripts/execute_cortex.py \
--prompt "# Recent Context
User previously identified databases with stock data: DB_STOCK, FINANCE__ECONOMICS
# Current Question
Show me the schema for the main table in DB_STOCK" \
--envelope "RO"
Example without Context
For standalone questions:
python3 scripts/execute_cortex.py \
--prompt "How many databases do I have in Snowflake?" \
--envelope "RO"
How It Works
- Agent builds enriched prompt with conversation context
- Routes to Cortex Code agent (headless execution)
- Cortex executes
cortexCLI with stream-json format - Runs SQL queries via
snowflake_sql_executetool - Returns formatted results with analysis
Configuration
- Approval mode: prompt by default; request user approval before execution
- Security envelope: RO for reads; RW only for approved writes
- Connection: Uses default Snowflake connection from cortex CLI
Установить cortex-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cortex-code?
Routes Snowflake-related operations to Cortex Code agent for specialized Snowflake expertise. Use when querying databases, checking data quality, or asking about Snowflake features.
Как установить скилл cortex-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cortex-code запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic