perf-budget

perf-budget is a skill for Claude Code, Codex from m-binimran/dev-pack. It costs 45 tokens per session (356 once invoked), scanned A, original, MIT.

A performance checklist for a Next.js website based on Core Web Vitals, which measure loading speed, layout stability, and interaction response.

In plain words
What is it for?
Checking LCP, CLS, and INP, reviewing images, fonts, client-side JavaScript, caching, and large components with Lighthouse or a Next.js build.
Why use it?
It helps find slow pages, unexpected movement, and heavy browser code before release, using measured results instead of assumptions.

Skill for Claude CodeCodex

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

Good fit Checking LCP, CLS, and INP, reviewing images, fonts, client-side JavaScript, caching, and large components with Lighthouse or a Next.js build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m-binimran/dev-pack/perf-budget
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 m-binimran/dev-pack --skill perf-budget
Clone the repo
git clone --depth 1 https://github.com/m-binimran/dev-pack

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 perf-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/m-binimran/dev-pack/perf-budget/github.svg)](https://agentmods.dev/skills/m-binimran/dev-pack/perf-budget)
Your own site
<a href="https://agentmods.dev/skills/m-binimran/dev-pack/perf-budget"><img src="https://agentmods.dev/badge/skills/m-binimran/dev-pack/perf-budget/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 perf-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/m-binimran/dev-pack/perf-budget"><img src="https://agentmods.dev/badge/skills/m-binimran/dev-pack/perf-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 356 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.00045 $0.00356
Opus 5.5 $0.00018 $0.00142
Sonnet 5.5 $0.00009 $0.00071
Haiku 4.5 $0.00005 $0.00036

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

Security

Grade A, and why

perf-budget 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/perf-budget/SKILL.md · 30 lines

What it actually says

perf-budget

The budget

  • LCP < 2.5s · CLS < 0.1 · INP < 200ms (the three Core Web Vitals).
  • JS shipped to the client kept lean; flag large client bundles.

Checks & fixes

  • Images: use next/image (lazy, sized, modern formats). Set width/height to reserve space → fixes CLS.
  • Fonts: next/font (self-hosted, display: swap) — no layout shift, no render-block.
  • Client JS: prefer Server Components; "use client" only where needed. dynamic() import heavy/below-fold components. Watch big date/icon/chart libs.
  • LCP element: make the hero image/text fast — priority on the LCP image, no blocking work above it.
  • Caching: static where possible; sensible revalidate.

Measure, don't guess

  • Run Lighthouse / next build and read the real numbers. Report measured values against the budget.
  • If you can't measure in this environment, say the budget is "designed for" not "verified."

Output

  • Each metric: target vs. measured (or "unmeasured"), and the fix for any miss.

Guardrails

  • Don't claim a CWV pass without a real measurement.
  • Don't ship a render-blocking third-party script without justifying it.
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 · 30 lines · 45 tokens per session scan A 2bb14a8929de

Subscribe to this mod's changes

perf-budget is a skill published in the GitHub repository m-binimran/dev-pack (2 stars, last pushed 5mo ago), licensed MIT. It adds 45 tokens to every session and 356 once invoked, about $0.0002 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-31.

Related

perf-budget compared with skills from other repositories

perf-budget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perf-budgetm-binimran/dev-packSkill25mo agoMITA45Claude Code, Codex
nemo-guardrailsdavila7/claude-code-templatesSkill34ktodayMITB61Claude Code, Codex
token-trackerautomateyournetwork/netclawSkill739todayApache-2.0A22Claude Code, Codex
agent-safetyericrisco/rsc-harnessSkill6825d agoMITA79Claude Code, Codex
cuga-github-issuescuga-project/cuga-agentSkill1.2kyesterdayApache-2.0A101Claude Code, Codex
cuga-contributor-workflowscuga-project/cuga-agentSkill1.2kyesterdayApache-2.0A97Claude Code, Codex
paranoid-mode-honesty-not-cloneIgorGanapolsky/ThumbGateSkill34todayMITA0Claude Code