nimrodfisher/data-analytics-skills196 installs
semantic-model-builder
Build structured semantic layer documentation for metrics, dimensions, and entities. Activate when you need to define a business metric, document a data model, or create YAML definitions compatible with dbt Semantic Layer or similar frameworks.
How do I install this agent skill?
npx skills add https://github.com/nimrodfisher/data-analytics-skills --skill semantic-model-builderIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a safe workspace for documentation and template scaffolding for dbt Semantic Layer configurations. No malicious code patterns, obfuscations, or network exfiltrations were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
When to use
- A stakeholder asks "how is [metric] calculated?" and no canonical definition exists
- You're setting up dbt Semantic Layer and need YAML metric/dimension/entity definitions
- Multiple teams are using different SQL queries for the same metric — you need to codify the one true definition
- You're building a data catalog entry for a core model and need structured metadata
Process
- Identify the object type — decide whether you're documenting a metric, a dimension, or an entity. Use the frameworks in
references/metric_definition_framework.mdfor metrics andreferences/dimension_hierarchy_patterns.mdfor dimensions. - Gather the definition inputs — collect: calculation logic (SQL or formula), business context, data source(s), grain, edge cases, and known gotchas. Ask the data owner if anything is unclear.
- Generate the YAML template — run
scripts/metric_template_generator.pyto scaffold the initial YAML structure for the object type. Fill in the generated template. - Validate the YAML — run
scripts/model_yaml_validator.pyto check required fields, type constraints, and reference integrity (referenced dimensions exist in the same file). - Add dbt context — if this will be deployed to dbt Semantic Layer, consult
references/dbt_semantic_layer_guide.mdfor the exact field names and constraints for your dbt version. - Save final definitions — save metrics to
assets/metric_definition.yaml, dimensions toassets/dimension_definition.yaml, entities toassets/entity_definition.yaml.
Inputs the skill needs
- Required: the metric name or model name to document
- Required: calculation logic — SQL snippet, formula, or plain-English steps
- Required: business context — who uses it, what decision it informs, what a "good" value looks like
- Optional: data source table(s) and column names
- Optional: target semantic layer framework (dbt Semantic Layer, Cube.js, LookML, etc.)
- Optional: existing YAML to validate
Output
assets/metric_definition.yaml— filled metric YAML definition(s)assets/dimension_definition.yaml— filled dimension YAML definition(s)assets/entity_definition.yaml— filled entity YAML definition(s)- Validation report from
scripts/model_yaml_validator.py(inline output)
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/nimrodfisher/data-analytics-skills/semantic-model-builder">View semantic-model-builder on skillZs</a>