gen-metrics
OfficialTurn natural language business needs into MetricFlow metrics.
System Documentation
What problem does it solve?
Manually defining MetricFlow metrics requires deep knowledge of MetricFlow syntax, semantic model structure, and business logic mapping, which is time-consuming and error-prone for data teams. This Skill eliminates that manual work by converting plain language business descriptions or existing SQL queries into valid, production-ready MetricFlow definitions.
Core Features & Use Cases
- Duplicate Detection & Reuse: Scans existing metrics to avoid redundant work and reuse existing measures from semantic models.
- Flexible Input Handling: Supports both single metric generation from natural language and batch processing of multiple SQL queries or CSV files with query data.
- End-to-End Validation & Sync: Automatically creates or updates semantic models, validates all generated metrics, runs dry-run SQL checks, and syncs final definitions to the knowledge base.
- Use Case: A data analyst can paste existing revenue SQL queries and ask the Skill to generate corresponding MetricFlow metrics, which will be validated and synced without manual YAML editing.
Quick Start
Provide a natural language description of your desired business metric, such as "count of unique paying users per month", and the Skill will generate, validate, and sync the corresponding MetricFlow metric definition.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gen-metrics Download link: https://github.com/Datus-ai/Datus-agent/archive/main.zip#gen-metrics Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.