Find Hypertable Candidates
timescale/pg-aiguide
A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.
ktx's semantic layer - a structured catalog of sources (tables/views), measures, joins, and segments expressed as YAML.
$ npx skills add Kaelio/ktx --skill sl -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Kaelio/ktx sl --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/cli/src/skills/sl .claude/skills/sl && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .claude/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/slType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Kaelio/ktx --skill sl -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Kaelio/ktx sl --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/cli/src/skills/sl .agents/skills/sl && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .agents/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Kaelio/ktx --skill sl -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Kaelio/ktx sl --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/cli/src/skills/sl .cursor/skills/sl && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .cursor/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Kaelio/ktx.git --path packages/cli/src/skills/sl--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Kaelio/ktx --skill sl -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Kaelio/ktx sl --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/cli/src/skills/sl .gemini/skills/sl && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .gemini/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Kaelio/ktx slInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Kaelio/ktx --skill sl -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/cli/src/skills/sl .github/skills/sl && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .github/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Kaelio/ktx --skill sl -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Kaelio/ktx sl --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kaelio/ktx.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/cli/src/skills/sl .opencode/skills/sl && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sl" agent skill from https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/sl into .opencode/skills/sl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sl", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
slktx's semantic layer - a structured catalog of sources (tables/views), measures, joins, and segments expressed as YAML.
Sl is an agent skill from Kaelio/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 slquery. 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 slcapture skill (memory-agent only).
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering SQL. It works with SQL and Model Context Protocol. The repository describes itself as: ktx is an executable context layer for data and analytics agents 🐙 Allow Claude Code, Codex, or other AI agents to query analytical databases accurately and with full context of…. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 49a4ae6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml and json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sl loads about 2.7k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 966 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Kaelio/ktx at commit 49a4ae6, republished under its Apache-2.0 licence (© Kaelio). 966 words, ~2,680 tokens.
.claude/skills/sl/SKILL.md (or your agent's skills folder).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:
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 write to it.
For capture-time identifier verification, load sl_capture. Synthesis writer
skills must verify warehouse identifiers with discover_data,
entity_details, and sql_execution before emitting table or column names.
An 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:
Enrich a manifest-backed table with measures, computed columns, joins, and segments. No table or sql field. The base table's columns and grain are inherited from the manifest.
name: fct_orders # must match an existing manifest table
descriptions:
user: "Overlay adding business measures to the orders fact table."
measures:
- name: total_revenue
expr: sum(amount)
description: Total order revenue - filter by status or region at query time
columns: # computed dimensions only
- name: is_large_order
type: boolean
expr: "amount > 1000"
column_overrides: # metadata patches for inherited columns
- name: status
descriptions:
user: "Order lifecycle status."
segments:
- name: paid_non_refunded
expr: "is_paid = true AND is_refunded = false"
joins:
- to: customers
on: "customer_id = customers.id"
relationship: many_to_oneRules:
table, or source_type in an overlay - those are inherited.expr + type).column_overrides to add descriptions or metadata to inherited manifest columns. Do not put type or expr in column_overrides.exclude_columns hides specific manifest columns; disable_joins suppresses specific auto-detected joins.Self-contained; own their schema. Has source_type: table and table:.
name: account_health_scores
source_type: table
table: "analytics.account_health_scores"
grain: [account_id, snapshot_date]
columns:
- name: account_id
type: string
- name: snapshot_date
type: time
role: time
- name: health_score
type: number
measures:
- name: avg_health_score
expr: avg(health_score)Self-contained; schema derived from a SQL query. Has source_type: sql and sql:.
name: monthly_cancellations
source_type: sql
sql: |
SELECT
date_trunc('month', cancelled_at) AS month,
customer_id,
plan_name,
mrr_amount
FROM subscriptions
WHERE status = 'cancelled'
grain: [customer_id, month]
columns:
- name: month
type: time
role: time
- name: customer_id
type: string
- name: plan_name
type: string
- name: mrr_amount
type: number
measures:
- name: cancellation_count
expr: count(*)An SQL source is a one-shot answer: the aggregation is frozen, callers cannot re-group or re-filter by columns the SQL has collapsed, and the source is disconnected from the join graph. Prefer overlays + measures over SQL sources when possible - the sl_capture skill covers when SQL is justified.
Every standalone column requires name and type. Overlays have computed columns in columns: and manifest column metadata patches in column_overrides:.
type: one of string, number, boolean, time. Map LookML date/datetime/timestamp → time. Map LookML yesno → boolean.role (optional): time enables time-granularity queries (month, week, day). default is the implicit fallback.visibility (optional): public, internal, or hidden.expr (optional for standalone, required for overlay columns): SQL expression that computes the value. Expanded by sqlglot before generating SQL, so you can reference other columns on the same source.grain: [col_a, col_b] - the set of columns that uniquely identify one row. The query engine uses grain to prevent fanout in joins. Overlays inherit grain from the manifest unless they override.
joins:
- to: customers # target source name
on: "customer_id = customers.id" # local_col = TARGET.target_col
relationship: many_to_one # or one_to_many, one_to_one
alias: primary_customer # optional - lets you join the same target twiceon format: local_col = TARGET.target_col. Always qualify the right side with the target source name.relationship is the cardinality from this source to the target. Most joins are many_to_one (FK → PK on the parent).measures:
- name: total_arr
expr: sum(arr_amount)
description: Sum of ARR - filter by plan_name at query time
filter: "is_active = true"
segments: [paid_non_refunded]name (required, snake_case).expr (required): any valid SQL aggregate - sum(x), count(*), count(distinct user_id), avg(score).description (required on capture): what the measure computes and how to use it.filter (optional): SQL predicate applied as a WHERE clause specific to this measure.segments (optional): names of segments defined on the same source. The engine AND-composes each segment's expr into this measure's effective filter.Use safe_divide(num, den) for ratio measures to avoid division by zero.
segments:
- name: paid_non_refunded
expr: "is_paid = true AND is_refunded = false"
description: Orders that were paid and not refundedNamed, reusable boolean predicates scoped to one source. Reference by bare name in a measure's segments: [], or by dotted form source.segment_name in an sl_query. Segments are predicates only - they are NOT selectable as dimensions. If you need to group by the predicate, add a columns[] entry instead.
The reverse edge (wiki pages that cite this source) is derived automatically from each wiki's sl_refs: - you don't emit anything on the SL side. Author the edge once on the wiki via sl_refs:; the post-write reconciler populates the knowledge↔SL index.
sl_queryThe sl_query tool generates correct SQL from a structured query. It handles joins, fanout prevention, aggregation correctness, and filter classification automatically. Prefer it over writing raw SQL whenever the SL has the relevant sources.
source.measure_name appears in the catalog).Use raw SQL (sql_execution) only when:
{
"connectionId": "uuid-of-the-connection",
"measures": ["orders.total_revenue", "sum(orders.amount)"],
"dimensions": ["customers.segment", { "field": "orders.created_at", "granularity": "month" }],
"filters": ["orders.status != 'cancelled'", "orders.total_revenue > 10000"],
"segments": ["orders.paid_non_refunded"],
"order_by": [{ "field": "orders.created_at", "direction": "desc" }],
"limit": 1000
}measures: mix pre-defined refs (source.measure) and runtime aggregations (sum(source.column)).dimensions: column refs or { field, granularity } objects for time grains (day, week, month, quarter, year).filters: free-form SQL predicates. The engine auto-classifies each as WHERE or HAVING based on whether it references an aggregated measure.segments: dotted source.segment_name. Each segment is AND-ed into the effective filter of every measure whose base source matches. Segments never become a global WHERE - use filters for cross-source predicates.order_by: string or { field, direction }. Direction defaults to asc.limit: integer row cap.You don't specify a base table. The engine infers the set of sources needed from the fields you reference and resolves the shortest join path through the catalog's declared joins. If no path exists between two sources, the query fails with a path-not-found error - check discover_data or sl_discover to see which sources are connected.
Cross-source query - engine resolves account_health_scores → accounts ← opportunities automatically:
{
"measures": ["account_health_scores.avg_health_score"],
"dimensions": ["opportunities.stage"],
"filters": ["opportunities.stage != 'Closed Won'"]
}Monthly ARR trend with a segment:
{
"measures": ["subscriptions.arr"],
"dimensions": [{ "field": "subscriptions.month", "granularity": "month" }],
"segments": ["subscriptions.paid_non_refunded"],
"order_by": [{ "field": "subscriptions.month", "direction": "asc" }]
}Multi-source with runtime aggregation:
{
"measures": ["sum(orders.amount)", "count(support_tickets.ticket_id)"],
"dimensions": ["customers.segment"]
}© Kaelio, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/cli/src/skills/sl of Kaelio/ktx.
Open the folder on GitHubat commit 49a4ae6
Sl next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sl this skillKaelio/ktx | 1.6k | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Find Hypertable Candidatestimescale/pg-aiguide | 1.9k | 1 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Network Data Analysisautomateyournetwork/netclaw | 675 | — | ~1.3k | Automated safety check: Notes | Apache-2.0 | |
| Tableau Next Asset Createforcedotcom/sf-skills | 1.1k | — | ~6.1k | Automated safety check: Pass | Apache-2.0 | |
| AWS Storageaws/agent-toolkit-for-aws | 2.8k | — | ~5.8k | Automated safety check: Pass | Apache-2.0 | |
| Pytorch Clickhousepytorch/test-infra | 113 | — | ~2.8k | Automated safety check: Pass | Custom licence |
timescale/pg-aiguide
A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.
automateyournetwork/netclaw
Ad-hoc read-only SQL analysis over exported network data (Zeek logs, Suricata eve.json, generated reports) using DuckDB.
forcedotcom/sf-skills
Build and edit Tableau Next semantic models (SDMs), vizzes, and dashboards via MCP.
aws/agent-toolkit-for-aws
Selects, investigates, and compares AWS object, file, and block storage services, and answers cost, performance, configuration, security, and troubleshooting questions about storage services.
pytorch/test-infra
Load this FIRST whenever working with PyTorch CI data (any pytorch/ org repo), the torchci/HUD codebase, or the PyTorch HUD ClickHouse database.
timescale/pg-aiguide
A skill your agent uses for any PostgreSQL database work — table design, indexing, data types, constraints, extensions (pgvector, PostGIS, TimescaleDB), search, and migrations.
Kaelio/ktx
Installs and configures ktx, the open-source context layer for data agents — runs ktx setup non-interactively with hidden CLI flags, configures database connections and embeddings, installs agent…
Kaelio/ktx
A skill your agent uses when answering a question that needs data from a ktx-connected database - investigating, analyzing, "how many", "show me", "what's the breakdown of", finding records by…
Works with
Categories
ktx's semantic layer - a structured catalog of sources (tables/views), measures, joins, and segments expressed as YAML. Sl is an agent skill from Kaelio/ktx. ktx's semantic layer - a structured catalog of sources (tables/views), measures, joins, and segments expressed as YAML.
Sl fits situations like: the task involves querying pre-defined metrics (ARR; reading SL source YAML to understand the catalog.
Run `npx skills add Kaelio/ktx --skill sl -a claude-code`. Or copy the skill folder (packages/cli/src/skills/sl in Kaelio/ktx) into .claude/skills/sl in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Kaelio/ktx --skill sl -a codex`. Or copy the skill folder (packages/cli/src/skills/sl in Kaelio/ktx) into .agents/skills/sl in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Kaelio/ktx --skill sl -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sl, .gemini/skills/sl, .github/skills/sl and .opencode/skills/sl in your project.
SKILL.md names no scripts, command-line tools or credentials: Sl is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sl is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sl: Find Hypertable Candidates (timescale/pg-aiguide, 1.9k stars), Network Data Analysis (automateyournetwork/netclaw, 675 stars), Tableau Next Asset Create (forcedotcom/sf-skills, 1.1k stars) and AWS Storage (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Kaelio (a GitHub organization) maintains it in Kaelio/ktx, which has 1,612 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 11, 2026.
Source: Kaelio/ktx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.