metric-definition

metric-definition is a skill for Claude Code from thuong-nc/perlytics-skill. It costs 38 tokens per session (638 once invoked), scanned A, original, Apache-2.0.

A method for writing down exactly what a business metric means before using it in analysis or reporting. It identifies the counted quantity, the denominator, the entity, timeframe, data level, and filters.

In plain words
What is it for?
Use it to define or review key performance indicators, ratios, dashboard labels, and spreadsheet columns when teams may be calculating them differently.
Why use it?
It removes confusion caused by labels such as revenue, activation, churn, usage, or cost that can have several valid meanings. Clear definitions make comparisons and decisions more trustworthy.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the perlytics-skill plugin — 16 skills shipped together

Good fit Use it to define or review key performance indicators, ratios, dashboard labels, and spreadsheet columns when teams may be calculating them differently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thuong-nc/perlytics-skill/metric-definition
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thuong-nc/perlytics-skill --skill metric-definition
Clone the repo
git clone --depth 1 https://github.com/thuong-nc/perlytics-skill

Made for: Claude Code.

Or install perlytics-skill, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metric-definition

README.md
[![agentmods](https://agentmods.dev/badge/skills/thuong-nc/perlytics-skill/metric-definition/github.svg)](https://agentmods.dev/skills/thuong-nc/perlytics-skill/metric-definition)
Your own site
<a href="https://agentmods.dev/skills/thuong-nc/perlytics-skill/metric-definition"><img src="https://agentmods.dev/badge/skills/thuong-nc/perlytics-skill/metric-definition/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metric-definition

Your own site · 80×15
<a href="https://agentmods.dev/skills/thuong-nc/perlytics-skill/metric-definition"><img src="https://agentmods.dev/badge/skills/thuong-nc/perlytics-skill/metric-definition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 638 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00638
Opus 5 $0.00019 $0.00319
Sonnet 5 $0.00008 $0.00128
Haiku 4.5 $0.00004 $0.00064

Measured 10d ago against content hash dc61774b9dd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

metric-definition scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/metric-definition/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metric Definition

Purpose

Force precise metric definitions before interpretation, reporting, or comparison.

When to use

Use this skill when:

  • a metric name could mean several things
  • a file, chart, or dashboard contains labels like revenue, usage, activation, churn, or cost that are not yet formally defined
  • the user asks for analysis of a dataset but the main KPI could be interpreted in multiple valid ways
  • teams are debating a KPI
  • an answer depends on denominator choice
  • a dashboard label is too vague to trust

When not to use

Do not use this skill when:

  • the metric has an agreed canonical definition already documented and confirmed
  • the task is pure arithmetic on an already defined metric

Required thinking discipline

  • Never treat a metric label as a definition.
  • Identify numerator and denominator clearly.
  • Specify the entity, grain, timeframe, and filters.
  • Surface definition risks that could change interpretation.
  • Evidence constraint: Every conclusion must cite specific data — a number, a rate, a segment, or a timeframe. Do not speculate without evidential basis. If data is insufficient, state what is missing rather than asserting an unsupported inference.

Workflow

  1. Restate the metric name.
  2. Define what is counted.
  3. Define what is excluded.
  4. Define denominator logic if the metric is a rate or ratio.
  5. Specify grain, timeframe, and segment rules.
  6. Note data source or implementation assumptions.
  7. Produce a metric spec before any narrative interpretation.

Output format

  • Metric name
  • Business intent
  • Formal definition
  • Numerator
  • Denominator
  • Entity and grain
  • Timeframe logic
  • Filters and exclusions
  • Known ambiguities

Good example

Metric:

Activation rate

Good response:

Activation rate = share of new signups who complete project creation within 7 days of signup.
Numerator: distinct new users who create at least one project within 7 days.
Denominator: distinct new signups in the cohort.
Exclude internal accounts and spam-flagged users.

Read the full file on GitHub · 97 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 97 lines · 38 tokens per session scan A dc61774b9dd2

Subscribe to this mod's changes

metric-definition is a skill published in the GitHub repository thuong-nc/perlytics-skill (5 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 638 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

docx-comment-reply

Reply to comments (批注) in Word .docx/.doc files: extract comment context, draft replies, write threaded replies back, and validate OOXML.

foryourhealth111-pixel/Vibe-Skills · 39 tokens

sn-image-imitate

An image tool that creates new content while following the visual style and layout of a single reference image.

OpenSenseNova/SenseNova-Skills · 82 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

explaining-machine-learning-models

Explain trained machine learning models through feature attribution, local explanations, and behavior summaries. Use as an explicit/manual helper once a model already exists, not for training ownership, leakage auditing, or general ML strategy selection.

foryourhealth111-pixel/Vibe-Skills · 49 tokens