Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Captures reusable semantic layer patterns (measures, segments, joins) into ktx's catalog, written generically for warehouse dialects.
Use this skill ↓36% 59%+23 ptsof test cases passed
Passed 13 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
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.
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:
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).transaction_date >= current_date - interval '90 days'.transaction_date >= dateadd(day, -90, current_timestamp()).Match the column's manifest type (type: time → TIMESTAMP/DATETIME on the
warehouse) - comparing TIMESTAMP to a DATE-arithmetic result fails on
BigQuery. After every sl_edit_source/sl_write_source, the inline validator runs a
LIMIT 1 warehouse probe per measure and surfaces dialect mismatches; if
you see an error trailer, fix the expression and retry rather than leaving
the source for the post-squash gate to revert.
case when num_protocols >= 3 then 'power' else 'regular' end).Skip:
SELECT * LIMIT 10 previews.COUNT(*) on one table with no business filtering.source.measure_name).When in doubt, capture. Measures are easy to remove but impossible to recover from a lost conversation.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.