Token导航 LogoToken导航

Agent Skill · 研究检索

omni-to-snowflake-semantic-view(omni TO Snowflake semantic view 搜索)

omni-to-snowflake-semantic-view 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

omni-to-snowflake-semantic-view 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 69,087。

总安装 220周安装 9GitHub Stars 12下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:omni-to-snowflake-semantic-view(omni TO Snowflake semantic view 搜索)
来源仓库:https://github.com/exploreomni/omni-agent-skills
仓库路径:skills/omni-to-snowflake-semantic-view
安装命令:
npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-snowflake-semantic-view
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-snowflake-semantic-view

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

omni-to-snowflake-semantic-view 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景从来源线索中获取信息的场景。

通过 npx skills add 命令安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/omni-to-snowflake-semantic-view

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

omni-to-snowflake-semantic-view 怎么安装?

在终端执行 npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-snowflake-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

omni-to-snowflake-semantic-view 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

omni-to-snowflake-semantic-view 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-snowflake-semantic-view 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

omni-to-snowflake-semantic-view 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

omni-to-snowflake-semantic-view 用的人多吗?

公开数据是累计安装 220 次,近一周安装 9 次,下载 71 次,GitHub 12 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

omni-to-snowflake-semantic-view 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
omni-to-snowflake-semantic-view

omni TO Snowflake semantic view 搜索 · 本页

22012执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Omni → Snowflake Semantic View

Converts an Omni topic into a Snowflake Semantic View YAML definition by first exploring the Omni model via API, then translating its definitions into the Snowflake Semantic View format.


Prerequisites

# Verify the Omni CLI is installed — if not, ask the user to install it
# See: https://github.com/exploreomni/cli#readme
command -v omni >/dev/null || echo "ERROR: Omni CLI is not installed."
# Show available profiles and select the appropriate one
omni config show
# If multiple profiles exist, ask the user which to use, then switch:
omni config use <profile-name>

Tip: Use -o json to force structured output for programmatic parsing, or -o human for readable tables. The default is auto (human in a TTY, JSON when piped).

Runtime Environment Detection

Before starting, determine which environment you are running in — this controls how SQL is executed against Snowflake in Step 7.

How to detect

Check for the presence of the built-in Snowflake SQL execution capability:

  • Cortex Code (Snowflake Notebooks / Cortex Analyst): Native SQL execution is available. No extra tooling required.
  • Claude Code, Cursor, or any external IDE/agent: No native Snowflake connection. You must use one of the CLI options below.

Detection heuristic

If the agent can execute a SQL statement like `SELECT CURRENT_USER()` directly without any shell command → you are in Cortex Code.
Otherwise → you are in an external environment.

If unsure, ask the user: *"Are you running this inside Snowflake (Cortex Code / Notebooks), or in an external tool like Claude Code or Cursor?"*

External environment: Snowflake connectivity options

For Claude Code, Cursor, or any terminal-based agent, choose one of the following. Check availability in order:

Option A — Snowflake CLI (snow) ✅ Recommended
# Check if available
command -v snow

# Configure a connection (first time)
snow connection add

# Execute SQL
snow sql -q "SELECT CURRENT_USER();" --connection <connection_name>

Set a default connection to avoid repeating --connection on every call:

snow connection set-default <connection_name>
Option B — SnowSQL (classic CLI)
# Check if available
command -v snowsql

# Execute SQL
snowsql -a <account> -u <user> -q "SELECT CURRENT_USER();"
Option C — Python (snowflake-connector-python)
pip install snowflake-connector-python
import snowflake.connector
conn = snowflake.connector.connect(
    account="<account>",
    user="<user>",
    password="<password>",   # or use key-pair / SSO
    warehouse="<warehouse>",
    database="<database>",
    schema="<schema>",
)
conn.cursor().execute("<SQL here>")
✋ STOP — Confirm the Snowflake connection method with the user before proceeding to Step 7. Record which method is being used so Step 7 generates the correct execution command.

Workflow

Step 1 — Gather Requirements

Ask the user:

  1. Which Topic do they want to convert?
  2. What should the Semantic View be named?
  3. Where should it be created in Snowflake (database and schema)?
  4. Which role should be granted access to the Semantic View?
