Skip to content
BuildLadder Blog

Modern Web Guidance: Chrome's Web Skills for Coding Agents

What Chrome's Modern Web Guidance is, how to install it with npx, how legacy-scan works, and why it hit #1 on BuildLadder's daily trending repos.

BuildLadder Editorial7 min readUpdated Nov 18, 2026

Paste this article into your AI assistant and ask it to walk you through it.

On this page
A maker replaces a complicated mechanism with a simpler hinge while a robot reads a guide.
Illustration created with AI for BuildLadder.

Modern Web Guidance gives AI coding assistants instructions and reference material for using modern browser features. It helps an assistant check web-platform guidance and browser compatibility before choosing an implementation.

Install it with npx modern-web-guidance@latest install. When a relevant task comes up, the skill uses its command-line tool to retrieve guidance, examples, known problems, and fallbacks. You still review and test the resulting code.

Version 1.0 became stable on 10 November 2026. On 13 November, the source repository ranked #1 on BuildLadder's daily list, gaining 739 stars in that window. These figures describe the original snapshot.

What is Modern Web Guidance?

It is a skills pack plus a small CLI. When your agent gets a web task, the skill tells it to query the modern-web-guidance CLI. The CLI returns a short, expert-written guide with the code pattern, gotchas and fallbacks for that task. For how a skill file is structured, see how to write agent skills.

The README explains why that is needed: "Coding agents often default to older patterns because LLM training data contains vast amounts of legacy code." The result is "bloated JavaScript for tasks that now have native, high-performance web platform solutions."

Two repos, one project:

The README says the project is "stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox, and MDN teams." The v1.0 announcement confirms that Firefox and Edge joined with this release.

Who it's for:

  • Indie hackers and frontend devs who let Claude Code, Codex, Cursor or Copilot write most of their UI and want it to use <dialog>, the Popover API or container queries when native features fit the required behavior.

  • Teams with older codebases who want a list of safe, specific modernization steps.

  • Anyone who cares about accessibility and Core Web Vitals and wants better guidance before reviewing each change.

Measured, from BuildLadder (fetched 13 Nov 2026, ~09:17 IST):

Measured, from the GitHub API the same morning:

  • Source repo: 3,320 stars, 211 forks, created 27 January 2026 (api).

  • Published skill repo: 7,650 stars, 250 forks (api).

  • npm package modern-web-guidance: latest version 1.0.0 (registry).

The trigger is clear. Chrome announced the stable 1.0 release on 10 November 2026, after an early preview at Google I/O in May. Agent tooling fills the rest of the same daily board: openai/codex-security is #2, QwenLM/qwen-code is #6 (+151 ★) and addyosmani/agent-skills is #9 (+816 ★).

Modern Web Guidance brings Chrome’s web-platform guidance into your coding agent, covering browser behavior, performance and accessibility.

How it works

The README describes three steps:

  1. Activation. The agent activates the modern-web-guidance skill because of a relevant task.

  2. Local semantic search. The agent runs modern-web-guidance search "<query>". The CLI matches the query using "an offline, zero-dependency embedding model and BM25 search engine (no network calls, no API keys)."

  3. Guide fetch. The agent runs modern-web-guidance retrieve <id> and pulls the guide's code patterns, gotchas and fallbacks into its context window.

The README says the guides are "designed to be token-efficient". The team runs evals and prunes content that models already know. The coverage areas listed are user experience (View Transitions, entry/exit animations), CSS layout (container queries, subgrid, oklch), performance (INP, scheduler.yield), forms and UI (Anchor Positioning, Popover API, dialogs), accessibility, and built-in AI APIs.

Two safety features are worth knowing:

  • Baseline-aware. Recommendations use Baseline compatibility data, so the agent adapts to current browser support.

  • Gated experimental APIs. Origin Trial and "volatile" features show up in search but are blocked on retrieve until you opt in with an .mwgrc file (allowOriginTrials, allowVolatileFeatures).

How to get started

From the README quickstart:

npx modern-web-guidance@latest install

That opens an interactive wizard. To try it without installing:

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 .

The README also lists agent-specific installs:

