metrics-framework

metrics-framework is a skill for Claude Code, Codex from 0xranx/agentbrief. It costs 76 tokens per session (646 once invoked), scanned A, original, MIT.

A method for choosing and organizing key performance indicators (KPIs), which are measurements used to judge whether a product or business is succeeding. It connects each measurement to a decision and breaks a main success measure into contributing measures.

In plain words
What is it for?
Use it to define a north-star metric, build a metric tree, choose dashboard measures, set OKRs, or decide what data to track for a product or feature.
Why use it?
It prevents teams from collecting numbers that look useful but do not guide any action.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/0xranx/agentbrief/metrics-framework
Any agent
npx skills add 0xranx/agentbrief --skill metrics-framework
Clone the repo
git clone --depth 1 https://github.com/0xranx/agentbrief

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xranx/agentbrief/metrics-framework.svg)](https://agentmods.dev/skills/0xranx/agentbrief/metrics-framework)
Your own site
<a href="https://agentmods.dev/skills/0xranx/agentbrief/metrics-framework"><img src="https://agentmods.dev/badge/skills/0xranx/agentbrief/metrics-framework.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00076 $0.00646
Opus 5 $0.00038 $0.00323
Sonnet 5 $0.00015 $0.00129
Haiku 4.5 $0.00008 $0.00065

Measured 4d ago against content hash 1873fd36e1c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

metrics-framework 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 4d 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.

briefs/data-analyst/skills/metrics-framework/SKILL.md · 91 lines

How it starts

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

Metrics Framework Design

You are designing a metrics framework that drives better decisions — not a dashboard that looks impressive.

Process

1. Identify the Business Question

Before choosing any metric, answer:

  • What decision will this metric inform?
  • Who is the audience? (CEO, PM, engineer, investor)
  • What action will we take if the metric goes up/down?

If there's no action tied to the metric, it's a vanity metric. Skip it.

2. Choose the North Star Metric

One metric that best captures the value your product delivers to users:

Business Type Example North Star
SaaS Weekly active workspaces
Marketplace Transactions completed
Media/Content Time spent reading
E-commerce Purchases per month
Developer Tool Builds triggered

The north star must be:

  • Measurable (can you actually track it?)
  • Actionable (can the team influence it?)
  • Leading (predicts future revenue, not just reports past)

3. Build the Metric Tree

Break the north star into a tree of input metrics:

North Star: Weekly Active Workspaces
├── New workspace activations
│   ├── Signups
│   ├── Signup → Activation rate
│   └── Time to activation
├── Returning workspaces
│   ├── D7 retention
│   ├── D30 retention
│   └── Feature engagement score
└── Resurrected workspaces
    ├── Re-engagement emails sent
    └── Re-engagement conversion rate

4. Set Baselines and Targets

For each metric:

  • Current value (baseline)
  • Target (where we want to be)
  • Timeline (by when)
  • Owner (who is responsible)

5. Define the Dashboard

Three tiers:

  1. Executive dashboard — 5-7 metrics, updated weekly
  2. Team dashboard — 10-15 metrics, updated daily
  3. Operational alerts — Thresholds that trigger notifications

Output Format

## Metrics Framework: [Product/Feature]

### North Star
[Metric name]: [Current value] → [Target] by [Date]

### Input Metrics
| Metric | Current | Target | Owner | Update Frequency |
|--------|---------|--------|-------|-----------------|
| ... | ... | ... | ... | ... |

### Alerts
- [Metric] drops below [threshold] → notify [team]

### What We're NOT Tracking (and why)
- [Metric] — [reason it's not useful right now]

Read the full file on GitHub · 91 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. 4d ago First seen · 91 lines · 76 tokens per session scan A 1873fd36e1c5

Subscribe to this mod's changes

metrics-framework is a skill published in the GitHub repository 0xranx/agentbrief (45 stars, last pushed 5mo ago), licensed MIT. It adds 76 tokens to every session and 646 once invoked, about $0.0004 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-30.