Tooluck logoTooluck
SKILL.md

sl

Agent skill fromKaelio/ktx

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).

How to install sl

install sl
# install the ktx pack with the skills CLI
npx skills add Kaelio/ktx

# or add only this skill to Claude Code: copy the folder

packages/cli/src/skills/sl/

# into

~/.claude/skills/sl/ (all projects)

.claude/skills/sl/ (one project)

packages/cli/src/skills/sl/SKILL.md

Apache-2.0Full file
1# Semantic Layer
2
3ktx'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.
4
5This skill covers two parts:
6- **Part 1** - Schema reference (what an SL source looks like).
7- **Part 2** - Querying via `sl_query`.
8
9Capture (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 write to it.
10
11For capture-time identifier verification, load `sl_capture`. Synthesis writer
12skills must verify warehouse identifiers with `discover_data`,
13`entity_details`, and `sql_execution` before emitting table or column names.
14
15---
16
17## Part 1 - Schema reference
18
19An SL source is a YAML file under `semantic-layer/<connectionId>/`. The file's `name:` field is the source's identity — it mirrors the warehouse identifier verbatim (e.g. Snowflake's uppercase `SIGNED_UP`); the filename is only a derived label. Always address sources by name through the `sl_*` tools, never by file path. There are three flavors:
20
21### Overlay sources
22…

Excerpt shown under the repository's Apache-2.0 license.

More skills in ktx

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates