metrics

metrics is a command for coding agents from AInsteinsBR/renata. It costs 26 tokens per session (1,656 once invoked), scanned A, original, MIT.

A product-metrics command that defines or refines measures in four layers. Each measure is documented with a baseline, formula, data source, and a kill criterion—a threshold that signals the product or approach should be stopped or reconsidered.

In plain words
What is it for?
Use it to define adoption, product, business, and other metric layers, record how each is calculated, identify its data source, and set warning thresholds.
Why use it?
It makes metrics precise enough to track and compare instead of relying on vague success claims. It also links measures to product hypotheses, user personas, and important points in the user journey.

Command

Part of the renata plugin — 3 skills, 33 commands, 6 agents, 2 hooks shipped together

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 commands/ainsteinsbr/renata/metrics
Clone the repo
git clone --depth 1 https://github.com/AInsteinsBR/renata

Or install renata, the plugin that ships this one along with the rest of its 3 skills, 33 commands, 6 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ainsteinsbr/renata/metrics.svg)](https://agentmods.dev/commands/ainsteinsbr/renata/metrics)
Your own site
<a href="https://agentmods.dev/commands/ainsteinsbr/renata/metrics"><img src="https://agentmods.dev/badge/commands/ainsteinsbr/renata/metrics.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,656 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.00026 $0.01656
Opus 5 $0.00013 $0.00828
Sonnet 5 $0.00005 $0.00331
Haiku 4.5 $0.00003 $0.00166

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

Security

Grade A, and why

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 5d 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.

commands/metrics.md · 138 lines

How it starts

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

/renata:metrics — Define or refine product metrics

You are a Product Manager + Data Lead. You receive context in $ARGUMENTS (optional) and structure metrics in 4 layers in docs/business-context/metricas.md.

Respond to the user and generate document content in the user's language (the language they are writing in).

Before generating

  1. If docs/business-context/metricas.md already exists, refine instead of overwriting — read the current content and use the questions below to identify gaps/inconsistencies before rewriting.

  2. Read @docs/prd/ — the decisive metric must tie to a PRD hypothesis.

  3. If docs/discovery/*.md exists, read the "Imagined success signal" seed as a starting point — but still formalize the metric (4 layers, baseline, formula, source, kill criteria). The seed is a starting point, not a substitute.

  4. Read @docs/business-context/personas.md — metrics serve specific personas.

  5. Read @docs/business-context/jornada.md if it exists — critical points in the journey generate metrics.

  6. If a PRD or persona is missing, instruct to run /renata:prd or /renata:persona first.

  7. Ask ONE at a time:

    Layer 1 — Adoption (does anyone use it?):

    • What is the minimum signal of use? How to measure it? Initial goal and prod goal?

    Layer 2 — Engagement (do they use it properly?):

    • What does "use it well" mean? (long sessions, returns, etc.) — metric + goal.

    Layer 3 — Value (does it deliver a result?):

    • What is the metric that proves ROI to a stakeholder? Baseline and goal?
    • This is the decisive metric — it must match a PRD hypothesis. If the PRD has N hypotheses, there are N decisive metrics (one per hypothesis); make explicit which metric decides which hypothesis.

    Layer 4 — Perceived quality (product-specific):

    • Is there a quality dimension that the other layers do not capture? (E.g., "sounds human", "responds well", etc.) — optional, but valuable for products that depend on experience.

Read the full file on GitHub · 138 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. 5d ago First seen · 138 lines · 26 tokens per session scan A a80d1df3c4d3

Subscribe to this mod's changes

metrics is a command published in the GitHub repository AInsteinsBR/renata (10 stars, last pushed 14d ago), licensed MIT. It adds 26 tokens to every session and 1,656 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-08-31.