setup-metrics

setup-metrics is a command for Claude Code from phuryn/pm-skills. It costs 19 tokens per session (999 once invoked), scanned A, original, MIT.

A guide for defining the numbers a product team should track, including one main success measure, supporting measures, health checks, and alert limits. A product metric is a number used to understand how a product is performing.

In plain words
What is it for?
Use it to plan a dashboard for a product or feature, choose success measures, and set thresholds for action.
Why use it?
It turns vague goals into measurable signals and helps teams notice problems early. It also clarifies where each number comes from and how it should be calculated.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the pm-product-discovery plugin — 13 skills, 5 commands shipped together

Good fit Use it to plan a dashboard for a product or feature, choose success measures, and set thresholds for action.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/phuryn/pm-skills/setup-metrics
About the project

phuryn/pm-skills is a marketplace of reusable skills, commands, and plugins that guide AI assistants through product-management work such as discovery, strategy, planning, metrics, launches, and growth. It is for product managers and teams using Claude Code, Cowork, or compatible assistants. The catalogue entries are the project's own workflows and extensions.

phuryn/pm-skills · 26,507 stars · on GitHub · productcompass.pm

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.

Clone the repo
git clone --depth 1 https://github.com/phuryn/pm-skills

Made for: Claude Code.

Or install pm-product-discovery, the plugin that ships this one along with the rest of its 13 skills, 5 commands.

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 setup-metrics

README.md
[![agentmods](https://agentmods.dev/badge/commands/phuryn/pm-skills/setup-metrics/github.svg)](https://agentmods.dev/commands/phuryn/pm-skills/setup-metrics)
Your own site
<a href="https://agentmods.dev/commands/phuryn/pm-skills/setup-metrics"><img src="https://agentmods.dev/badge/commands/phuryn/pm-skills/setup-metrics/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 setup-metrics

Your own site · 80×15
<a href="https://agentmods.dev/commands/phuryn/pm-skills/setup-metrics"><img src="https://agentmods.dev/badge/commands/phuryn/pm-skills/setup-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 999 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.00019 $0.00999
Opus 5 $0.00010 $0.00500
Sonnet 5 $0.00004 $0.00200
Haiku 4.5 $0.00002 $0.00100

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

Security

Grade A, and why

setup-metrics 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 7d 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.

pm-product-discovery/commands/setup-metrics.md · 120 lines

How it starts

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

/setup-metrics -- Product Metrics Dashboard Design

Design a comprehensive metrics framework for your product or feature — from selecting the right North Star to defining alert thresholds that catch problems early.

Invocation

/setup-metrics SaaS project management tool
/setup-metrics New checkout flow we just launched
/setup-metrics             # asks what you're measuring

Workflow

Step 1: Understand What to Measure

Ask the user:

  • What product or feature area are you setting up metrics for?
  • What stage is it in? (pre-launch, recently launched, mature)
  • What are the current business goals or OKRs?
  • Do you have existing metrics? What's missing or broken?
  • What analytics tools are you using? (helps tailor implementation advice)

Step 2: Define the Metrics Framework

Apply the metrics-dashboard skill:

North Star Metric:

  • Identify the single metric that best captures the value your product delivers to users
  • Validate against criteria: measures value delivery, is a leading indicator, is actionable
  • Define the metric precisely (formula, data source, time window)

Input Metrics (3-5):

  • Identify the levers that drive the North Star
  • Each input metric should be directly actionable by a team
  • Map the causal chain: Input → North Star → Business Outcome

Health Metrics (3-5):

  • Metrics that should stay stable — if they degrade, something is wrong
  • Examples: error rates, latency, support ticket volume, NPS, churn rate
  • Define "healthy" ranges and degradation thresholds

Counter-Metrics (1-2):

  • Metrics that could indicate you're optimizing the wrong way
  • Example: if North Star is "daily active users", counter-metric is "session quality" to prevent empty engagement

Step 3: Design Alert Thresholds

For each metric:

Metric Green Yellow Red Check Frequency
[metric] [healthy range] [warning] [critical] [daily/weekly]
  • Yellow: Investigate — something may be off
  • Red: Act immediately — page someone or escalate

Read the full file on GitHub · 120 lines

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. 7d ago First seen · 120 lines · 19 tokens per session scan A f427356ee43a

Subscribe to this mod's changes

setup-metrics is a command published in the GitHub repository phuryn/pm-skills (26,507 stars, last pushed 7d ago), licensed MIT. It adds 19 tokens to every session and 999 once invoked, about $0.0001 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-09-15.