⚠️ STOP — Confirm all four answers before proceeding.

Step 2 — Explore the Omni Model

2a. Find the model ID
omni models list --modelkind SHARED

Identify the Shared Model and note its id. Always prefer the Shared Model over Schema or Workbook models.

2b. Fetch the topic file
omni models yaml-get <modelId> --filename <topic_name>.topic
2c. Fetch the relationships file
omni models yaml-get <modelId> --filename relationships
2d. Fetch each view file referenced in the topic

For every view in base_view and joins, fetch its YAML:

omni models yaml-get <modelId> --filename <view_name>.view
If a view is prefixed with omni_dbt_, fetch the file that also starts with omni_dbt_ (e.g. omni_dbt_ecomm__order_items.view).

Step 3 — Identify Tables and Joins

Mapping view names to Snowflake tables

The base_view in the topic file is the primary table. Convert view names to Snowflake table references:

base_view / join valueSnowflake table
ecomm__order_itemsECOMM.ORDER_ITEMS
omni_dbt_ecomm__order_itemsECOMM.ORDER_ITEMS (strip omni_dbt_)

The __ separator maps to schema (left) and table name (right). If the schema does not exist in Snowflake, skip that table entirely.

Reading the join hierarchy

The joins parameter in the topic uses indentation to define the join chain — a table indented beneath another joins into its parent:

joins:
  user_order_facts: {}        # skip — this is a derived CTE, not a physical table
  ecomm__users: {}            # joins to base_view (ORDER_ITEMS)
  ecomm__inventory_items:     # joins to base_view (ORDER_ITEMS)
    ecomm__products:          # joins to INVENTORY_ITEMS
      demo__product_images: {}           # joins to PRODUCTS
      ecomm__distribution_centers: {}   # joins to PRODUCTS
Skip any view that is a derived table (CTE defined in SQL in Omni). These have no physical Snowflake table to reference.
Primary keys

In each view file, find the dimension with primary_key: true — this becomes the unique: true dimension in the Semantic View.

✋ STOP — Confirm the table list with the user before continuing.

Step 4 — Resolve the Field List

The topic's fields parameter controls which fields from the views are included in the Semantic View.

Field targeting rules
SyntaxMeaning
*(no fields parameter)*Include all fields from all views
all_views.*Include all fields from all views
view.*Include all fields in the named view
tag:<value>Include all fields tagged with this value
view.fieldInclude this specific field
-view.fieldExclude this specific field
How to apply exclusions correctly

Exclusions (prefixed with -) must be applied after all inclusions are resolved. The process is:

  1. Start with an empty inclusion set
  2. Process each entry in fields in order:

- If it is an inclusion rule (view.*, view.field, tag:x) → add matching fields to the set - If it is an exclusion rule (-view.field) → remove that field from the set, even if it was added by a wildcard

  1. The final set is the complete list of fields to include in the Semantic View

Example:

fields:
  - ecomm__order_items.*          # include all order_items fields
  - ecomm__users.country          # include this one users field
  - -ecomm__order_items.cost      # remove cost — excluded even though * was used above
  - -ecomm__order_items.raw_json  # remove raw_json — same reason

Result: all order_items fields except cost and raw_json, plus users.country.

⚠️ Critical: A - exclusion always wins. Never include a field that has been explicitly excluded, regardless of what wildcard included it.

Step 5 — Build Relationships

Using the join hierarchy from Step 3 and the relationships.yaml fetched in Step 2c, map each join to a Snowflake Semantic View relationship.

Each entry in relationships.yaml looks like:

- join_from_view: ecomm__order_items
  join_to_view: ecomm__inventory_items
  join_type: always_left
  on_sql: ${ecomm__order_items.inventory_item_id} = ${ecomm__inventory_items.id}
  relationship_type: assumed_many_to_one

The on_sql field tells you the join columns. Extract the column names to populate relationship_columns in the output.

Available relationship parameters:

ParameterDescription
join_from_viewSource view the join originates from
join_to_viewTarget view being joined to
join_typeSQL join type (e.g. always_left)
on_sqlSQL condition — extract column names from this
relationship_typeCardinality (e.g. assumed_many_to_one)
reversibleWhether the join is bi-directional
where_sqlAdditional WHERE clause when join is active

