Before: Two dashboards use the same metric name with different filters.
One metric keeps one definition
The formula, grain, exclusions and owner travel together into every scoped task.
HINT for Data & BI Analysts
HINT keeps metric definitions, data grain, source columns and caveats in plain-text notes beside dashboards and queries. Your assistant reads the context for this domain before changing a number.
The package is named for the role: @openhint/hintbook-data-analyst.
Where it helps
Before: Two dashboards use the same metric name with different filters.
The formula, grain, exclusions and owner travel together into every scoped task.
Before: A query references a plausible column that is not in the source.
Unknown fields become schema questions instead of silently broken joins.
Before: A fresh-looking chart hides stale or partial data.
Freshness, quality limits and interpretation notes arrive beside the metric rather than in a forgotten wiki page.
See it
The Dunder Mifflin BI demo grounds the sales metric in an approved source.
demo-dunder-mifflin-bi/domains/sales/metrics.md.hint ↗
# read Approved source
../../sources/approved.md
# metric sales-1 {#data_analyst_demo}
Approved metric grounded in SRC-1.
# never Invented detailsIt uses the metric's declared source and definition, checks referenced columns, and carries caveats into the answer.
<metric name="sales-1">
Approved metric grounded in SRC-1.
</metric>
<never name="Invented details">…</never>Your boundaries stay visible
FAQ
No. It supplies intent and constraints to assistants working with those systems and can point to their definitions as sources.
It can require declared sources and checks, but execution and warehouse validation remain in your analytics stack.
Yes. Folder scope separates domain-specific definitions while shared policies can sit above them.
A hintbook is a vocabulary for your profession—installed, not written by you.
metricgrainformuladimensionfilterfreshnessqualitydashboardBootstrap is read-only: it prints instructions for the assistant. The assistant performs the installation.
npm install -g @openhint/cli
hint config
hint add @openhint/hintbook-data-analyst
hint apply
hint verify domains/sales/metrics.md
hint emit domains/sales/metrics.md