experiment-metric-audit
Installation
SKILL.md
When to invoke
- You have an A/B test plan with metric definitions captured in JSON.
- You want to validate that metric formulas, unit of analysis, and guardrails are internally consistent.
- You need vendor-neutral checks before implementing metrics in any analytics stack.
Inputs needed
- JSON file describing an experiment and its metrics (primary/secondary/guardrail).
Workflow
- Validate schema (experiment name, variants, metrics list).
- Check each metric for:
- missing unit of analysis (user, session, order)
- missing time window
- unclear numerator/denominator for ratio metrics
- guardrail metrics present (e.g., error rate) when risky changes are described
- Detect common inconsistencies:
- metrics mixing units (user-level denominator with event-level numerator)
- duplicate metric names
- Emit a structured audit report with actionable recommendations.