metricflow_ingest

仓库创建 2026年5月11日最近提交 7 天前SkillHot 收录 20 天前
▸ 精选理由

覆盖度量类型与继承展平,便于将 MetricFlow 指标迁移到 ktx。

▸ 风险提示

需读取 MetricFlow 项目文件或导出,存在对内部指标定义的访问需求。

这个 Skill 做什么

将 MetricFlow 的 semantic_model 或 metric 映射并加载为 ktx 语义层源。

把 MetricFlow 的 semantic_model 或 metric 映射并加载为 ktx 的语义层数据源,自动处理 extends 继承扁平化、各种 metric 类型(simple/derived/ratio/cumulative/conversion)和 model: ref('x') 的解析。适合把 MetricFlow 项目迁移到 ktx 或从 YAML 导入语义定义时使用,并附带实例帮助验证映射细节。

数据与抓取MetricFlow度量映射继承展平通用
1.5k
Stars
96
Forks
17
仓库内 Skill
+49
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/metricflow_ingest/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/metricflow_ingest/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
---
name: metricflow_ingest
description: Map a MetricFlow semantic_model or metric into ktx semantic layer sources. Covers the MetricFlow to ktx primitive table, `extends:` inheritance flattening, metric-type handling (simple / derived / ratio / cumulative / conversion), `model: ref('x')` resolution, and four worked examples. Load when the turn contains `.yml`/`.yaml` files with top-level `semantic_models:` or `metrics:`.
callers: [memory_agent]
---

# MetricFlow to ktx Semantic Layer

A MetricFlow `semantic_model` maps to an SL source; MetricFlow `measures` map to ktx measures; MetricFlow `entities` map to ktx `joins`; MetricFlow `metrics` (top-level) map to ktx measures OR to cross-model d
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有