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.
npx skills add closedloop-ai/claude-plugins --skill measurement-disciplinegit clone --depth 1 https://github.com/closedloop-ai/claude-pluginsWrote 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.
[](https://agentmods.dev/skills/closedloop-ai/claude-plugins/measurement-discipline)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 1mo ago Changed · +24 lines 2dc8181c7466
- 1mo ago Changed · +29 lines · +9 tokens per session 06b08608c456
- 1mo ago First seen · 151 lines · 71 tokens per session scan A 1859b7dcfb87
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.
measurement-discipline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| measurement-disciplineclosedloop-ai/claude-plugins | Skill | 122 | 3d ago | Apache-2.0 | A | 80 | Claude Code |
| grounded-citationsNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| openhandsNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 19 | Claude Code, Codex |
| mcporterNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| apple-notesNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 17 | Claude Code, Codex |
| react-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 49 | Claude Code, Kiro |
| one-three-one-ruleNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 21 | Claude Code, Codex |