ToolCommand
Vercel Skills CLInpx skills add GoogleChrome/modern-web-guidance
GitHub CLIgh skill install GoogleChrome/modern-web-guidance
Google Antigravityagy plugin install https://github.com/GoogleChrome/modern-web-guidance
Copilot CLI / Claude Code/plugin marketplace add GoogleChrome/modern-web-guidance then /plugin install modern-web-guidance@googlechrome
OpenAI Codexcodex plugin marketplace add GoogleChrome/modern-web-guidance then codex plugin add modern-web-guidance@googlechrome
Grok Build CLIgrok plugin install https://github.com/GoogleChrome/modern-web-guidance --trust

To update a CLI install, run npx modern-web-guidance@latest update.

Modernizing an existing codebase with legacy-scan

Version 1.0 adds a modernization workflow. You can run legacy-scan directly, or ask your agent in plain language. The v1.0 post gives this example:

/modern-web-guidance Modernize the code in this directory

Per the modernization workflow docs:

  • Scanning is deterministic and local. It uses AST, DOM and CSS parsers "with zero LLM calls or token cost."

  • Rules were tested across about 45,000 open-source repos. To ship by default, a rule needs "at least 80% static matcher precision and 90% post-verification precision on unseen code."

  • legacy-scan covers about 20% of roughly 200 guides, meaning the patterns that can be detected without false positives. Your agent uses search and retrieve for everything else.

This suits indie projects well. Run it once on a two-year-old landing page and you get a short, checkable list instead of a vague "refactor the CSS" prompt.

Modern Web Guidance vs alternatives

It doesn't replace the other agent tools on BuildLadder's boards. It does a different job.

  • Chrome DevTools for agents is a companion, not a rival. Chrome recommends using both: Modern Web Guidance gives the agent "up-front expertise", and DevTools gives it "runtime visibility" to verify performance, animations and memory.

  • addyosmani/agent-skills describes itself as "production-grade engineering skills for AI coding agents", which is a broader engineering scope. Use Modern Web Guidance when the task is specifically HTML, CSS or browser APIs.

  • Nutlope/hallmark and meta/astryx are about visual design and components. Modern Web Guidance is about which platform feature to use and how to fall back safely. You can run it alongside either one. See Hallmark and Meta Astryx.

If you build web interfaces with an agent, try this on one change and compare the result with your existing workflow. Search and static scanning run locally, and the README describes the package as self-contained. Your coding assistant may still send project context to its model provider.

Guides load as needed. That can help focus the assistant on relevant advice, but it does not replace checking compatibility, accessibility, and behavior in your application.

Track what's trending on BuildLadder

Modern Web Guidance went from a 1.0 announcement to #1 on the daily board in three days. That kind of movement is what BuildLadder's trending repos track, refreshed several times a day. Compare it with the weekly and monthly windows, or see who's actually shipping on the builder leaderboard. If you ship every day, connect GitHub and track your own streak there.

FAQ

What is Modern Web Guidance?

Modern Web Guidance is a set of Agent Skills from the Google Chrome team, with support from Edge, Firefox and MDN, that gives coding agents expert guidance on modern web platform features, accessibility, performance and browser compatibility.

How do I install Modern Web Guidance in Claude Code or Codex?

Run npx modern-web-guidance@latest install in your project and follow the wizard. Or use the plugin marketplace: /plugin marketplace add GoogleChrome/modern-web-guidance in Claude Code, or codex plugin marketplace add GoogleChrome/modern-web-guidance in Codex.

Does Modern Web Guidance send my code to Google?

According to the README, the CLI's search uses an offline embedding model and BM25 search with "no network calls, no API keys", and works "completely private and local". The legacy-scan docs say scanning uses local parsers with zero LLM calls.

What does modern-web-guidance legacy-scan do?

legacy-scan statically scans HTML, CSS, JavaScript/TypeScript and package.json for legacy patterns that have a safe modern replacement. Your agent can then apply the matching guide.

What's the difference between modern-web-guidance and modern-web-guidance-src?

modern-web-guidance is the published skill that agents install. modern-web-guidance-src is the source repo with the authoring, calibration and eval tooling behind it.

Sources

Star counts change. The ranks and deltas above are the BuildLadder card values from that 13 Nov 2026 fetch, except the GitHub API star and fork counts and the npm version, which are from the same morning.

Read next