What problem does it solve?
Analytical agents repeatedly rediscover the same business metrics, join patterns, and derived dimensions in raw SQL. This Skill defines when and how to persist those reusable patterns into ktx's semantic layer so future queries reuse governed definitions instead of ad-hoc SQL.
Core Features & Use Cases
- Capture decision rules: Distinguishes patterns worth capturing (business metrics, derived views, join patterns, computed dimensions) from one-off explorations that should be skipped.
- Generalization guidance: Enforces generic measures with query-time filters over hardcoded variants, named segments for repeated predicates, and computed dimensions for derived categories.
- Overlay-first editing: Requires overlays on manifest-backed tables via
sl_discover, sl_edit_source, and sl_write_source, with inherits_columns_from for slim standalone SQL sources.
- Use Case: After answering "average order value last quarter" with raw SQL, the memory agent writes an
avg_order_value measure overlay on the orders source and validates it with sl_validate.
Quick Start
Ask the agent to capture the reusable metric or join pattern from the current conversation into the semantic layer and validate the resulting source.