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.
How does Modern Web Guidance work?
› npx -y modern-web-guidance@latest search "light dismiss dialog"The agent runs a local search with a 2–5 word English query.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.
› 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?
:has()field-sizingscroll snap<dialog>popover:user-invalidscheduler.yieldWebAuthnfetchLater()| Skill pack | When it kicks in |
|---|---|
modern-web-guidance | HTML/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-extensions | Building 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.
› npx modern-web-guidance@latest install› npx modern-web-guidance@latest install --choose› npx skills add GoogleChrome/modern-web-guidance
gh skill install GoogleChrome/modern-web-guidance› /plugin marketplace add GoogleChrome/modern-web-guidance
/plugin install modern-web-guidance@googlechrome
/reload-pluginsFor automatic updates, the README says to select the GoogleChrome marketplace in the /plugin menu and enable AutoUpdate. developer.chrome.com shows the same from the terminal with claude plugin marketplace add and claude plugin install.
› codex plugin marketplace add GoogleChrome/modern-web-guidance
codex plugin add modern-web-guidance@googlechrome› /plugin marketplace add GoogleChrome/modern-web-guidance
/plugin install modern-web-guidance@googlechrome› agy plugin install https://github.com/GoogleChrome/modern-web-guidanceThe README also gives one-line installs for Grok Build CLI and Kimi Code.
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.
› npx -y modern-web-guidance@latest legacy-scan ./src --jsonFor 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 CodeYes | Plugin installation is in the README and on developer.chrome.com. |
|---|---|
| OpenAI CodexYes | Plugin marketplace installation is in the README. |
| GitHub Copilot CLIYes | README and developer.chrome.com. |
| Google AntigravityYes | agy plugin install; README and developer.chrome.com. |
| Grok Build CLI, Kimi CodeYes | Install line is in the README. |
| Cursor, Gemini CLIUnclear | The 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. |
What does it access, and does it send data?
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).
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 *.
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.
The agent writes the code. The skill writes a .mwgrc settings file to the project root only if you run the related command.
› export DISABLE_TELEMETRY=1Is 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.
- 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
- 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?
- Update: If you installed with the wizard,
npx modern-web-guidance@latest update. Because the skill commands call@latesteach time, guide content stays current on its own. - 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-officialand reinstalling from the googlechrome marketplace. - 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
- GoogleChrome/modern-web-guidance repository (README)
- SKILL.md (v1.0.1)
- Chrome developer docs: Modern Web Guidance
- npm package
- Source repository and issues
- Eval dashboard
- skills.sh: googlechrome/modern-web-guidance
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.





