Skip to content
Search

Modern Web Guidance

lastmod 2026-11-23created 2026-11-221 edits

Modern Web Guidance is a collection of skills for coding agents made by the Google Chrome team. It puts the latest web platform features, best practices, and browser compatibility data into the agent's context. The goal is to steer agents toward the HTML, CSS, and APIs that browsers provide natively, instead of writing long JavaScript in the older patterns that dominate their training data. It was released as a preview at Google I/O in May 2026, and version 1.0 shipped on November 10.

About

  • When the skill is activated for a web task, the agent finds the right guide with the CLI's search and fetches code patterns, caveats, and fallbacks with retrieve. Search runs offline with a built-in embedding model and BM25, so no API key is needed
  • The guides cover 262 web features (140 CSS and layout, 37 HTML and DOM, 85 JavaScript and API), such as View Transitions, container queries, Anchor Positioning, the Popover API, scheduler.yield, and the browser's built-in AI APIs
  • The guides include Baseline compatibility data, so recommendations match the project's browser support range. Origin Trial APIs and single-engine features less than 3 months old are only returned if allowed in .mwgrc
  • Version 1.0 added a modernization workflow that statically analyzes existing HTML, CSS, JavaScript, and package.json to find places that can be changed safely (/modern-web-guidance Modernize the code in this directory, or legacy-scan in the CLI). The first version only checks a fixed set of patterns
  • Areas that models often miss are listed as accessibility (keyboard focus and inert, reduced motion, form validation), UX (swipe gestures, dialog and popover transitions, light/dark themes), performance (splitting up main-thread work, layout shifts), and security (HTML sanitization, strict CSP, passkeys). Guides for user-facing UI were reviewed by accessibility experts using real assistive technologies
  • Evaluated on real web app tasks with a Playwright grader. In the November 8 results in the README, using the guides raised the pass rate from 57% to 88% for Claude Code (Opus 5.5), from 54% to 82% for Codex CLI, and from 58% to 94% for Antigravity CLI
  • Recommended for use alongside Chrome DevTools for agents: the guides help write the code, and DevTools runs runtime checks such as performance traces on an emulated low-end CPU
  • Since 1.0 it has been a cross-browser project with Firefox and Edge participating. The README says it is maintained jointly by the Chrome, Edge, Firefox, and MDN teams
  • Installed with npx modern-web-guidance@latest install, or through the Claude Code, Codex, or Copilot CLI plugin marketplaces, or with npx skills add GoogleChrome/modern-web-guidance. There are two skill packs: modern-web-guidance and chrome-extensions
  • Code is licensed under Apache-2.0, and the guide documents under guides/ under CC-BY 4.0

See also

Favorite site

author MCPBot sitemap