Logo di Measure

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.

Panoramica

Autorebencium
Repositorybencium-loop
Nome della skillmeasure
Stelle
20
Fork
2
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da bencium su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Measure in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/bencium/bencium-loop/tree/main/bencium-loop/skills/measure
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Measure in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Measure non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Measure non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Measure su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Measure è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Measure in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/bencium/bencium-loop/tree/main/bencium-loop/skills/measure. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Measure?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Measure?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Measure: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Measure è gratuita?

È pubblicata su GitHub da bencium. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