Step 6 — Map Dimensions and Measures

For each view in the resolved field list, translate its Omni field definitions into Semantic View entries.

⚠️ Only translate fields that survived the Step 4 inclusion/exclusion resolution. Do not add fields that were excluded.
Dimensions → dimensions or time_dimensions

The field name becomes the dimension name unless a label is defined. Carry description and synonyms directly.


Standard dimension:

# Omni view YAML
city:
  sql: '"CITY"'
  label: City
  description: Customer's city
# Semantic View output
- name: city
  expr: CITY
  description: Customer's city
  data_type: TEXT

Date/timestamp dimension → use time_dimensions:

# Omni
created_at:
  sql: '"CREATED_AT"'
  type: time
  label: Created At
# Semantic View output
time_dimensions:
  - name: created_at
    expr: CREATED_AT
    data_type: TIMESTAMP

Group dimension → translate to a CASE WHEN expression:

# Omni
device_type_groups:
  sql: ${device_type}
  label: Device Type Groups
  groups:
    - filter:
        is: [ mobile, tablet ]
      name: Handheld
    - filter:
        is: desktop
      name: Desktop
  else: Other
-- expr value
CASE
  WHEN "DEVICE_TYPE" IN ('mobile', 'tablet') THEN 'Handheld'
  WHEN "DEVICE_TYPE" = 'desktop' THEN 'Desktop'
  ELSE 'Other'
END

Bin dimension → translate to a CASE WHEN range expression:

# Omni
age_bin:
  sql: ${age}
  bin_boundaries: [ 18, 35, 50, 65 ]
-- expr value
CASE
  WHEN "AGE" < 18 THEN 'below 18'
  WHEN "AGE" >= 18 AND "AGE" < 35 THEN '>= 18 and < 35'
  WHEN "AGE" >= 35 AND "AGE" < 50 THEN '>= 35 and < 50'
  WHEN "AGE" >= 50 AND "AGE" < 65 THEN '>= 50 and < 65'
  WHEN "AGE" >= 65 THEN '65 and above'
  ELSE NULL
END

Duration dimension → translate to a TIMESTAMPDIFF expression:

# Omni
fulfillment_days:
  duration:
    sql_start: ${created_at[date]}
    sql_end: ${delivered_at[date]}
    intervals: [ days ]
-- expr value (days)
CASE
  WHEN TIMESTAMPADD(DAY, 1 * TIMESTAMPDIFF(DAY, DATE_TRUNC('DAY', "CREATED_AT"), DATE_TRUNC('DAY', "DELIVERED_AT")), DATE_TRUNC('DAY', "CREATED_AT"))
       <= DATE_TRUNC('DAY', "DELIVERED_AT")
  THEN TIMESTAMPDIFF(DAY, DATE_TRUNC('DAY', "CREATED_AT"), DATE_TRUNC('DAY', "DELIVERED_AT"))
  ELSE TIMESTAMPDIFF(DAY, DATE_TRUNC('DAY', "CREATED_AT"), DATE_TRUNC('DAY', "DELIVERED_AT")) - 1
END

Boolean dimension → becomes a named filter (not a dimension):

# Omni
is_returned:
  sql: '"IS_RETURNED"'
  description: Whether the item was returned

completed_orders:
  sql: ${status} = 'Complete'
  label: Completed Orders
# Semantic View output — goes in filters, not dimensions
filters:
  - name: is_returned
    expr: IS_RETURNED
    description: Whether the item was returned
  - name: completed_orders
    expr: STATUS = 'Complete'
    description: Completed Orders

Measures → metrics

The sql field references the source column and aggregate_type defines the aggregation.


Standard measure:

# Omni
total_sale_price:
  sql: ${sale_price}
  aggregate_type: sum
  label: Total Sale Price
  description: Total revenue of orders
  synonyms: [ Total Revenue, Total Receipts ]
# Semantic View output
metrics:
  - name: total_sale_price
    expr: COALESCE(SUM("SALE_PRICE"), 0)
    description: Total revenue of orders
    synonyms: [ Total Revenue, Total Receipts ]

