Skip to content

What Is Modern Web Guidance? The Chrome Skill That Gets Coding Agents to Write Current Web Code, and How to Install It

You tell a coding agent "update the old modal windows to use the <dialog> element and animate them with modern CSS"; Modern Web Guidance has the agent use current browser features instead of the outdated patterns in its training data. The agent first searches guides covering 262 web features, pulls the right guide into its context, writes the code accordingly with a small fallback when browser support (Baseline) calls for it, and ends by saying which guide it applied. The `legacy-scan` command lists outdated patterns in an existing codebase. It is Google Chrome's official project on GitHub, stewarded together with the Edge, Firefox and MDN teams; it is free and needs no account.

What it does
Teaches agents current web APIs and fallbacks
Type
Skill + command-line tool (npm)
Where
Claude Code, Codex, Copilot CLI, Antigravity
Coverage
262 web features (CSS, HTML, JavaScript)
Publisher
Google Chrome (official repository)
Cost
Free (Apache-2.0 + CC BY 4.0)

What does Modern Web Guidance do?

According to the README, coding agents lean toward outdated patterns because their training data contains a lot of legacy code: they write heavy JavaScript or reach for a library for a job the browser now handles natively. To close that gap, Modern Web Guidance brings short, expert-written guides into the agent's context: correct use of modern browser APIs, performance and accessibility, and small case-specific fallbacks instead of heavy polyfills. A skill is a package of instructions that tells an agent how to do a job; this one directs the agent to search the guides first on every web UI task.

Who it helps: frontend developers and web agencies building sites or web apps with a coding agent. For example, an agency can have legacy-scan list the jQuery modal and tooltip code on an old corporate site and have the agent rewrite it with native <dialog>, the Popover API and CSS Anchor Positioning; on an e-commerce frontend, it can have speed work such as "preload pages when users hover over important links" done with the right API.

Chrome's documentation pairs Modern Web Guidance with Chrome DevTools for agents (Chrome DevTools MCP): one steers the agent to the right feature, the other verifies the change in a live browser.

How does Modern Web Guidance work?

You describe a web taskA UI, CSS or client-side JavaScript task triggers the skill.
It searches the guides› npx -y modern-web-guidance@latest search "light dismiss dialog"The agent runs a local search with a 2–5 word English query.
It retrieves the guideCode patterns, gotchas and fallbacks enter the context.
It writes and explainsIt checks the code against the guide and names the guide it applied at the end of its reply.
Search runs on your computer (README: no network calls or API keys for search); but unless you turn it off, usage data, including the search queries the agent generates, goes to Google. Downloading the package from npm also needs the network.

Browser support: The guides treat features that Baseline counts as "Widely available" as safe without fallbacks, and require the guide's fallback for newer features. If you have your own support policy (e.g. "no polyfills" or "Safari 17.4+"), you can tell the agent or write it in AGENTS.md / CLAUDE.md. Guides for experimental (Origin Trial) features and features recently shipped in a single browser show up in search but aren't retrieved without your permission; you grant it with a .mwgrc file in the project root.

Try without installing: search, retrieve, scan› npx modern-web-guidance@latest search "animate a dialog modal backdrop" npx modern-web-guidance@latest retrieve "animate-to-from-top-layer" npx modern-web-guidance@latest legacy-scan .

Manufacturer's measurement (README, November 8, 2026, about 215 tasks): the pass rate on task checks without and with the guidance was 57% → 88% in Claude Code, 54% → 82% in Codex CLI and 58% → 94% in Antigravity CLI. Details are on the project's eval dashboard.

What's inside?

140CSS and layoutContainer queries, subgrid, view transitions, scroll animations, oklch colors, anchor positioning.:has()field-sizingscroll snap
37HTML and DOMDialog, popover, form validation, accessible native components.<dialog>popover:user-invalid
85JavaScript and APIsPerformance (INP, preloading), passkeys, dates/time zones, built-in browser AI (translation, summarization).scheduler.yieldWebAuthnfetchLater()
Skill packWhen it kicks in
modern-web-guidanceHTML/CSS/client-side JS work such as modals, tables, dark mode, forms, accessibility, page speed, passkeys and web components. It doesn't trigger for backend, CI/CD, Docker or tooling work.
chrome-extensionsBuilding Chrome extensions with Manifest V3, content scripts, side panels, permissions and Chrome Web Store publishing.

Counts come from the README list (262 features); developer.chrome.com says there are more than 200 guides. During installation, install --choose lets you pick which packs to install. Part of the guide text is derived from MDN and W3C, WHATWG and IETF documents.

How do you install Modern Web Guidance?

The recommended route is the interactive wizard: it asks which agent and which packs to install. Node.js 22 or later is required. The other routes use your agent's own plugin marketplace.

Install› npx modern-web-guidance@latest install
Install, choosing packs› npx modern-web-guidance@latest install --choose
Other routes› npx skills add GoogleChrome/modern-web-guidance gh skill install GoogleChrome/modern-web-guidance

What do you type, what do you get? Example requests

Once installed, you don't need to type the skill name; describe the web task in a plain sentence and the agent searches the guides first. The prompts come from the examples on developer.chrome.com; the "what you get" part is the flow the SKILL.md describes.

