Skills for Real Engineers. Straight from my .agents directory.
sl_capture
Agent skill fromKaelio/ktx
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.
How to install sl_capture
npx skills add Kaelio/ktx# or add only this skill to Claude Code: copy the folder
packages/cli/src/skills/sl_capture/
# into
~/.claude/skills/sl_capture/ (all projects)
.claude/skills/sl_capture/ (one project)
1# Semantic Layer - Capture23This skill covers **when** and **how** to capture new patterns into the semantic layer. For schema reference and query grammar, load the `sl` skill first.45When 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.67## SQL dialect89The user-facing prompt includes a `Warehouse:` line under the SL Sources index10(e.g. `Warehouse: BIGQUERY`). All `expr` strings - measure expressions, segment11predicates, computed-column SQL - execute on that warehouse and must use its12syntax. Date arithmetic in particular varies by dialect:1314- **BigQuery**: `transaction_date >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 90 DAY)` (when the column is `TIMESTAMP`); `event_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 90 DAY)` (when `DATE`).15- **Postgres / Redshift**: `transaction_date >= current_date - interval '90 days'`.16- **Snowflake**: `transaction_date >= dateadd(day, -90, current_timestamp())`.1718Match the column's manifest type (`type: time` → TIMESTAMP/DATETIME on the19warehouse) - comparing TIMESTAMP to a DATE-arithmetic result fails on20BigQuery. After every `sl_edit_source`/`sl_write_source`, the inline validator runs a21`LIMIT 1` warehouse probe per measure and surfaces dialect mismatches; if22you see an error trailer, fix the expression and retry rather than leaving23the source for the post-squash gate to revert.24…
Excerpt shown under the repository's Apache-2.0 license.
More skills in ktx
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
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
Production-grade engineering skills for AI coding agents.
