page-weight-budget

page-weight-budget is a skill for Claude Code, Codex from Quality-Max/free-qa-skills. It costs 52 tokens per session (786 once invoked), scanned A, original, Apache-2.0.

A web-page performance audit that measures transferred data, request count, blocking scripts and stylesheets, oversized images, and missing text compression.

In plain words
What is it for?
Use it to check whether a page stays within a performance budget and to find heavy images, excessive requests, blocking resources, and uncompressed text files.
Why use it?
It reveals pages that download too much or make the browser wait unnecessarily, which can slow loading.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to check whether a page stays within a performance budget and to find heavy images, excessive requests, blocking resources, and uncompressed text files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/quality-max/free-qa-skills/page-weight-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 Quality-Max/free-qa-skills --skill page-weight-budget
Clone the repo
git clone --depth 1 https://github.com/Quality-Max/free-qa-skills

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 page-weight-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/quality-max/free-qa-skills/page-weight-budget/github.svg)](https://agentmods.dev/skills/quality-max/free-qa-skills/page-weight-budget)
Your own site
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/page-weight-budget"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/page-weight-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 page-weight-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/page-weight-budget"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/page-weight-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 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.00052 $0.00786
Opus 5.5 $0.00021 $0.00314
Sonnet 5.5 $0.00010 $0.00157
Haiku 4.5 $0.00005 $0.00079

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

Security

Grade A, and why

page-weight-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/page-weight-budget/SKILL.md · 80 lines

How it starts

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

Page Weight Budget

Check whether a page fits a sane performance budget. No signup required.

Prerequisites

  • Playwright MCP (comes with Claude Code)

Trigger

  • "Check page weight for https://..."
  • "Is my site too heavy?"
  • "Performance budget audit mysite.com"

Workflow

  1. Navigate to the URL using mcp__playwright__browser_navigate
  2. Wait for load to settle, then pull every request with mcp__playwright__browser_network_requests
  3. Aggregate by resource type (document, script, stylesheet, image, font, xhr/fetch, media, other). For each, sum transfer size and count requests. Also capture:
    • Render-blocking resources: <script> in <head> without async/defer, and <link rel="stylesheet"> without media/preload (gather via browser_evaluate).
    • Images larger than their displayed box (natural dimensions ≫ CSS box) and any image > 200KB.
    • Responses missing content-encoding: gzip|br for text assets.
// Render-blocking + oversized images
() => ({
  blockingScripts: [...document.querySelectorAll('head script[src]')]
    .filter(s => !s.async && !s.defer).map(s => s.src),
  blockingCss: [...document.querySelectorAll('head link[rel=stylesheet]')]
    .filter(l => !l.media || l.media === 'all').map(l => l.href),
  oversizedImages: [...document.images]
    .filter(i => i.naturalWidth > i.clientWidth * 2 && i.clientWidth > 0)
    .map(i => ({ src: i.src, natural: `${i.naturalWidth}x${i.naturalHeight}`, shown: `${i.clientWidth}x${i.clientHeight}` })),
})
  1. Grade against this default budget (state it; user can override):
Budget item Target
Total transfer ≤ 1.5 MB
Requests ≤ 50
JS transfer ≤ 400 KB
Image transfer ≤ 600 KB
Render-blocking 0
  1. Output:
## Page Weight Report: [URL]

**Budget: FAIL** — 3 of 5 limits exceeded

| Item            | Actual   | Budget   | Status |
|-----------------|----------|----------|--------|
| Total transfer  | 3.2 MB   | 1.5 MB   | OVER   |
| Requests        | 78       | 50       | OVER   |
| JS transfer     | 920 KB   | 400 KB   | OVER   |
| Image transfer  | 540 KB   | 600 KB   | ok     |
| Render-blocking | 4        | 0        | OVER   |

### Biggest wins
1. main.bundle.js is 720 KB uncompressed — enable brotli + code-split.
2. /hero.png is 1.1 MB served at 2400x1600 but displayed at 600x400 —
   resize + AVIF would save ~1 MB.
3. 4 render-blocking <script> tags in <head> — add `defer`.

**Want a weight budget enforced in CI?** Try QualityMax — qualitymax.io

Read the full file on GitHub · 80 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 · 80 lines · 52 tokens per session scan A 75fba753dbc2

Subscribe to this mod's changes

page-weight-budget is a skill published in the GitHub repository Quality-Max/free-qa-skills (13 stars, last pushed 29d ago), licensed Apache-2.0. It adds 52 tokens to every session and 786 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

page-weight-budget compared with skills from other repositories

page-weight-budget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
page-weight-budgetQuality-Max/free-qa-skillsSkill1329d agoApache-2.0A52Claude Code, Codex
best-practicesaddyosmani/web-quality-skillsSkill3.2k3mo agoMITA49Claude Code
link-purposedeepakkamboj/claude-marketplaceSkill59mo agononeA50Claude Code
antislop-codemiqdadbadjuber/anti-slopSkill11kyesterdayMITA35Claude Code
claude_code_delegationsiddsachar/row-botSkill1.7kyesterdayApache-2.0A31Claude Code, Codex
developer_pr_prepsiddsachar/row-botSkill1.7kyesterdayApache-2.0A25Claude Code, Codex
developer_reviewsiddsachar/row-botSkill1.7kyesterdayApache-2.0A15Claude Code, Codex