What problem does it solve?
Defining reusable business metrics in a semantic model is error-prone: engineers must translate SQL aggregates, window functions, and period-over-period logic into a consistent OSI core schema without leaking execution-engine syntax. This Skill standardizes that translation so metrics are created, updated, or deleted correctly inside an existing OSI semantic model.
Core Features & Use Cases
- OSI Metric Authoring: Creates and updates metrics with qualified aggregate expressions, descriptions, ai_context instructions, and DATUS custom_extensions hints such as time_dimension, subject_path, format, and unit.
- Window and Period-over-Period Semantics: Converts rolling, cumulative, and LAG-based SQL into standalone metrics using window, grain_to_date, window_aggregation, and period_over_period extension fields.
- Filter Classification and Skip Gates: Distinguishes durable metric conditions from query-time filters, and skips non-metric outputs like rankings or detail lists with a structured skipped status.
- Use Case: Given a SQL query computing monthly year-over-year revenue growth, the Skill binds the existing semantic model, publishes a revenue_month_yoy metric with a period_over_period extension, validates the model, and publishes it to the knowledge base.
Quick Start
Ask the agent to create a monthly year-over-year revenue growth metric from this SQL query in the existing OSI semantic model.