Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nimrodfisher/data-analytics-skills --skill semantic-model-buildergit clone --depth 1 https://github.com/nimrodfisher/data-analytics-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nimrodfisher/data-analytics-skills/semantic-model-builder)<a href="https://agentmods.dev/skills/nimrodfisher/data-analytics-skills/semantic-model-builder"><img src="https://agentmods.dev/badge/skills/nimrodfisher/data-analytics-skills/semantic-model-builder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nimrodfisher/data-analytics-skills/semantic-model-builder"><img src="https://agentmods.dev/badge/skills/nimrodfisher/data-analytics-skills/semantic-model-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00541 |
| Opus 5.5 | $0.00018 | $0.00216 |
| Sonnet 5.5 | $0.00009 | $0.00108 |
| Haiku 4.5 | $0.00005 | $0.00054 |
Grade A, and why
semantic-model-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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)
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/dimension_definition.yaml 892 B
- assets/entity_definition.yaml 1.0 KB
- assets/metric_definition.yaml 1.5 KB
- references/dbt_semantic_layer_guide.md 4.3 KB
- references/dimension_hierarchy_patterns.md 3.9 KB
- references/metric_definition_framework.md 3.3 KB
- scripts/metric_template_generator.py 4.2 KB runs code
- scripts/model_yaml_validator.py 5.0 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 33 lines · 46 tokens per session scan A fd6f95035beb
semantic-model-builder is a skill published in the GitHub repository nimrodfisher/data-analytics-skills (564 stars, last pushed 23d ago), licensed MIT. It adds 46 tokens to every session and 541 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
semantic-model-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| semantic-model-buildernimrodfisher/data-analytics-skills | Skill | 564 | 23d ago | MIT | A | 46 | Claude Code, Codex |
| bigquery-migration-metadata-extractorgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 188 | Claude Code, Codex |
| bigquery-migration-data-exportergoogle/skills | Skill | 25k | today | Apache-2.0 | A | 142 | Claude Code, Codex |
| alloydb-basicsgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 72 | Claude Code, Codex |
| cloud-databases-onboardinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| obsidian-baseskepano/obsidian-skills | Skill | 55k | 4d ago | MIT | A | 63 | Claude Code |
| spanner-basicsgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 47 | Claude Code, Codex |