本文へスキップ
Skillpedia
機械学習77k · #2453

Snowflake Automation

できること

このツールは、Snowflakeのデータベースとやり取りするのに役立ちます。どのデータベース、スキーマ、テーブルが存在するかを確認したり、SQLコマンドを実行したり、データの処理作業を管理したりできます。

使う場面

  • ✓利用可能なすべてのデータベースを確認したいとき。
  • ✓特定のスキーマの中から目的のテーブルを探したいとき。
  • ✓SQLコマンドを実行して、データを取得または変更したいとき。

スキルのリンク

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/snowflake-automation/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/snowflake-automation/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“'my_database'データベースの'public'スキーマにあるテーブルを、すべて一覧表示してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

Composioというツールを通じて、あなたのSnowflakeアカウントに接続します。その後、データベース、スキーマ、テーブルの一覧表示を依頼したり、あなたが書いたSQLコマンドの実行を依頼したりできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Snowflake Automation

Automate your Snowflake data warehouse workflows -- discover databases, browse schemas and tables, execute arbitrary SQL (SELECT, DDL, DML), and integrate Snowflake data operations into cross-app pipelines.

Toolkit docs: composio.dev/toolkits/snowflake


Setup

  1. Add the Composio MCP server to your client: https://rube.app/mcp
  2. Connect your Snowflake account when prompted (account credentials or key-pair authentication)
  3. Start using the workflows below

Core Workflows

1. List Databases

Use SNOWFLAKE_SHOW_DATABASES to discover available databases with optional filtering and Time Travel support.

Tool: SNOWFLAKE_SHOW_DATABASES
Inputs:
  - like_pattern: string (SQL wildcard, e.g., "%test%") -- case-insensitive
  - starts_with: string (e.g., "PROD") -- case-sensitive
  - limit: integer (max 10000)
  - history: boolean (include dropped databases within Time Travel retention)
  - terse: boolean (return subset of columns: created_on, name, kind, database_name, schema_name)
  - role: string (role to use for execution)
  - warehouse: string (optional, not required for SHOW DATABASES)
  - timeout: integer (seconds)

2. Browse Schemas

Use SNOWFLAKE_SHOW_SCHEMAS to list schemas within a database or across the account.

Tool: SNOWFLAKE_SHOW_SCHEMAS
Inputs:
  - database: string (database context)
  - in_scope: "ACCOUNT" | "DATABASE" | "<specific_database_name>"
  - like_pattern: string (SQL wildcard filter)
  - starts_with: string (case-sensitive prefix)
  - limit: integer (max 10000)
  - history: boolean (include dropped schemas)
  - terse: boolean (subset columns only)
  - role, warehouse, timeout: string/integer (optional)

3. List Tables

Use SNOWFLAKE_SHOW_TABLES to discover tables with metadata including row counts, sizes, and clustering keys.

Tool: SNOWFLAKE_SHOW_TABLES
Inputs:
  - database: string (database context)
  - schema: string (schema context)
  - in_scope: "ACCOUNT" | "DATABASE" | "SCHEMA" | "<specific_name>"
  - like_pattern: string (e.g., "%customer%")
  - starts_with: string (e.g., "FACT", "DIM", "TEMP")
  - limit: integer (max 10000)
  - history: boolean (include dropped tables)
  - terse: boolean (subset columns only)
  - role, warehouse, timeout: string/integer (optional)

4. Execute SQL Statements

Use SNOWFLAKE_EXECUTE_SQL for SELECT queries, DDL (CREATE/ALTER/DROP), and DML (INSERT/UPDATE/DELETE) with parameterized bindings.

Tool: SNOWFLAKE_EXECUTE_SQL
Inputs:
  - statement: string (required) -- SQL statement(s), semicolon-separated for multi-statement
  - database: string (case-sensitive, falls back to DEFAULT_NAMESPACE)
  - schema_name: string (case-sensitive)
  - warehouse: string (case-sensitive, required for compute-bound queries)
  - role: string (case-sensitive, falls back to DEFAULT_ROLE)
  - bindings: object (parameterized query values to prevent SQL injection)
  - parameters: object (Snowflake session-level parameters)
  - timeout: integer (seconds; 0 = max 604800s)

Examples:

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

Known Pitfalls

Pitfall Detail
Case sensitivity Database, schema, warehouse, and role names are case-sensitive in SNOWFLAKE_EXECUTE_SQL.
Warehouse required for compute SELECT and DML queries require a running warehouse. SHOW commands do not.
Multi-statement execution Multiple statements separated by semicolons execute in sequence automatically.
SQL injection prevention Always use the bindings parameter for user-supplied values to prevent injection attacks.
Pagination with LIMIT SHOW commands support limit (max 10000) and from_name for cursor-based pagination.
Time Travel Set history: true to include dropped objects still within the retention period.

Quick Reference

Tool Slug Description
SNOWFLAKE_SHOW_DATABASES List databases with filtering and Time Travel support
SNOWFLAKE_SHOW_SCHEMAS List schemas within a database or account-wide
SNOWFLAKE_SHOW_TABLES List tables with metadata (row count, size, clustering)
SNOWFLAKE_EXECUTE_SQL Execute SQL: SELECT, DDL, DML with parameterized bindings

Powered by Composio

よくある質問

Snowflakeとは何ですか?

Snowflakeは、クラウド上でデータを保存・処理するサービスです。情報を保管する大きなデジタル倉庫のようなものです。

データベース、スキーマ、テーブルとは何ですか?

データベースは大きな保管棚、スキーマはその棚の中の引き出し、テーブルは引き出しの中のファイルと考えるとわかりやすいです。これらによってデータを整理します。

SQLとは何ですか?

SQL(Structured Query Language)は、データベースとやり取りするための言語です。データの閲覧、追加、変更などを指示するときに使います。

詳細

作者による元の説明

Automate Snowflake data warehouse operations -- list databases, schemas, and tables, execute SQL statements, and manage data workflows via the Composio MCP integration.

repo: ComposioHQ/awesome-claude-skills

人気

GitHubのスター
77k
ランキング
#2453
ライセンス
—
更新日
2026/9/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル