lookml_ingest
仓库创建 2026年5月11日最近提交 7 天前SkillHot 收录 20 天前
▸ 精选理由
提供详尽映射表与示例,便于把 LookML 资产系统化导入 ktx。
▸ 风险提示
需要读取项目内的 LookML 文件与配置,可能涉及敏感仓库访问。
这个 Skill 做什么
将 LookML view/model/explore 映射为 ktx 语义层源并处理继承与 join 等关系。
把 LookML 的 view/model/explore 转成 ktx 的语义层源,自动处理继承、join 和来源标注,让 LookML 的度量和维度在语义层里能被正确识别。手上有 .lkml 文件或要把 LookML 内容整合进语义层时用。特别能识别三种落盘形态(覆盖式、由 derived_table 单独成源、带 sql_always_where 的独立源),并生成相应的 provenance 标签。
▸ 展开 SKILL.md 英文原文
Map a LookML view/model/explore into ktx semantic layer sources. Covers the LookML to ktx primitive table, provenance tagging, and three worked examples (overlay, standalone from derived_table, standalone with sql_always_where). Load when the turn contains `.lkml` content.
1.5k
Stars
96
Forks
17
仓库内 Skill
+49
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/lookml_ingest/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/lookml_ingest/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# LookML to ktx Semantic Layer
LookML views map to SL sources, `measure:` to measures, `explore: { join: }` to the join graph. This skill lays out the mapping and the three capture shapes.
## Mapping table
| LookML | ktx form | Notes |
|---|---|---|
| `view: X { sql_table_name: …; measure:/dimension:/join: }` | **Overlay** named `X` with `measures`, computed-only `columns`, `column_overrides`, `joins`, `segments` | Manifest-backed; inherit grain/columns |
| `view: X { derived_table: { sql: … } }` | **Standalone** with top-level `sql:`, explicit `grain:` + `columns:` | No manifest entry exists |
| `view: X { sql_always_where: <p> }` | **Standalone** with `sql: SELECT * FROM <base> WHERE <pvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有