Community研究與資料分析github.com

ComposioHQ/Snowflake-Automation

透過 Composio MCP 整合自動化 Snowflake 資料倉儲操作,包括列出資料庫、結構描述與資料表,執行 SQL 陳述式,以及管理工作流程。

Snowflake-Automation 是什麼?

這個技能透過 Composio MCP 整合,為開發者與 AI 代理提供自動化 Snowflake 資料倉儲作業的能力。使用者可以發現資料庫、瀏覽結構描述與資料表、執行任意 SQL(SELECT、DDL、DML),並將 Snowflake 資料操作整合到跨應用程式的管線中。支援的平台包括所有相容 MCP 的用戶端(例如 Claude Code、Cursor、Codex),設定方式為新增 Composio MCP 伺服器並連結 Snowflake 帳戶。核心功能分為四大工作流程:列出資料庫(支援篩選與 Time Travel)、瀏覽結構描述、列出資料表(含資料列計數、大小與叢集鍵等中繼資料),以及透過參數化繫結安全執行 SQL 陳述式。已知陷阱包括名稱區分大小寫、計算密集型查詢需使用倉儲、多陳述式執行、SQL 注入防護建議、透過 LIMIT 進行分頁,以及透過 history 旗標支援 Time Travel。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/snowflake-automation

Installed? Explore more 研究與資料分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Snowflake 自動化

自動化您的 Snowflake 資料倉儲工作流程 — 探索資料庫、瀏覽結構描述與資料表、執行任意 SQL(SELECT、DDL、DML),並將 Snowflake 資料操作整合到跨應用程式的管線中。

工具組文件: composio.dev/toolkits/snowflake


設定

  1. 將 Composio MCP 伺服器新增到您的用戶端:https://rube.app/mcp
  2. 在提示時連結您的 Snowflake 帳戶(帳戶憑證或金鑰對驗證)
  3. 開始使用下列工作流程

核心工作流程

1. 列出資料庫

使用 SNOWFLAKE_SHOW_DATABASES 來探索可用的資料庫,支援選擇性篩選與 Time Travel 支援。

工具:SNOWFLAKE_SHOW_DATABASES
輸入:
  - like_pattern:字串(SQL 萬用字元,例如 "%test%")— 不區分大小寫
  - starts_with:字串(例如 "PROD")— 區分大小寫
  - limit:整數(最大 10000)
  - history:布林值(在 Time Travel 保留期限內包含已刪除的資料庫)
  - terse:布林值(僅傳回部份欄位:created_on、name、kind、database_name、schema_name)
  - role:字串(執行時使用的角色)
  - warehouse:字串(對 SHOW DATABASES 為選填)
  - timeout:整數(秒)

2. 瀏覽結構描述

使用 SNOWFLAKE_SHOW_SCHEMAS 來列出資料庫內或跨帳戶的結構描述。

工具:SNOWFLAKE_SHOW_SCHEMAS
輸入:
  - database:字串(資料庫環境)
  - in_scope:"ACCOUNT" | "DATABASE" | "<特定資料庫名稱>"
  - like_pattern:字串(SQL 萬用字元篩選)
  - starts_with:字串(區分大小寫的前綴)
  - limit:整數(最大 10000)
  - history:布林值(包含已刪除的結構描述)
  - terse:布林值(僅部份欄位)
  - role、warehouse、timeout:字串/整數(選填)

3. 列出資料表

使用 SNOWFLAKE_SHOW_TABLES 來探索資料表,包含資料列計數、大小與叢集鍵等中繼資料。

工具:SNOWFLAKE_SHOW_TABLES
輸入:
  - database:字串(資料庫環境)
  - schema:字串(結構描述環境)
  - in_scope:"ACCOUNT" | "DATABASE" | "SCHEMA" | "<特定名稱>"
  - like_pattern:字串(例如 "%customer%")
  - starts_with:字串(例如 "FACT"、"DIM"、"TEMP")
  - limit:整數(最大 10000)
  - history:布林值(包含已刪除的資料表)
  - terse:布林值(僅部份欄位)
  - role、warehouse、timeout:字串/整數(選填)

4. 執行 SQL 陳述式

使用 SNOWFLAKE_EXECUTE_SQL 執行 SELECT 查詢、DDL(CREATE/ALTER/DROP)與 DML(INSERT/UPDATE/DELETE),並支援參數化繫結。

工具:SNOWFLAKE_EXECUTE_SQL
輸入:
  - statement:字串(必填)— SQL 陳述式,以分號分隔多個陳述式
  - database:字串(區分大小寫,若未提供則回退至 DEFAULT_NAMESPACE)
  - schema_name:字串(區分大小寫)
  - warehouse:字串(區分大小寫,計算密集型查詢必填)
  - role:字串(區分大小寫,回退至 DEFAULT_ROLE)
  - bindings:物件(參數化查詢值,防止 SQL 注入)
  - parameters:物件(Snowflake 工作階段層級參數)
  - timeout:整數(秒;0 表示最大 604800 秒)

範例:

  • "SELECT * FROM my_table LIMIT 100;"
  • "CREATE TABLE test (id INT, name STRING);"
  • "ALTER SESSION SET QUERY_TAG='mytag'; SELECT COUNT(*) FROM my_table;"

已知陷阱

陷阱詳細說明
區分大小寫在 SNOWFLAKE_EXECUTE_SQL 中,資料庫、結構描述、倉儲與角色名稱皆區分大小寫。
計算密集型查詢需要倉儲SELECT 與 DML 查詢需要正在執行的倉儲。SHOW 命令則不需要。
多陳述式執行以分號分隔的多個陳述式會自動依序執行。
SQL 注入防護使用者提供的值應一律使用 bindings 參數,以防止注入攻擊。
使用 LIMIT 分頁SHOW 命令支援 limit(最大 10000)與 from_name 以進行游標式分頁。
Time Travel設定 history: true 以包含仍在保留期限內的已刪除物件。

快速參考

工具代稱說明
SNOWFLAKE_SHOW_DATABASES列出資料庫,支援篩選與 Time Travel
SNOWFLAKE_SHOW_SCHEMAS列出資料庫內或帳戶範圍的結構描述
SNOWFLAKE_SHOW_TABLES列出資料表,含中繼資料(資料列計數、大小、叢集)
SNOWFLAKE_EXECUTE_SQL執行 SQL:SELECT、DDL、DML,支援參數化繫結

由 Composio 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能