Modern Web Guidance: Agent Skills for Current Web Platform Best Practices
by Google Chrome
Install Chrome's open-source skill pack so Claude Code, Codex or Copilot write native dialog, container queries and INP fixes instead of legacy frontend code.
Overview
Modern Web Guidance is a set of agent skills maintained by the Google Chrome team, with Microsoft Edge, Mozilla Firefox and MDN listed as co-stewards in the GitHub README. Version 1.0 went stable on November 10, 2026 (announcement by Philip Walton). The docs are organized into five tabs: an overview, Get started, Modernization workflow, Explore guides and Troubleshooting, plus an intro codelab and a page on pairing the skills with Chrome DevTools for agents. Under the hood the skill tells your coding agent to call the modern-web-guidance CLI, which runs a search for a task description and then retrieves a guide by id, returning JSON that includes a token count so the agent loads only what it needs. Guides cover user experience (view transitions, entry and exit animations), CSS (container queries, oklch colour, subgrid, text-wrap), performance (Interaction to Next Paint diagnostics, scheduler.yield, image loading priority), forms (field-sizing, :user-invalid), built-in UI (dialog, popover, CSS Anchor Positioning), accessibility, built-in AI APIs and passkeys. You set a Baseline target in AGENTS.md or CLAUDE.md; without one it defaults to Baseline Widely available. The 1.0 release added a modernization workflow that statically analyzes HTML, CSS, JavaScript and package.json for a limited set of safe upgrade patterns. Chrome reports guided agents scoring 91% against about 51% for unguided frontier models on its own evals.
At a Glance
- Topic
- Skills
- Level
- Intermediate
- Format
- Documentation
- Cost
- Free
- Duration
- Self-paced: one npx install, then guides are retrieved on demand by your coding agent; the get-started page and modernization workflow docs read in under an hour
- Provider
- Google Chrome
- Hands-on
- Yes — code/exercises
- Certificate
- None
What You’ll Learn
- ✓Install the skill pack with npx modern-web-guidance install and keep it auto-updated
- ✓Install the plugin in Claude Code, Codex, Copilot CLI, Gemini CLI, Goose or Antigravity
- ✓Set a Baseline browser-support target in AGENTS.md or CLAUDE.md to constrain generated code
- ✓Use the CLI search and retrieve commands to see exactly which guide the agent will load
- ✓Run the modernization workflow to scan an existing codebase for safe upgrade opportunities
- ✓Prompt agents toward native dialog, popover and CSS Anchor Positioning instead of UI libraries
- ✓Apply Interaction to Next Paint fixes such as scheduler.yield for breaking up long tasks
- ✓Opt into volatile features or origin trials deliberately rather than by accident
Highlights
- •Official Chrome team project, Apache-2.0, with about 25.6k GitHub stars on GoogleChrome/modern-web-guidance
- •Cross-browser stewardship: Edge, Firefox and MDN join Chrome in maintaining the guidance
- •Retrieval-based design: the agent searches and pulls one guide at a time instead of stuffing a huge prompt into context
- •Ships install paths for most major coding agents, from Claude Code and Codex to Gemini CLI, Goose and Kimi Code
- •Public eval dashboard; Chrome's own numbers show 91% for guided agents against about 51% unguided, a vendor-reported figure
Who It’s For
Best For
- ✓Frontend developers who let coding agents write production UI code
- ✓Teams writing AGENTS.md or CLAUDE.md conventions who want an off-the-shelf skill to cite
- ✓Engineers studying how agent skills are packaged and distributed across many agent hosts
- ✓Maintainers planning an agent-assisted modernization of a legacy web codebase
Prerequisites
- •A coding agent such as Claude Code, Codex, Copilot CLI or Gemini CLI already set up
- •Node.js (the GitHub README states version 22 or later) to run the npx installer
- •Working knowledge of HTML, CSS and JavaScript to review what the agent produces
FAQ
What is Modern Web Guidance: Agent Skills for Current Web Platform Best Practices?
Official Chrome documentation for Modern Web Guidance, an Apache-2.0 agent skill pack that gives AI coding agents expert-reviewed web platform guidance and browser compatibility data. It is for developers who use Claude Code, Codex, Copilot CLI, Gemini CLI or Antigravity on frontend work. Afterwards you can install the skills, set a Baseline target, and run the modernization workflow on an existing codebase.
Is Modern Web Guidance: Agent Skills for Current Web Platform Best Practices free?
Modern Web Guidance: Agent Skills for Current Web Platform Best Practices is free to access.
What level is Modern Web Guidance: Agent Skills for Current Web Platform Best Practices for?
Modern Web Guidance: Agent Skills for Current Web Platform Best Practices is aimed at a intermediate audience. Recommended background: A coding agent such as Claude Code, Codex, Copilot CLI or Gemini CLI already set up, Node.js (the GitHub README states version 22 or later) to run the npx installer, Working knowledge of HTML, CSS and JavaScript to review what the agent produces.
How long does Modern Web Guidance: Agent Skills for Current Web Platform Best Practices take?
Expect roughly Self-paced: one npx install, then guides are retrieved on demand by your coding agent; the get-started page and modernization workflow docs read in under an hour. Most learners work through it at their own pace.
What will I learn from Modern Web Guidance: Agent Skills for Current Web Platform Best Practices?
You'll learn: Install the skill pack with npx modern-web-guidance install and keep it auto-updated; Install the plugin in Claude Code, Codex, Copilot CLI, Gemini CLI, Goose or Antigravity; Set a Baseline browser-support target in AGENTS.md or CLAUDE.md to constrain generated code; Use the CLI search and retrieve commands to see exactly which guide the agent will load; Run the modernization workflow to scan an existing codebase for safe upgrade opportunities; Prompt agents toward native dialog, popover and CSS Anchor Positioning instead of UI libraries; Apply Interaction to Next Paint fixes such as scheduler.yield for breaking up long tasks; Opt into volatile features or origin trials deliberately rather than by accident.
Topics
Sources
This page was written from 5 sources, 2 on domains other than developer.chrome.com.