dbt 语义层与指标建模
原名:building-dbt-semantic-layer
把指标、维度和实体写成一致定义,减少不同报表各算一套。
中文 Skills 技能说明
适合建立销售额、转化率或累计指标的统一定义。提供业务规则和现有模型,先判断项目采用的语义层规格,再编写语义模型、实体、维度和时间配置,输出 YAML 草稿与验证步骤。不能擅自改变业务口径或把技术示例当成公司规则。需要兼容的 dbt、MetricFlow 或授权语义层环境,云能力可能另收费。修改与部署先展示影响,验证使用脱敏样本,不能默认读取全部业务数据。
上游能力依据
上游原始适用说明:Use when creating or modifying dbt Semantic Layer components — semantic models, metrics, dimensions, entities, measures, or time spines. Covers MetricFlow configuration, metric types (simple, derived, cumulative, ratio, conversion), and validation for both latest and legacy YAML specs.
上游 SKILL.md 主要章节(保留原文标题):
- Additional Resources
- Determine Which Spec to Use
- Step 1: Check for Existing Semantic Layer Config
- Step 2: Route Based on What You Found
- Step 3: Follow the Spec-Specific Guide
- Entry Points
- Business Question First
- Model First
- Open Ended
- Metric Types
使用边界
先确认数据口径、只读或写入权限以及备份方案。查询结果需要说明范围,任何结构或数据变更都应先预览并人工确认。
作者、翻译与许可证
- 原作者
- dbt Labs 与 dbt-agent-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- Apache-2.0
- 上游来源
- https://github.com/dbt-labs/dbt-agent-skills/tree/168a2b0b92da59be88866257140907c206ff0e44/skills/dbt/skills/building-dbt-semantic-layer
适用范围
平台:linux、macos、windows;标签:数据与数据库、dbt 语义层与指标建模、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。