Define Metric — Testing skill for Claude Code
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
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 RepositoryRelated Skills
Sit
⚙️ [Skill] A Git-native semantic safety layer for AI agents editing Skill packages — validates, diffs, reviews
Function Test
Act as a rigorous senior Perl SDET. Write a comprehensive set of white-box subtests in ./t/function.t to valid
Mutant Killers
Act as a rigorous senior Perl SDET specializing in mutation testing. Write a comprehensive set of tests in ./t
Set OKRs
Structure OKRs — define objectives, write measurable key results, align to strategy, stress-test for quality,
SKILL.Tmpl
Generate COMPLEX.md for the current repository. Computes hotspot signals from the dependency graph and git his
QA Testing Rules
Language-agnostic QA testing rules for AI coding agents — pre-write category enumeration, structured docstring
Related Agents
Benchmarking
Hold a business's figures against its peers, with every data point carrying its source, year and sample size:
Minions Data Analyst
Data Analyst (BI) — SQL query generation, cohort analysis, A/B test analysis, North Star metric definition, KP
North Star
Define and maintain the North Star metric and cascade OKRs. Use when the team needs a single measurable outcom