measurement-discipline

measurement-discipline is a skill for Claude Code from closedloop-ai/claude-plugins. It costs 80 tokens per session (2,991 once invoked), scanned A, original, Apache-2.0.

A set of rules for running trustworthy performance experiments. It requires a baseline, repeated measurements to estimate normal variation, one change at a time, an explanation for the result, and a written record.

In plain words
What is it for?
Use it when benchmarking speed, database latency, build time, cache behaviour, bundle size, model settings, or request cost.
Why use it?
It helps distinguish a real improvement from random measurement noise and prevents unsuccessful experiments from being forgotten. It also keeps later optimization work from repeating the same tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the closedloop-core plugin — 12 skills shipped together

Good fit Use it when benchmarking speed, database latency, build time, cache behaviour, bundle size, model settings, or request cost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/closedloop-ai/claude-plugins/measurement-discipline
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 closedloop-ai/claude-plugins --skill measurement-discipline
Clone the repo
git clone --depth 1 https://github.com/closedloop-ai/claude-plugins

Made for: Claude Code.

Or install closedloop-core, the plugin that ships this one along with the rest of its 12 skills.

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 measurement-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/measurement-discipline/github.svg)](https://agentmods.dev/skills/closedloop-ai/claude-plugins/measurement-discipline)
Your own site
<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/measurement-discipline"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/measurement-discipline/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 measurement-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/measurement-discipline"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/measurement-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,991 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.00080 $0.02991
Opus 5.5 $0.00032 $0.01196
Sonnet 5.5 $0.00016 $0.00598
Haiku 4.5 $0.00008 $0.00299

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

Security

Grade A, and why

measurement-discipline 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.

plugins/closedloop-core/skills/measurement-discipline/SKILL.md · 204 lines

How it starts

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

Measure One Thing, Then Write It Down

When invoked

Apply the rules below to the measurement or optimization task at hand: prioritize credible impact before expensive experiments, baseline before optimization edits, change one variable, keep a control where the harness could drift, require a mechanism for any claimed win, and record a loss as REFUTED rather than letting it go unwritten. If the project keeps a measurement log, search it by symptom before proposing or diagnosing anything, then append the resulting entry, success or refutation, as part of finishing the task.

Use this as team practice, or paste it into an AI agent's instructions; it is written as instructions either way. It applies to anything measurable: query latency, cache hit rates, build times, bundle size, model parameters, cost per request. Its purpose is to make every optimization question cost one search instead of one rediscovery, and to make sure the answer you find was honestly obtained.

Choose the experiment before paying for it

Start from profiles, traces, or telemetry of the requested workload and rank measured contributors to the whole target metric before proposing fixes. Separate measured bottlenecks from unmeasured hypotheses. A large process or module does not establish how much cost a candidate owns or could remove. When attribution is missing, the next work is a bounded observation that resolves it, not an optimization chosen from size alone.

Before paying for an optimization comparison, quantify the candidate's attributable cost, the fraction its mechanism could remove, and a credible whole-target saving bound. Label that bound as a projection and state its uncertainty. Exploratory profiling and cheap diagnostics obtain this evidence; they do not need exact accounting before the first probe and do not establish a performance win. Rank mechanisms by attainable whole-target impact, supporting evidence, and experiment cost in time and compute; test high-impact areas first. Leave low-ceiling, non-dominant candidates behind while larger credible opportunities remain. Do not spend six-run comparisons on ceilings below the established noise floor or too small to materially advance the operator's target, unless the operator explicitly requested that smaller scope or evidence shows the gains compound into material impact. A helper microbenchmark remains support evidence, never product acceptance.

Read the full file on GitHub · 204 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 · +24 lines 2dc8181c7466
  2. 1mo ago Changed · +29 lines · +9 tokens per session 06b08608c456
  3. 1mo ago First seen · 151 lines · 71 tokens per session scan A 1859b7dcfb87

Subscribe to this mod's changes

measurement-discipline is a skill published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed 3d ago), licensed Apache-2.0. It adds 80 tokens to every session and 2,991 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-10-06.

Related

measurement-discipline compared with skills from other repositories

measurement-discipline next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
measurement-disciplineclosedloop-ai/claude-pluginsSkill1223d agoApache-2.0A80Claude Code
grounded-citationsNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
openhandsNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
mcporterNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
apple-notesNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
react-patternsaffaan-m/ECCSkill313k7d agoMITA49Claude Code, Kiro
one-three-one-ruleNousResearch/hermes-agentSkill267ktodayMITA21Claude Code, Codex