Kaelio/ktx✦ 精选0°

sl

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

官方语义层规格与查询指南,是理解并正确使用 ktx 指标的关键文档。

这个 Skill 做什么

ktx 的语义层规范,定义源、度量、joins 与通过 sl_query 的查询方式。

把 ktx 的语义层用结构化的 YAML 方式描述清楚:哪些 source 是表或视图、有哪些 measure、如何 join、以及常用的 segments。当你需要通过 sl_query 拉取 ARR、MAU、LTV、留存等预定义指标或理解目录时就用它。目的就是把业务度量做成单一、可复用的真相来源,减少各处算法不一致的麻烦。

▸ 展开 SKILL.md 英文原文

ktx's semantic layer - a structured catalog of sources (tables/views), measures, joins, and segments expressed as YAML. Covers the schema and how to query it via `sl_query`. Use when the task involves querying pre-defined metrics (ARR, churn, retention, LTV, MAU) or reading SL source YAML to understand the catalog. Capture is handled by the `sl_capture` skill (memory-agent only).

数据与抓取语义层目录规范查询指南通用
1.5k
Stars
96
Forks
17
仓库内 Skill
+49
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/sl/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/sl/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Semantic Layer

ktx's semantic layer (SL) is a structured catalog. Each **source** represents a table, a SQL view, or an overlay that enriches a manifest-backed table with measures, computed columns, joins, and named segments. The catalog is the single source of truth for reusable business metrics.

This skill covers two parts:
- **Part 1** - Schema reference (what an SL source looks like).
- **Part 2** - Querying via `sl_query`.

Capture (when and how to add new patterns to the SL) is a separate concern handled by the memory-agent - see the `sl_capture` skill if you are running in capture mode. The research agent **reads** and **queries** the SL via the tools described here; it does not w
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有