Snowflake Automation
Skill này làm gì
Công cụ này giúp bạn làm việc với cơ sở dữ liệu Snowflake. Bạn có thể xem những cơ sở dữ liệu, schema và bảng nào đang tồn tại, chạy lệnh SQL và quản lý quy trình dữ liệu.
Khi nào nên dùng
- ✓Khi bạn muốn xem tất cả cơ sở dữ liệu có sẵn.
- ✓Khi bạn cần tìm các bảng cụ thể trong một schema.
- ✓Khi bạn muốn chạy một lệnh SQL để lấy hoặc thay đổi dữ liệu.
Liên kết skill
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/snowflake-automation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Liệt kê tất cả bảng trong schema “public” của cơ sở dữ liệu “my_database”.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn kết nối tài khoản Snowflake của mình thông qua một công cụ tên Composio. Sau đó, bạn có thể yêu cầu nó liệt kê cơ sở dữ liệu, schema hoặc bảng, hoặc chạy các lệnh SQL do bạn viết.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Add the Composio MCP server to your client:
https://rube.app/mcp - Connect your Snowflake account when prompted (account credentials or key-pair authentication)
- 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
Câu hỏi thường gặp
Snowflake là gì?
Snowflake là dịch vụ lưu trữ và xử lý dữ liệu trên đám mây, giống như một kho dữ liệu lớn trên mạng.
Cơ sở dữ liệu, schema và bảng là gì?
Hãy hình dung cơ sở dữ liệu là một tủ lớn, schema là một ngăn kéo trong tủ, còn bảng là một tệp trong ngăn kéo đó. Chúng giúp sắp xếp dữ liệu.
SQL là gì?
SQL (Structured Query Language) là ngôn ngữ dùng để giao tiếp với cơ sở dữ liệu, như yêu cầu xem, thêm hoặc thay đổi dữ liệu.
Chi tiết
Mô tả gốc của tác giả
Automate Snowflake data warehouse operations -- list databases, schemas, and tables, execute SQL statements, and manage data workflows via the Composio MCP integration.
Độ phổ biến
- Sao GitHub
- 77k
- Vị trí xếp hạng
- #2453
- Giấy phép
- —
- Cập nhật
- 18/9/2026
Bình luận
- …
Thêm skill từ kho mã này
artifacts-builder
77kGiúp agent của bạn xây dựng giao diện người dùng phức tạp. Dùng công nghệ hiện đại để tạo trang web tương tác phong phú.
brand-guidelines
77kGiúp agent của bạn áp dụng màu sắc và phông chữ thương hiệu chính thức cho tài liệu. Giữ bản sắc trực quan cho mọi nội dung cần đúng phong cách công ty.
canvas-design
77kGiúp agent của bạn tạo tác phẩm nghệ thuật gốc dạng .png và .pdf. Dùng khi cần poster, tranh nghệ thuật hoặc thiết kế tĩnh khác.
changelog-generator
77kGiúp agent của bạn tạo ghi chú phát hành dành cho người dùng từ các commit mã. Biến thông tin kỹ thuật thành văn bản dễ hiểu.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.