joanna-thai

Define Metric — Testing skill for Claude Code

Testing community

Write a rigorous metric definition (spec + SQL + semantic-layer snippet) so everyone computes it the same way.

How to install Define Metric

Installs to ~/.claude/skills/joanna-thai-data_analytics_plugins-define-metric/SKILL.md

Terminal
mkdir -p ~/.claude/skills/joanna-thai-data_analytics_plugins-define-metric && curl -fsSL https://raw.githubusercontent.com/joanna-thai/data_analytics_plugins/HEAD/commands/define-metric.md -o ~/.claude/skills/joanna-thai-data_analytics_plugins-define-metric/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Define Metric does


description: Write a rigorous metric definition (spec + SQL + semantic-layer snippet) so everyone computes it the same way argument-hint: " [context]"

Define metric: $ARGUMENTS

Use the `metrics-and-kpis` skill and its `metric-spec.template.yml`. Pin definition, formula, grain, filters/exclusions, time zone, owner and source; place the metric in a driver tree (inputs + guardrails); write reference SQL in the project dialect and the semantic-layer version for the project's s

Alternatives in Testing

  • Claude Codepro — by Max Ritter - Professional development environment for Claude Code with spec-driven workflow, TDD enforcemen 1.6k ★
  • GAAI Framework — 95+ Drop-in governance layer (.gaai/ folder) -- backlog authorization, cross-session memory, decision tracking 113 ★
  • 8 Define Test Cases — Define Test Cases Command 105 ★

Full documentation available on GitHub

View Source Repository