web-performance-audit

web-performance-audit is a skill for Claude Code, Codex from zhuanggenhua/BoardGame. It costs 87 tokens per session (1,885 once invoked), scanned A, original, MIT.

A procedure for investigating and measuring performance problems in real BoardGame web pages built with React, a JavaScript user-interface library.

In plain words
What is it for?
It supports performance baselines, browser trace collection, DOM counts, fixes, and repeat measurements for lists, card-heavy screens, dialogs, images, animations, and game pages.
Why use it?
It helps connect visible lag to causes such as excessive rendering, style recalculation, layout, painting, slow images, animation, or repeated React updates.

Skill for Claude CodeCodex

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

Good fit It supports performance baselines, browser trace collection, DOM counts, fixes, and repeat measurements for lists, card-heavy screens, dialogs, images, animations, and game pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuanggenhua/boardgame/web-performance-audit
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 zhuanggenhua/BoardGame --skill web-performance-audit
Clone the repo
git clone --depth 1 https://github.com/zhuanggenhua/BoardGame

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 web-performance-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/web-performance-audit/github.svg)](https://agentmods.dev/skills/zhuanggenhua/boardgame/web-performance-audit)
Your own site
<a href="https://agentmods.dev/skills/zhuanggenhua/boardgame/web-performance-audit"><img src="https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/web-performance-audit/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 web-performance-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuanggenhua/boardgame/web-performance-audit"><img src="https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/web-performance-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,885 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.01885
Opus 5 $0.00044 $0.00942
Sonnet 5 $0.00017 $0.00377
Haiku 4.5 $0.00009 $0.00188

Measured 11d ago against content hash e6dcb9b5e3de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

web-performance-audit 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 11d 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.

.spec/skills/web-performance-audit/SKILL.md · 92 lines

How it starts

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

Web Performance Audit

职责

对 BoardGame 真实 Web 页面做性能基线、定位、修复和复测。优先解决用户正在感知的卡顿,再把同类隐患纳入清单。

本 skill 是项目内执行入口;外部性能 skill 只作为参考来源,不是本项目的第二套规则。已吸收的外部方向:

  • addyosmani/web-quality-skills@performance:性能预算、关键渲染路径、图片/字体、运行时性能、列表虚拟化、缓存和第三方资源治理。
  • vercel-labs/agent-skills@vercel-react-best-practices:React 重渲染、依赖管理、包体、DOM 批处理、缓存和数据结构选择。

前提锁定

改代码前先写清四项:

  1. 问题对象:具体游戏、页面、弹层、列表或交互,例如“某游戏角色选择页”。
  2. 真相来源:用户描述、真实入口截图/录屏、Performance trace、E2E 指标、运行日志或源码路径。
  3. 目标入口/环境:真实路由、桌面/移动、浏览器、是否走图片门禁、是否本地 dev server。
  4. 验收口径:可感知结果和量化指标,例如不卡顿、DOM 数下降、样式重算下降、长任务消失、滚动稳定。

如果复测跳过了关键图片门禁,必须明说:本次只验证页面渲染性能,不代表图片预加载链路健康。

快速分流

  • 用户说“现在很卡 / Performance 红色角标 / border-color / layout / paint”时,先做眼前页面的最小基线和最小修复。
  • 用户说“大排查 / 隐患 / 全面扫一下”时,先列页面和场景矩阵,再按风险分批跑基线,不要直接全仓改。
  • 用户点名长列表、卡牌库、角色选择、日志、弹层选项时,优先检查真实渲染数量;滚动本质可分页,默认考虑 windowing / virtualization。
  • 用户点名图片慢、加载素材卡住、白图或门禁时,先读 critical-image-gatecritical-image-preload
  • 用户点名动画、hover、transition、特效时,先读 animation-effects

基线采集

每个目标入口先保存一组证据到 evidence/<中文主题>/<timestamp>/

  1. README.mdsummary.json:入口、环境、用户原始症状、是否跳过图片门禁。
  2. 截图或录屏:只作为可见结果证据,不替代性能指标。
  3. Performance/trace 指标:样式重算、布局、绘制、脚本、长任务、FPS 或交互延迟。
  4. DOM inventory:总元素数、关键列表项数、图片数、canvas 数、可滚动容器、视口内外元素数。
  5. 资源指标:图片请求数、失败数、解码/加载耗时、字体和大包体。

允许用 Playwright、Chrome DevTools trace、performance.now()、React Profiler 或临时探针。临时脚本放 temp/ 或 evidence 目录;正式收口前删除不该长期存在的临时测试。

定位维度

按现实症状选择维度,不必每次全量扫描:

  • 渲染量:列表、卡牌、候选项、日志、弹层选项是否把视口外内容全部渲染。
  • React 重渲染:父组件状态、内联对象/函数、派生数组、context、key 变化是否导致整片重渲染。
  • CSS 主线程成本:transition-alltransition-colorsborder-*box-shadowfilter、backdrop blur 是否反复触发样式重算或绘制。
  • 布局抖动:读写 DOM 尺寸是否交错,滚动中是否反复计算 getBoundingClientRect(),动画是否改 width/height/top/left。
  • 图片/字体:关键图片门禁、预加载、解码、图集初始化、字体阻塞和未压缩资源是否拖慢首屏。
  • 脚本长任务:初始化、排序、筛选、配置归一化、i18n、卡牌定义遍历是否在首帧一次性做完。
  • 内存与生命周期:滚动、切换、重进页面后监听器、timer、动画循环、cache 是否释放。

修复原则

Read the full file on GitHub · 92 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. 11d ago First seen · 92 lines · 87 tokens per session scan A e6dcb9b5e3de

Subscribe to this mod's changes

web-performance-audit is a skill published in the GitHub repository zhuanggenhua/BoardGame (23 stars, last pushed yesterday), licensed MIT. It adds 87 tokens to every session and 1,885 once invoked, about $0.0004 per session on Opus 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-30.

Related

Other skills, from other repositories

copilotkit-debug

Use when diagnosing CopilotKit issues -- runtime connectivity failures, agent not responding, streaming errors, tool execution problems, transcription failures, version mismatches, and AG-UI event tracing.

CopilotKit/CopilotKit · 42 tokens

copilotkit-agui

Use when building custom agent backends, implementing the AG-UI protocol, debugging streaming issues, or understanding how agents communicate with frontends. Covers event types, SSE transport, AbstractAgent/HttpAgent patterns, state synchronization, tool calls, and human-in-the-loop flows.

CopilotKit/CopilotKit · 61 tokens

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

api-not-found

Diagnose missing TanStack Table v9 exports, options, state slices, and instance methods. Load before inventing an API when code sees a type error, undefined feature method, absent object key, adapter mismatch, or v8-shaped example.

TanStack/table · 53 tokens

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens