metric-design

metric-design is a skill for Claude Code, Codex from kirodotdev/KiroCrew. It costs 85 tokens per session (825 once invoked), scanned A, original, Apache-2.0.

A first-stage process for designing a trustworthy measurement for improving a software project. It defines the main number to track, supporting stages, reference results, safety limits, and checks against misleading improvements.

In plain words
What is it for?
Use it to inspect a repository, create and calibrate a measurement configuration, record baselines, and set rules that prevent regressions before optimization begins.
Why use it?
An optimization loop can appear to improve a project when its measurement is noisy or measures the wrong thing.

Skill for Claude CodeCodex

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

Good fit Use it to inspect a repository, create and calibrate a measurement configuration, record baselines, and set rules that prevent regressions before optimization begins.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kirodotdev/kirocrew/metric-design
About the project

Kiro Crew is a persistent development workspace where agents continue multi-step software work across sessions, schedules, and connected interfaces. Developers use it locally or remotely through a desktop app, web dashboard, CLI, Slack, or Discord, with unattended tasks and recurring jobs. The catalogue contains skills and instructions for working with this workspace.

kirodotdev/KiroCrew · 5,138 stars · on GitHub · kiro.dev

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 kirodotdev/KiroCrew --skill metric-design
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

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 metric-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirodotdev/kirocrew/metric-design/github.svg)](https://agentmods.dev/skills/kirodotdev/kirocrew/metric-design)
Your own site
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/metric-design"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/metric-design/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-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/metric-design"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/metric-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 825 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.00085 $0.00825
Opus 5.5 $0.00034 $0.00330
Sonnet 5.5 $0.00017 $0.00165
Haiku 4.5 $0.00009 $0.00082

Measured 1mo ago against content hash 9880009db2f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metric-design 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 1mo 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.

src/kiro_crew/apps/builtins/auto_improvement/skills/metric-design/SKILL.md · 61 lines

How it starts

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

metric-design — build the ruler (Phase 1)

Build the ruler before you measure anything with it. This skill explains Phase 1: how the app designs and proves a metric the keep-or-revert loop can trust. A loop optimizing a noisy or wrong ruler "wins" on fiction, and that is the dominant risk this app is built to eliminate — so Phase 2 does not start until Phase 1 has proven itself.

Calibration is backend code, not an agent task. It runs from the owner-only POST /api/apps/auto-improvement/calibrate route, and again as the pre-flight of every perf-track run. No agent tool calibrates or writes the ruler, and the discovery agent must never touch it; read it with the get_ruler MCP tool.

The output — the ruler record

Calibration writes ruler/ruler.json under the active repository+branch workspace (data/repos/<workspace-key>/ruler/): status (calibrated or canary_failed), the primary metric, the noise band, a baseline anchor (the median sample), the canary result and the raw samples. There is no separate metric-design document. The ruler the active target profile supplies:

  • Primary metric — a low-variance number where the two measurement arms cancel as much shared cost as possible (label + unit + direction). Never hard-coded in the UI; it is read from the profile.
  • Attributable sub-stages — so a win is pinned to a named stage rather than hand-waved as a whole-system improvement.
  • Frozen anchors — reference measurements. Calibration records one, the baseline median, in ruler.json; the shipped GitHub profile declares no others.
  • Guardrails — metrics that must not regress beyond a stated tolerance.
  • Reward-hack guards — checks the build/test gate structurally cannot see, such as "no silent capability shrink" or "a held-out functional probe still passes".

Calibration — the trust gate

  1. Noise band — repetitions of the untouched baseline under the full harness (calibrationReps, default 5; a run's pre-flight clamps it to 2–10 because each rep is a full suite run), then noise_band = max(2σ, floor). Any delta inside the band is no change, not a small win.
  2. Canary (mandatory by default) — a known or deliberately forced win that MUST clear the band. If it cannot, the harness is broken and the run halts. This is the Phase-1 gate: every perf-track run re-proves the ruler in its own pre-flight before any Phase-2 cycle, whatever ruler.json says. The bug track skips pre-flight. canaryAdvisory: true is an explicit operator opt-out that downgrades a failed canary to a warning.

Read the full file on GitHub · 61 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. 1mo ago Changed · +9 lines · +10 tokens per session 9880009db2f0
  2. 3mo ago First seen · 52 lines · 75 tokens per session scan A 678a0cde32ac

Subscribe to this mod's changes

metric-design is a skill published in the GitHub repository kirodotdev/KiroCrew (5,138 stars, last pushed today), licensed Apache-2.0. It adds 85 tokens to every session and 825 once invoked, about $0.0003 per session on Opus 5.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.

Related

metric-design compared with skills from other repositories

metric-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metric-designkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A85Claude Code, Codex
cost-efficiency-analyzerawslabs/agentcore-samplesSkill3.6k4d agoApache-2.0A98Claude Code, Codex
trend-analysisawslabs/agentcore-samplesSkill3.6k4d agoApache-2.0A21Claude Code
deploying-to-staging-environmentAgentWorkforce/relaySkill1.2ktodayApache-2.0A44Claude Code
writing-relayflowsAgentWorkforce/relaySkill1.2ktodayApache-2.0A184Claude Code, Codex
vigilante-create-issuealiengiraffe/vigilanteSkill4212d agoApache-2.0A25Codex
bmad-specalvin-reyes/better-agentic-ideSkill3811d agoMITA76Claude Code