Kaelio/ktx✦ 精选0°

sl_capture

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

帮助团队把业务度量和共通模式抽象成可复用的 catalog,提升长期维护性。

这个 Skill 做什么

指导何时以及如何将可复用的度量、段或 join 捕获进 ktx 的语义层目录。

告诉你什么时候该把可复用的度量、segment 或 join 捕获到 ktx 的语义层目录(semantic layer),以及如何写得通用、易维护、不会膨胀。用在一次查询或对话产生了能重复用的业务指标或派生视图、想把它留在目录里避免重复造轮子时。注意由 post-turn memory-agent 写入,research agent 不会写入 SL。

▸ 展开 SKILL.md 英文原文

How to capture new reusable patterns into ktx's semantic layer - when a measure, segment, or join belongs in the catalog and how to write it generically so it stays small and useful over time. Loaded by the post-turn memory-agent only. The research agent does not write to the SL.

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

This skill covers **when** and **how** to capture new patterns into the semantic layer. For schema reference and query grammar, load the `sl` skill first.

When the current turn produces a reusable pattern (business metric, derived view, join pattern, computed dimension), capture it so future queries can reach for it instead of rediscovering it.

## SQL dialect

The user-facing prompt includes a `Warehouse:` line under the SL Sources index
(e.g. `Warehouse: BIGQUERY`). All `expr` strings - measure expressions, segment
predicates, computed-column SQL - execute on that warehouse and must use its
syntax. Date arithmetic in particular varies by dialect:

- **BigQuery*
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有