Borrowing it
Nothing to install: this file belongs to cardstack/boxel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cardstack/boxel/main/.claude/skills/client-perf-diagnosis/SKILL.mdgit clone --depth 1 https://github.com/cardstack/boxelWrote 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/cardstack/boxel/client-perf-diagnosis)<a href="https://agentmods.dev/skills/cardstack/boxel/client-perf-diagnosis"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/client-perf-diagnosis/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/cardstack/boxel/client-perf-diagnosis"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/client-perf-diagnosis.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.00595 | $0.10588 |
| Opus 5.5 | $0.00238 | $0.04235 |
| Sonnet 5.5 | $0.00119 | $0.02118 |
| Haiku 4.5 | $0.00060 | $0.01059 |
Grade A, and why
client-perf-diagnosis scanned grade A with 1 finding 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 5d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
host instrument → fetch(keepalive) POST /_client-telemetry → one `boxel:client-perf` How it starts
The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Client performance diagnosis
The host runs an always-on, passive client performance instrument. It samples the main thread and hooks the client's own server interactions, batches what it sees into a bounded ring buffer, and beacons the batch to the realm-server's POST /_client-telemetry route. The route re-emits one structured JSON log line per event on the boxel:client-perf channel; alloy tails the realm-server's stdout into Loki, and the "Host App Client Performance" Grafana dashboard (uid boxel-client-perf) — the host app is the instrumented client; boxel-cli and other API clients do not beacon — reads those lines with | json.
This is the tool for turning a vague field complaint — "the app was slow loading my card", "my tab froze" — into a measured story attributed to a specific account. Every event carries the authenticated matrix_user_id and a per-tab session_id, so you can start from who and reconstruct what their browser was doing.
The pipeline
host instrument → fetch(keepalive) POST /_client-telemetry → one `boxel:client-perf`
JSON log line per event → alloy tails realm-server stdout → Loki → Grafana `| json`
Nothing about this is a separate data store: it rides the same log pipeline every realm-server log already uses. A client event is just a realm-server log line with a known shape.
What gets measured, and how often
The instrument gathers at each signal's natural cadence, decoupled from how often it talks to the network:
- The main thread is probed by a ~100ms heartbeat; long-animation-frame (LoAF) / longtask observers fire as the browser reports them; the JS self-profiler (on sampled sessions) samples continuously; the event hooks (card-load, server-request, deserialize, rebuild, realm-event) record at the instant each occurs; uncaught exceptions and unhandled rejections are captured as they surface, coalesced by signature so a loop reports a count rather than a flood.
- Those samples accumulate in a ring buffer that a separate ~1s flush loop batches and POSTs at most once per second, and only when the batch carries signal. An otherwise-quiet tab still beacons a compact
keepaliveon a fixed cadence, so an activesession_idis visible even when nothing is wrong.
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.
- 5d ago First seen · 357 lines · 595 tokens per session scan A b15d147b605c
client-perf-diagnosis is a skill published in the GitHub repository cardstack/boxel (27 stars, last pushed today), licensed MIT. It adds 595 tokens to every session and 10,588 once invoked, about $0.0024 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
systematic-debugging
Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.
log-error-digest
Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…
cwv-optimizer
Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…
incident-response-incident-response
Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.
ci-fixer
CI failures - read error, minimal fix, verify.