Measure logo

Measure

Community
bencium
measure

Single source of truth for bencium-loop's performance and usability measurement — what is measured, how a run is judged (budget fail vs drift warning), where the history lives, and how /bencium-verify, /bencium-next and /bencium-init use it. Read this before running, configuring, or reporting a measurement.

Overview

Publisherbencium
Repositorybencium-loop
Skill namemeasure
Stars
20
Forks
2
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by bencium on GitHub. Read the source before you install it.

Installation

Install the Measure AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bencium/bencium-loop/tree/main/bencium-loop/skills/measure
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bencium/bencium-loop.git /tmp/bencium-loop
mkdir -p .claude/skills
cp -r /tmp/bencium-loop/bencium-loop/skills/measure .claude/skills/measure
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Measure in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Measure on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Measure is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

measure

ACCEPTANCE.md says what "done" means in yes/no checks. This says what "good" means in numbers: how fast pages load, how accessible they are, and how long the journeys users actually take. It gives the agent a target it can see and improve against, not just a list it can tick.

What is measured

node .harness/measure/measure.mjs, run from the project root, against the local app at url in .harness/measure.json. For each page in pages: the median of runs cold loads in a real browser (Playwright, CPU slowed cpu_slowdown×), plus one accessibility scan (axe-core).

MetricMeaning
ttfb_mstime until the server's first byte
fcp_mstime until anything appears
lcp_mstime until the main content appears
clshow much the layout jumps while loading
tbt_mshow long the page was too busy to respond to a tap (approximate)
js_kb / requestsJavaScript downloaded / network requests
console_errorsbrowser console errors and uncaught exceptions
a11y_critical … a11y_minorelements failing an accessibility rule, by severity

For each entry in journeys: the project's own script in .harness/journeys/<name>.mjs (template: ${CLAUDE_PLUGIN_ROOT}/templates/journey.mjs.tmpl), timed step by step, judged on max_ms and max_steps.

The default budgets are Google's published "good" thresholds (web.dev, checked 2026-10-25): LCP 2.5s, FCP 1.8s, CLS 0.1, TBT under 200ms. They are set for real users on average phones, at the 75th percentile. These numbers come from one machine, not from users — say so whenever you report them. The CPU slowdown narrows that gap; it does not close it.

How a run is judged

  • fail — any number over its budget, a journey over max_ms / max_steps or broken at a step, or anything that could not be measured (app not running, browser missing, a budgeted metric absent). Unmeasured is unproved, and unproved never passes — the same rule as the invariants skill.
  • warn — inside budget, but worse than the last run that measured it by more than drift_pct (default 15%) and more than a small floor (50ms; 0.02 CLS; 10KB JS; 100ms per journey). Any rise in an accessibility or console-error count warns.
  • pass — everything else.

Exit code 1 means fail. The last line of output is BENCIUM_MEASURE {"result", "fails", "warns", "findings"}. A missing .harness/measure.json prints result: "skip" — measurement is not configured, which is a gap to show, not a pass to claim.

Where it is used

  • /bencium-verify Step 2.5 runs it after the hard checks. fail is a FAIL like any other check: the verify result is fail, the receipt says so, and the deploy gate refuses. warn appears in the report and does not change the result. skip prints Measurement: not configured.
  • /bencium-next Step 2 reads the last line of .harness/metrics.jsonl and offers its worst finding — every fail before any warn — as a candidate task. The user chooses; never pick it for them.
  • /bencium-next PLAN — a task that adds or changes a user-facing flow names the journey it adds or updates (Journey (timed):), and BUILD writes it. This is how journeys accumulate.
  • /bencium-init offers to set it up for projects with a web UI.

History

.harness/metrics.jsonl gets one line per run (about 1KB): time, commit, result, every number, and the findings. Commit it — the trend is how anyone can tell which commit made things slower. It lives under .harness/, so writing it does not change the verify receipt's working-tree fingerprint.

Setup

bash
mkdir -p .harness/measure .harness/journeys
cp "${CLAUDE_PLUGIN_ROOT}/measure/"{measure.mjs,judge.mjs,package.json} .harness/measure/
npm install --prefix .harness/measure
npx --prefix .harness/measure playwright install chromium   # ~100MB browser download, once per machine

Then write .harness/measure.json from ${CLAUDE_PLUGIN_ROOT}/templates/measure.json.tmpl and gitignore .harness/measure/node_modules/. The tools live in their own folder so measurement works for any stack, Node or not, without touching the project's dependencies.

Speed numbers from a dev server mean little. Point serve at a production build (e.g. npm run build && npm run start); the runner starts it, waits for url, and stops it afterwards. Without serve, the app must already be running.

Frequently asked questions

What does the Measure AI skill do?

Single source of truth for bencium-loop's performance and usability measurement — what is measured, how a run is judged (budget fail vs drift warning), where the history lives, and how /bencium-verify, /bencium-next and /bencium-init use it. Read this before running, configuring, or reporting a measurement.

Why use Measure on TypingMind?

Because you install it once and use it with any model. Measure is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Measure in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bencium/bencium-loop/tree/main/bencium-loop/skills/measure. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Measure?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Measure?

As many as you like. As long as a model supports skills, you can use Measure with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Measure AI skill free?

It is published on GitHub by bencium. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