🧩
DataTypeScript

Semantic Layer Capture

by Kaelio

Semantic Layer Capture is a Data skill for Claude Code, published by Kaelio in ktx.

1.5K stars99 forkson Kaelio/ktxAdded 2026/08/19+1% in starsRepository updated 2026/07/19
agentagent-skillsagentsai-agentai-agentsanalyticsanalytics-engineeringbusiness-intelligenceclaudeclaude-codeclaude-skillscodexcontext-layerdata-analysisdata-engineeringllmmcpmemorysemantic-layerskills
Install in seconds
Install Semantic Layer Capture
Copy Semantic Layer Capture into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl_capture ~/.claude/skills/sl_capture

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Kaelio/ktx.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
packages/cli/src/skills/sl_capture/SKILL.md in Kaelio/ktx
Installs to
~/.claude/skills/sl_capture
Collection
One of 17 skills cataloged from this repository
Category
Data668 skills

What Semantic Layer Capture does

Semantic Layer Capture defines when and how to capture new reusable patterns into ktx's semantic layer—measures, segments, computed dimensions, and joins—so future queries can reuse them instead of rediscovering logic. Use it after a turn produces a reusable business metric or analytical view.

Semantic Layer Capture is cataloged under Data on DirSkills. Semantic Layer Capture comes from a repository tagged agent, agent-skills, agents, ai-agent and ai-agents.

Documentation

README

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:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Semantic Layer Capture

  • What else does Kaelio publish alongside Semantic Layer Capture?

    Semantic Layer Capture is one of 17 skills that DirSkills catalogs from Kaelio/ktx, the repository it ships in. Its siblings there include Google Drive Doc Synthesis, Historic SQL Patterns and Historic SQL Table Digest. Each one is a separate skill with its own page in this directory, installs the same way Semantic Layer Capture does, and is maintained by Kaelio in that same repository. The rest of the collection is listed on the Kaelio/ktx page.

  • How does Semantic Layer Capture compare to other Data skills?

    Semantic Layer Capture ranks #384 by stars among the 668 Data skills in this catalog. The most-starred ones next to it are Benchmark Methodology, Jupyter Notebook and Solana. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Semantic Layer Capture against them. Open each page to compare what they document and how they install.

More from Kaelio/ktx

Semantic Layer Capture is one of 17 skills cataloged on DirSkills from Kaelio/ktx.

See all 17 skills
📚
2w ago

Google Drive Doc Synthesis

Google Drive Doc Synthesis reads staged Google Drive documents and writes durable wiki pages that capture reusable organizational knowledge. Use it when a WorkUnit contains Google Doc raw files from docs/** and needs search, evidence reconciliation, and semantic-layer verification.
Writing
1.5K99
🔍
2w ago

Historic SQL Patterns

Historic SQL Patterns identifies recurring cross-table analytical intents from historic SQL usage shards and emits typed pattern evidence for deterministic wiki projection. Use it when processing a patterns-input shard from the historic-sql adapter.
Data
1.5K99
🗃️
2w ago

Historic SQL Table Digest

Historic SQL Table Digest converts a changed historic-SQL table usage bucket into typed table usage evidence for deterministic schema projection. Use it when a WorkUnit raw file is a tables/<schema>.<name>.json from the historic-sql adapter.
Data
1.5K99
🔀
2w ago

Ingest Triage

Ingest Triage classifies and resolves conflicts detected during data bundle ingest, including structural duplicates, definitional contradictions, near-duplicate clusters, re-ingest changes, and evictions. Use it before writes that could collide with existing artifacts in a semantic layer.
Data
1.5K99
📊
2w ago

KTX Analytics

KTX Analytics queries a KTX-connected database using MCP tools for discovery, semantic-layer analysis, and raw read-only SQL to investigate metrics, explore tables, compare periods, and explain findings. Use it for any data-analysis request against a configured KTX connection.
Data
1.5K99
🧠
2w ago

Ktx

Ktx installs and configures the open-source context layer for data agents. Use when an agent needs to add ktx to a project, connect data sources, install agent rules, ingest schema, or troubleshoot a local setup.
DevOps
1.5K99