kpi-framework

kpi-framework is a skill for Claude Code, Codex from ericrisco/rsc-harness. It costs 90 tokens per session (2,790 once invoked), scanned A, original, MIT.

A framework for deciding what a team should measure before building dashboards or tracking events. It defines one main measure of success, the inputs that influence it, safety checks, and an evidence-based target.

In plain words
What is it for?
It helps choose a north-star metric, identify leading drivers and lagging outcomes, define guardrails, and set targets using a baseline and date.
Why use it?
It prevents teams from tracking too many vanity numbers, optimizing results they cannot control, or setting targets that encourage gaming.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps choose a north-star metric, identify leading drivers and lagging outcomes, define guardrails, and set targets using a baseline and date.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ericrisco/rsc-harness/kpi-framework
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 ericrisco/rsc-harness --skill kpi-framework
Clone the repo
git clone --depth 1 https://github.com/ericrisco/rsc-harness

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ericrisco/rsc-harness/kpi-framework/github.svg)](https://agentmods.dev/skills/ericrisco/rsc-harness/kpi-framework)
Your own site
<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/kpi-framework"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/kpi-framework/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 kpi-framework

Your own site · 80×15
<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/kpi-framework"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/kpi-framework.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,790 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00090 $0.02790
Opus 5 $0.00045 $0.01395
Sonnet 5 $0.00018 $0.00558
Haiku 4.5 $0.00009 $0.00279

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

Security

Grade A, and why

kpi-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 8d 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/kpi-framework/SKILL.md · 200 lines

How it starts

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

KPI framework

You decide what to measure. You do not build the dashboard, you do not wire up the events, you do not write the monthly report. Your deliverable is a metric definition document: one north-star metric, a small set of input drivers that causally feed it, paired guardrails, and a calibrated target with a baseline and a date.

Most measurement work fails upstream, before any chart exists. Teams instrument 40 KPIs and none of them lead anywhere. They optimize a lagging output nobody can move. They celebrate a vanity number. They set "double it this month" and watch it get gamed. Your job is to kill those failures at the source by forcing four decisions:

  1. What single output predicts long-term value? (the north star)
  2. Which 3-5 controllable inputs cause it? (the driver set)
  3. What breaks if we over-optimize it? (the guardrails)
  4. What target — baseline, magnitude, date — is honest and ungameable?

Answer those four and hand the result to ../analytics/SKILL.md to instrument and ../dashboard/SKILL.md to display. If you find yourself choosing chart types or writing SQL, you have left this skill.

The one artifact

Everything you produce collapses into a single table. Nothing leaves this skill with the baseline, target, or date column blank — an unfilled target is a decision you skipped, not a decision you made.

metric type definition (event + window + denominator) leading/lagging owner baseline target target_date
Weekly Active Teams north-star teams with >=1 member completing a core action in a rolling 7-day window / all active teams lagging PM, Activation 38% 52% 2026-Q4
Time-to-first-core-action input median minutes from signup to first core action, new teams leading PM, Onboarding 41 min <15 min 2026-Q3
Week-1 saved items input new teams with >=3 saved items in first 7 days / new teams leading PM, Onboarding 22% 40% 2026-Q3
Invites accepted input invited members who activate within 7 days / invites sent leading Growth 31% 45% 2026-Q4
Support tickets / active team guardrail open tickets / weekly active teams (must not rise) lagging Support lead 0.12 <=0.12 ongoing

Read the full file on GitHub · 200 lines

Files

What ships with it

4 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. 8d ago First seen · 200 lines · 90 tokens per session scan A c6dc8aa7b44b

Subscribe to this mod's changes

kpi-framework is a skill published in the GitHub repository ericrisco/rsc-harness (82 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 2,790 once invoked, about $0.0005 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-03.

Related

Other skills, from other repositories

todos

This chat has a shared, live TODO plan — your tasks for the conversation, which the user also edits. Read this skill and reach for the todo tools whenever a request takes more than a couple of steps. It covers the plan model (group = task, items = its steps; loose items are the user's lane), how to work it: propose…

JetBrains/thinkrail · 127 tokens

writing-workflow-skills

Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.

JetBrains/thinkrail · 60 tokens

setting-up-a-project

Use whenever asked to set up, onboard, initialize, or spec a project — the front door when the workspace has no spec graph yet (brand-new or an existing codebase); also seeded by the app's Set-up-project card (/skill:setting-up-a-project). Not for feature work in an already-specced project — use the brainstorming…

JetBrains/thinkrail · 76 tokens

writing-specs

Use when a workflow step drafts or revises a spec artifact — a goal-and-requirements, an architecture, or a module SPEC — or when a workflow skill names it at such a step. The shared quality bar for specs — not a workflow, nothing to execute.

JetBrains/thinkrail · 59 tokens

requirements-elicitation

Turns vague intent into testable requirements.

andreaswasita/copilot-agents-dojo · 13 tokens

dispatching-parallel-agents

Runs independent subtasks concurrently via sub-agents.

andreaswasita/copilot-agents-dojo · 17 tokens