metric-lock

metric-lock is a skill for Claude Code, Codex from EvoClaw/amplify. It costs 35 tokens per session (634 once invoked), scanned A, original, MIT.

A rule that freezes confirmed evaluation choices in a research project. Evaluation choices include the measures, datasets, data splits, random seeds, testing procedure, and comparison methods.

In plain words
What is it for?
It helps keep confirmed research plans unchanged and requires a documented explanation, justification, and evidence before a locked choice can be altered.
Why use it?
It prevents changing the goal or test conditions after seeing results, which could make an experiment look better without a fair reason.

Skill for Claude CodeCodex

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

Good fit It helps keep confirmed research plans unchanged and requires a documented explanation, justification, and evidence before a locked choice can be altered.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evoclaw/amplify/metric-lock
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 EvoClaw/amplify --skill metric-lock
Clone the repo
git clone --depth 1 https://github.com/EvoClaw/amplify

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-lock

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/evoclaw/amplify/metric-lock"><img src="https://agentmods.dev/badge/skills/evoclaw/amplify/metric-lock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 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.00035 $0.00634
Opus 5.5 $0.00014 $0.00254
Sonnet 5.5 $0.00007 $0.00127
Haiku 4.5 $0.00003 $0.00063

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

Security

Grade A, and why

metric-lock 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 3mo 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/metric-lock/SKILL.md · 78 lines

How it starts

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

Metric Lock (Discipline Layer)

Overview

Changing evaluation metrics after confirmation is not optimization — it is goalpost-moving. This skill activates after plan freeze (G2) and remains in effect until project end.

Core principle: Locked means locked. No silent modifications.

Violating the letter of this rule is violating the spirit of this rule.

The Iron Law

EVALUATION METRICS, ONCE CONFIRMED, ARE IMMUTABLE WITHOUT USER PERMISSION

What Is Locked

After G2 plan freeze, the following are immutable:

  • Primary metrics (e.g., F1, BLEU, AUC)
  • Evaluation protocol (e.g., k-fold, held-out test, leave-one-out)
  • Datasets and splits (train/val/test partitions, exact files)
  • Random seeds
  • Baseline list and their configurations

What Is Allowed

Secondary/supplementary metrics may be added for additional analysis. They cannot replace primary metrics and cannot be used to override primary metric conclusions.

Change Request Process

IF you believe a locked item must change:

1. EXPLAIN: What exactly needs to change?
2. JUSTIFY: Why is the current version flawed?
3. PROVE: Show evidence the locked version is defective (not just suboptimal)
4. WAIT: User decides — not you
5. LOG: Record old value, new value, reason in change_log

Skip any step = unauthorized modification = academic misconduct

Red Flags — STOP

  • Quietly changing evaluation script parameters
  • Reporting a different metric than the one locked
  • Weakening baseline configuration after seeing results
  • Using a different data split than specified
  • Rounding, clipping, or post-processing metrics differently than protocol
  • "Forgetting" a baseline that was performing well

Rationalization Prevention

Excuse Reality
"This metric isn't quite right" You argued for it in Phase 3. To change, go through the change request process.
"A different metric shows better results" That's exactly why changing is forbidden.
"The community now prefers X" If true, convince the user. Don't change silently.
"Just adding a supplementary metric" Adding secondary is fine. Replacing primary is not.
"The baseline used a different metric" Adapt the baseline, don't change your protocol.
"It's a minor adjustment" Minor adjustments to locked items require user approval. Always.
"The metric has a known limitation" All metrics do. Document the limitation; don't swap the metric.

Read the full file on GitHub · 78 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. 3mo ago First seen · 78 lines · 35 tokens per session scan A 1586fda27804

Subscribe to this mod's changes

metric-lock is a skill published in the GitHub repository EvoClaw/amplify (11 stars, last pushed 9mo ago), licensed MIT. It adds 35 tokens to every session and 634 once invoked, about $0.0001 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-lock compared with skills from other repositories

metric-lock next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metric-lockEvoClaw/amplifySkill119mo agoMITA35Claude Code, Codex
make_planagentscope-ai/QwenPawSkill38k3d agoApache-2.0A51Claude Code, Codex
newclacky-ai/openclackySkill1.2k3d agoMITA10Claude Code
oss-uploadclacky-ai/openclackySkill1.2k3d agoMITA40Claude Code, Codex
officecli-word-formiOfficeAI/OfficeCLISkill34k10d agoApache-2.0C224Claude Code, Codex
windbg-user-heap-corruption-investigationmicrosoft/win-dev-skillsSkill52113d agoMITA46Claude Code
yida-publish-pageopenyida/openyidaSkill234todayMITA56Claude Code, Codex