Skip to main content

design-a-metric-definition

Design a governed metric definition with business meaning, population, event timing, formula, dimensions, sources, quality, ownership, and change history. Use when teams need one reproducible interpretation of a reported measure.

Source facts

Repository
protosphinx/sphinxstack
Last source activity
July 29, 2026 at 13:55
Detected SKILL.md language
English
Stars
3
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
design-a-metric-definition
category
data
description
Design a governed metric definition with business meaning, population, event timing, formula, dimensions, sources, quality, ownership, and change history. Use when teams need one reproducible interpretation of a reported measure.
# design-a-metric-definition Define the decision and population before writing the query. ## When to use - Use for key performance indicators, operational measures, experiments, finance, risk, or product analytics. - Do not reuse one metric name for materially different populations or formulas. ## Procedure 1. State the decision, question, audience, owner, cadence, and limitations. 2. Define entity, population, inclusion, exclusion, unit, event, numerator, denominator, and valid states. 3. Specify event time, processing time, timezone, attribution window, cohort, period, late data, and restatement. 4. Define dimensions, allowable filters, aggregation, weighting, nulls, duplicates, currency, precision, and privacy thresholds. 5. Map sources, stable fields, transformations, lineage, quality rules, and authoritative implementation. 6. Provide worked synthetic examples and edge cases whose expected results are independently reviewed. 7. Reconcile the implementation across query, semantic layer, API, dashboard, and reports. 8. Version changes, assess historical comparability, communicate breaks, and monitor drift. ## Done - A metric specification records purpose, population, formula, time, dimensions, sources, lineage, quality, owner, examples, and version - Edge-case, denominator, timing, source, cross-surface, historical, privacy, and reproducibility checks verify the definition
View on GitHub