Updating an old modal"Update legacy modal window implementations to use the <dialog> element and animate them using modern CSS features."What you get: the agent first searches with a query such as "modal dialog", retrieves the matching guides (e.g. animating to and from the top layer), writes the code accordingly and applies the guide's fallback rules. At the end of its reply, under a "### Modern Web Guidance" heading, it writes for each guide which pitfall it prevented, with a short quote from the guide.
Moving tooltips to native APIs"Migrate legacy tooltips to use the Popover API and CSS Anchor Positioning."What you get: tooltips written to the popover and anchor positioning guides; if those features aren't widely available in Baseline, the lightweight fallback the guide recommends. If your project uses a framework such as React, the SKILL.md asks the agent to adapt to the framework without dropping the new HTML attributes.
Preloading pages"Set up my app to begin preloading pages when users hover over important links."What you get: code based on the preloading guide. The README describes preloading as an example of a purely additive enhancement that older browsers can silently ignore; no heavy fallback is added for this kind of work.
Scan for outdated patterns (broad modernization)› npx -y modern-web-guidance@latest legacy-scan ./src --json

For legacy-scan, tell the agent "modernize this project" or "scan for outdated web patterns". According to the SKILL.md, the agent runs the scan, checks each finding against the guide's keep/drop criteria to filter out false alarms (deliberate fallbacks, third-party code), and reports the verified findings and a plan; on request, it retrieves each finding's guide, makes the change and rescans the modified files. The scan covers about 20% of the catalog; it isn't run when you ask to fix a specific component.

Which agents does it work with?

Claude CodeYesPlugin installation is in the README and on developer.chrome.com.
OpenAI CodexYesPlugin marketplace installation is in the README.
GitHub Copilot CLIYesREADME and developer.chrome.com.
Google AntigravityYesagy plugin install; README and developer.chrome.com.
Grok Build CLI, Kimi CodeYesInstall line is in the README.
Cursor, Gemini CLIUnclearThe repository has configuration files for these agents, but the README doesn't describe an install path; if npx skills add offers these agents, that route can be used.

To have the look of a UI (type, color, spacing, motion) critiqued, see the Impeccable guide; Modern Web Guidance looks not at the look but at which web feature the code is written with.

To have existing UI code audited against Vercel's interface rules in "file:line - issue" form, see the Vercel Web Interface Guidelines guide.

What does it access, and does it send data?

Reads

The HTML, CSS and JavaScript files of the project the agent works in; legacy-scan scans the folder you give it. Search runs locally, but the agent's search queries are sent to Google with telemetry (below).

Runs

On every web task the agent runs npx -y modern-web-guidance@latest. The SKILL.md says to allowlist only this command, never a bare npx *.

Sends

Anonymous usage data to Google: install counts, the calling agent's name, retrieved guide IDs and the search queries the agent generates. The README says raw user prompts are not collected. To turn it off: DISABLE_TELEMETRY=1.

Writes

The agent writes the code. The skill writes a .mwgrc settings file to the project root only if you run the related command.

Turn off usage data (add to your shell profile)› export DISABLE_TELEMETRY=1

Is Modern Web Guidance free?

Yes. It needs no account or API key; the only cost is your coding agent's plan. According to the README, the guides are written to be token-efficient: the skill packs themselves are about 205 and 175 tokens.

Allowed
  • Unless otherwise noted, code (Apache-2.0) and guide text under guides/ (CC BY 4.0): free to use, modify and use in commercial work
Not allowed
  • Attribution is required when sharing guide text; license and copyright notices must be kept when distributing the code

Source: the README "License" section ("Unless otherwise noted"). Portions of the documentation are derived from MDN Web Docs and W3C, WHATWG and IETF documents; the source's terms may also apply to those parts. This is not legal advice.

How do you update or remove it?

  1. Update: If you installed with the wizard, npx modern-web-guidance@latest update. Because the skill commands call @latest each time, guide content stays current on its own.
  2. Switch marketplace: According to the README, Claude Code installs from the claude-plugins-official marketplace are stuck at v0.0.194; it recommends removing them with /plugin uninstall modern-web-guidance@claude-plugins-official and reinstalling from the googlechrome marketplace.
  3. Remove: If you installed it as a plugin, remove it from your agent's plugin menu; if you installed with npx skills, run npx skills remove modern-web-guidance. The README doesn't say which folder the wizard installs the skill into.

Frequently asked questions

What is Modern Web Guidance, and is it Google's?

A skill and command-line tool that teaches coding agents current web APIs and fallbacks based on browser support. It is published in Google Chrome's GitHub organization and stewarded together with the Microsoft Edge, Mozilla Firefox and MDN teams.

How do you install it in Claude Code?

The shortest route is the npx modern-web-guidance@latest install wizard. To install it as a plugin, type /plugin marketplace add GoogleChrome/modern-web-guidance and /plugin install modern-web-guidance@googlechrome inside Claude Code.

Can it be used in Antigravity?

Yes. The README and Chrome's documentation give the command agy plugin install https://github.com/GoogleChrome/modern-web-guidance for Antigravity CLI.

What does legacy-scan do?

It finds outdated web patterns in a codebase that have modern equivalents. It scans the guides that have rules, about 20 percent of the catalog; the agent filters and reports the findings and fixes them on request.

Is it free, and does it send data?

It is free and needs no account. It sends anonymous usage data to Google (agent name, guide IDs, the agent's search queries); raw prompts aren't collected, and DISABLE_TELEMETRY=1 turns it off.

Related guides

Sources

Not clear in the official sources: Install path for Cursor and Gemini CLI · use with requests in Turkish (guide search is described with short English queries). Each is covered in its section.