
Web Quality Skills
Skill以实测为先审计并优化网页质量:结合 Lighthouse、Chrome DevTools 性能追踪与 CrUX 数据,覆盖 Core Web Vitals、WCAG 2.2 无障碍、SEO 与最佳实践,适用于任意前端框架。Addy Osmani 出品(非 Google 官方)。
Web Quality Skills
An (unofficial) measurement-first collection of Agent Skills for optimizing web projects with Google Lighthouse, Chrome DevTools for agents, Core Web Vitals, WCAG, and search guidance.
Stack-agnostic. Works with any framework: React, Vue, Angular, Svelte, Next.js, Nuxt, Astro, plain HTML, and more.
Why web quality skills?
While interface guidelines tell you what to build, Web Quality Skills tell you how to build it performantly, accessibly, and optimally for search engines. These skills combine:
- Live Lighthouse audits for agents across Accessibility, SEO, Best Practices, and Agentic Browsing when Chrome DevTools MCP is available
- Performance traces and Insights for diagnosing LCP, INP, CLS, network, and main-thread bottlenecks
- Field plus lab measurement using CrUX for real-user context and controlled browser runs for repeatable diagnosis
- Core Web Vitals optimization patterns for LCP, INP, and CLS
- WCAG 2.2 accessibility standards
- Modern SEO requirements
Available skills
| Skill | Description | Use when |
|---|---|---|
| web-quality-audit | Evidence-led review across Lighthouse and source categories | "Audit my site", "Review this for quality", "Check web quality" |
| performance | Field/lab measurement, traces, loading and runtime fixes | "Optimize performance", "Speed up my site", "Fix slow loading" |
| core-web-vitals | Measured LCP, INP, and CLS diagnosis and optimization | "Improve Core Web Vitals", "Fix LCP", "Reduce CLS" |
| accessibility | WCAG compliance, screen reader support, keyboard navigation | "Improve accessibility", "WCAG audit", "a11y review" |
| seo | Search engine optimization, crawlability, structured data | "Optimize for SEO", "Improve search ranking", "Fix meta tags" |
| best-practices | Security, modern APIs, code quality patterns | "Apply best practices", "Security audit", "Code quality review" |
Measurement model
The performance skills keep four evidence types explicit:
| Evidence | Answers |
|---|---|
| CrUX field data | How eligible real Chrome users experienced the URL or origin over the recent aggregation window |
| First-party RUM | How the site's own users experience routes, releases, devices, and interactions |
| DevTools trace or Lighthouse lab run | What happened in one controlled browser session and why |
| Static source inspection | What might be a problem when the page cannot run |
Field data determines user impact. Lab traces reproduce and diagnose it. A PerformanceObserver snippet run in one browser is a lab observation, not real-user data by itself.
Quick start
Installation
add-skill is a powerful CLI tool that lets you install agent skills onto your coding agents from git repositories. Whether you're using OpenCode, Claude Code, Codex, or Cursor, the add-skill tool makes it simple to extend your agent's capabilities with specialized instruction sets. Use add-skill to automate release notes, create pull requests, integrate with external tools, and more. Simply run npx add-skill to get started.
npx skills add addyosmani/web-quality-skills
or
npx add-skill addyosmani/web-quality-skills
Or manually:
cp -r skills/* ~/.claude/skills/
Claude Code (plugin)
Install as a versioned, namespaced plugin from inside Claude Code:
/plugin marketplace add addyosmani/web-quality-skills
/plugin install web-quality-skills@addy-web-quality-skills
Skills are then namespaced (e.g. /web-quality-skills:performance) and update with /plugin update. The plugin reads the same skills/ directory as the manual copy above — no duplication.
Codex
Install directly via the Codex plugin marketplace (Codex CLI v0.122+):
codex plugin marketplace add addyosmani/web-quality-skills
Once installed, invoke skills in chat using @ (e.g. @performance, @accessibility). See docs/codex-setup.md for local installation and troubleshooting.
Gemini CLI
Install directly via Gemini CLI extensions:
gemini extensions install https://github.com/addyosmani/web-quality-skills
Skills are auto-discovered by Gemini and activate when prompts match their description. See docs/gemini-setup.md for workspace mode and troubleshooting.
claude.ai
Add skills to your project knowledge or paste the SKILL.md contents into your conversation.
Usage
Skills activate automatically when your request matches their description. Examples:
Audit this page for web quality issues
Optimize performance and fix Core Web Vitals
Review accessibility and suggest improvements
Make this SEO-ready
Optional Chrome DevTools integration
When the agent exposes equivalent live-browser capabilities, the skills prefer them. With Chrome DevTools MCP, the current tool names are:
performance_start_traceand focused Performance Insights for performance work, including CrUX context when eligible field data existslighthouse_auditfor Accessibility, SEO, Best Practices, and Agentic Browsing- rendered accessibility snapshots, console messages, and network requests for issue-level diagnosis
This integration is optional. Without it, the skills fall back to Lighthouse CLI, PageSpeed Insights/CrUX tools, manual browser checks, and static inspection rather than stopping the task.
Skill details
web-quality-audit
The comprehensive skill that orchestrates all other skills. It starts with live evidence when a page is runnable and keeps measured failures separate from source-code hypotheses.
Trigger phrases: "audit my site", "quality review", "lighthouse audit", "check web quality"
What it checks:
- All Core Web Vitals metrics
- Performance Insights, network delivery, and runtime bottlenecks
- Automated and manual accessibility signals
- Crawl, index, metadata, and structured-data requirements
- Security, compatibility, and browser best-practice patterns
- Agentic Browsing signals such as agent-facing semantics and optional WebMCP/
llms.txtchecks
performance
Deep-dive into loading and runtime performance optimization, using CrUX or first-party RUM to prioritize user impact and DevTools traces to diagnose causes.
Trigger phrases: "speed up", "optimize performance", "reduce load time", "fix slow"
Key optimizations:
- Critical rendering path
- JavaScript bundling and code splitting
- Image optimization (formats, sizing, lazy loading)
- Font loading strategies
- Caching and preloading
- Server response optimization
core-web-vitals
Specialized skill for the three Core Web Vitals that describe loading, responsiveness, and visual stability. Google uses Core Web Vitals in its page-experience systems, but a passing score does not promise a ranking change.
Trigger phrases: "Core Web Vitals", "LCP", "INP", "CLS", "page experience"
Metrics covered:
- LCP (Largest Contentful Paint) < 2.5s
- INP (Interaction to Next Paint) < 200ms
- CLS (Cumulative Layout Shift) < 0.1
accessibility
Comprehensive accessibility audit following WCAG 2.2 guidelines.
Trigger phrases: "accessibility", "a11y", "WCAG", "screen reader", "keyboard navigation"
Categories:
- Perceivable (text alternatives, captions, contrast)
- Operable (keyboard, timing, seizures, navigation)
- Understandable (readable, predictable, input assistance)
- Robust (compatible with assistive technologies)
seo
Search engine optimization for better visibility and ranking.
Trigger phrases: "SEO", "search optimization", "meta tags", "structured data", "sitemap"
What it covers:
- Technical SEO (crawlability, indexability)
- On-page SEO (meta tags, headings, content structure)
- Structured data (JSON-LD, schema.org)
- Mobile-friendliness
- Performance signals
best-practices
Modern web development standards and security practices.
Trigger phrases: "best practices", "security audit", "modern standards", "code quality"
Areas covered:
- HTTPS and security headers
- Modern JavaScript APIs
- Browser compatibility
- Error handling
- Console cleanliness
Thresholds reference
Core Web Vitals
| Metric | Good | Needs improvement | Poor |
|---|---|---|---|
| LCP | ≤ 2.5s | 2.5s – 4.0s | > 4.0s |
| INP | ≤ 200ms | 200ms – 500ms | > 500ms |
| CLS | ≤ 0.1 | 0.1 – 0.25 | > 0.25 |
Field Core Web Vitals are assessed at the 75th percentile; these thresholds are not a claim about a single lab run.
Starting performance budget recommendations
These are initial guardrails, not universal thresholds. Set budgets from the product's target devices, networks, page types, and user journeys.
| Resource type | Budget |
|---|---|
| Total page weight | < 1.5 MB |
| JavaScript | < 300 KB (compressed) |
| CSS | < 100 KB (compressed) |
| Images | < 500 KB total above-fold |
| Fonts | < 100 KB |
| Third-party | < 200 KB |
Example automated audit guardrails
Scores help catch regressions but do not prove accessibility, security, SEO ranking, or user experience. Preserve project-specific targets and compare runs made with the same tool version and conditions.
| Category | Example guardrail |
|---|---|
| Performance | ≥ 90 |
| Accessibility | Aim for 100 automated coverage; complete manual checks |
| Best Practices | ≥ 95 |
| SEO | ≥ 95 |
Framework-specific notes
These skills are framework-agnostic, but some common patterns:
React/Next.js: Use next/image, React.lazy(), Suspense, useCallback/useMemo for INP
Vue/Nuxt: Use nuxt/image, async components, v-once, computed properties
Svelte/SvelteKit: Use {#await}, svelte:image, reactive statements
Astro: Use <Image>, partial hydration, view transitions
Static HTML: Use native lazy loading, <picture>, preconnect hints
Contributing
Contributions welcome! Please follow the Agent Skills specification.
- Fork the repository
- Create your skill in
skills/{skill-name}/SKILL.md - Keep SKILL.md under 500 lines (use
references/for details) - Include practical examples and patterns
- Submit a pull request
Resources
- Google Lighthouse Documentation
- Lighthouse audits with AI agents
- Chrome DevTools MCP
- Chrome UX Report
- web.dev Learn Performance
- Core Web Vitals
- WCAG 2.2 Guidelines
- Agent Skills Specification
License
MIT License - see LICENSE for details.
Built with insights from the Chrome DevTools team, web performance experts, and accessibility advocates to help developers create high-quality web experiences.
相關資源

Unlighthouse
CLI调用 Google Lighthouse 自动扫描整个网站(同类页面智能抽样),在本地网页界面里逐页汇总 SEO、性能和无障碍评分;另有 unlighthouse-ci 命令直接生成报告,便于 agent 读取。适合市场人员给官网做 SEO 体检。需要 Node.js 22.18 或更高版本。
harlan-zw/unlighthouse5k
Lighthouse
CLIGoogle Chrome 团队官方的网页审计工具,命令行即可对页面跑性能、无障碍、最佳实践与 SEO 评分,输出 HTML / JSON / CSV 报告,便于 agent 循环优化网页。需要 Node 22+ 与 Chrome。
GoogleChrome/lighthouse31.3k
BrowserTools MCP
MCP通过 Chrome 扩展把你正在使用的浏览器会话交给 agent:读取控制台日志与网络请求、截图,并运行 Lighthouse 性能、无障碍与 SEO 审计,无需重新登录。
AgentDeskAI/browser-tools-mcp7.3k
Web Perf
Skill排查网页加载与交互性能问题:优先用 Chrome DevTools 的性能跟踪与网络记录,没有时退回已有的 trace、Lighthouse 结果或源码,沿着瓶颈定位到具体请求、元素或代码,区分实测值、工具估算与未经测量的推测,修复后在同等条件下复测。不包含无障碍审计。
elithrar/dotfiles226
Chrome DevTools MCP
PluginChrome 官方插件,打包 Chrome DevTools MCP 与无障碍、LCP、内存泄漏等调试技能:让 agent 操控并检查真实的 Chrome,分析网络请求、控制台日志和性能追踪。默认收集使用统计,可以关闭。
ChromeDevTools/chrome-devtools-mcp60.2k
Vercel React Best Practices
SkillVercel 工程团队整理的 React 与 Next.js 性能规范,70 条规则按影响排序,涵盖消除请求瀑布、包体积、服务端性能与重复渲染,供编写、评审与重构时对照。Vercel 官方维护。
vercel-labs/agent-skills35.3k