Derived measure (no aggregate_type) — references other measures:

# Omni
gross_margin:
  sql: ${total_sale_price} - ${total_cost}
  label: Gross Margin
# Semantic View output — top-level derived metric
metrics:
  - name: gross_margin
    expr: total_sale_price - total_cost

Filtered measure → wraps in CASE WHEN:

# Omni
california_revenue:
  sql: ${sale_price}
  aggregate_type: sum
  filters:
    users.state:
      is: California
-- expr value
COALESCE(SUM(CASE WHEN "users"."STATE" = 'California' THEN "SALE_PRICE" ELSE NULL END), 0)

Array and boolean filter variants:

# is: [New York, New Jersey]  →  "STATE" IN ('New York', 'New Jersey')
# is: true                    →  field IS TRUE

AI Context → module_custom_instructions

If the topic has an ai_context parameter, include it as:

module_custom_instructions:
  question_categorization: <ai_context value>

Sample Queries → verified_queries

Convert each entry under sample_queries into a SQL statement for verified_queries. Use the prompt as the question and the description as context for writing the SQL.

✋ STOP — Review all dimensions, measures, and relationships with the user before generating the final output.

Step 7 — Generate and Execute the Semantic View

Output YAML structure
name: <name>
description: <string>

tables:
  - name: <name>
    description: <string>
    base_table:
      database: <database>
      schema: <schema>
      table: <table name>

    dimensions:
      - name: <name>
        synonyms: [ <string>, ... ]
        description: <string>
        expr: <SQL expression>
        data_type: <data type>
        unique: <boolean>

    time_dimensions:
      - name: <name>
        synonyms: [ <string>, ... ]
        description: <string>
        expr: <SQL expression>
        data_type: <data type>

    facts:
      - name: <name>
        synonyms: [ <string>, ... ]
        description: <string>
        expr: <SQL expression>
        data_type: <data type>

    metrics:
      - name: <name>
        synonyms: [ <string>, ... ]
        description: <string>
        expr: <SQL expression>

    filters:
      - name: <name>
        synonyms: [ <string>, ... ]
        description: <string>
        expr: <SQL expression>

relationships:
  - name: <string>
    left_table: <table>
    right_table: <table>
    relationship_columns:
      - left_column: <column>
        right_column: <column>

metrics:
  - name: <name>
    synonyms: [ <string>, ... ]
    description: <string>
    expr: <SQL expression>

verified_queries:
  - name: <string>
    question: <string>
    sql: <string>
    use_as_onboarding_question: <boolean>
Valid top-level keys only: name, description, tables, relationships, metrics, verified_queries, module_custom_instructions

Create the Semantic View

The SQL is the same regardless of environment. The difference is *how* it is executed.

SQL to run:

CALL SYSTEM$CREATE_SEMANTIC_VIEW_FROM_YAML('<database>.<schema>', $$
<yaml content here>
$$);

Execution by environment:

EnvironmentCommand
Cortex CodeExecute the SQL directly in the active Snowflake session
snow CLIsnow sql -q "CALL SYSTEM$CREATE_SEMANTIC_VIEW_FROM_YAML(...)" or write YAML to a temp file and pipe it
SnowSQLsnowsql -a <account> -u <user> -f <sql_file.sql>
Pythonconn.cursor().execute("<sql>")
Tip for CLI environments: If the YAML is long, write it to a temporary .sql file first and execute the file rather than passing it inline — this avoids shell escaping issues with the $$ dollar-quoting.
# snow CLI example with a file
snow sql -f /tmp/create_semantic_view.sql
Grant access
GRANT SELECT ON SEMANTIC VIEW <database>.<schema>.<name> TO ROLE <role>;

Execute this the same way as the CREATE call above, using whichever connection method was established during the Runtime Environment Detection step.


Reference

平台分布

Codex

36.77%
按下载量换算26

Claude

26.95%
按下载量换算19

Cursor

20.63%
按下载量换算15

Gemini CLI

9.53%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/exploreomni/omni-agent-skills --skill omni-to-snowflake-semantic-view 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills