A MetaMask UX engineer set up a bot that reviews every pull request to the open-source extension with Modern Web Guidance. Across about 480 PRs it led to 43 accessibility and semantic HTML fixes, with a 15-minute median turnaround.
Repo of the Week · Week 47, 2026
Modern Web Guidance: stop your coding agent writing old web code
A free add-on from the browser makers that teaches your AI coding agent today's web features, so it stops writing heavy old-style code.
What’s a repo?A repo is a project’s code folder on GitHub, free to download. GoogleChrome/modern-web-guidance on GitHub
Free agent skills from the Chrome, Edge, Firefox and MDN teams. Your coding agent looks up a short, tested guide before it writes HTML, CSS or JavaScript, so it uses what browsers support today.
- Stars
- 18.4k
- Forks
- 702
- npm / week
- 220.9k
- Latest
- v1.0.0
What it is
AI coding agents learned the web from years of old code, so they often build things the long way, with extra JavaScript the browser no longer needs. This add-on gives the agent a short, tested guide for the task before it writes code. Chrome's own tests say agents pass about half of their checks without it and about 90% with it.
Who it’s for
Anyone who builds websites or web apps with a coding agent (Claude Code, Codex, Copilot CLI, Antigravity, Grok Build and others), from beginners to front-end teams that want accessible, fast pages without reviewing every line by hand.
What you need
Node.js 22 or newer and a coding agent that supports skills or plugins. One command installs it in your project. It is free, and its search runs offline.
Why it’s trending
Created Mar 23, 2026, it now has 18,426 stars and 702 forks (GitHub API, Nov 16, 2026). On X, 1,127 original posts mentioned Modern Web Guidance in the past 7 days, not counting Google Chrome and its staff; the 56 we read came from 55 different people. Here’s what people are sharing:
- Official
Chrome for Developers: 48 hours after the 1.0 launch, Modern Web Guidance is the No. 1 trending repo on GitHub. 3,750 likes, 272 reposts.
@ChromiumDev · Nov 12, 2026 ↗ - Official
An X article, 'Modern Web Guidance: Everything You Need to Know', announcing that 1.0 is stable. 2,909 likes, 289 reposts and 3,610 bookmarks.
@ChromiumDev · Nov 13, 2026 ↗ - Reaction
Calls it a step toward getting browser makers and web developers to steer AI coding agents to modern techniques, and notes the No. 1 trending spot (in Arabic). 277 likes, 28 reposts.
@EngMoElgaraihy · Nov 13, 2026 ↗ - Reaction
Points to MetaMask running it as a review bot on every pull request: about 480 PRs in 5 weeks led to 43 fixes. 49 likes.
@RRweb3 · Nov 14, 2026 ↗ - Caution
Ran legacy-scan on an old jQuery-style app and got 1 of 20 legacy patterns flagged. Also saw every search the agent ran queued for Google's logging endpoint (telemetry is on by default). 15 likes, 15 replies.
@theomlondhe · Nov 11, 2026 ↗ - Caution
Warns that a week of npm downloads is not the number of developers: repeat downloads, CI runs and npx all count.
@xingyuwang · Nov 14, 2026 ↗ - Reaction
Likes that the scanner dropped rules such as rewriting working sibling selectors into :has(): a scan that churns working CSS gets uninstalled.
@RusticStack · Nov 13, 2026 ↗ - Concern
Can teams set their own browser targets?
@doggodcrypto · Nov 13, 2026 ↗ - Concern
Does 1.0 have rules for when agents should prefer native CSS and HTML over polyfills when browser support is mixed?
@rajpundkar · Nov 13, 2026 ↗ - Concern
Does legacy-scan actually fix messy agent code, or just point it out?
@BoyC338 · Nov 13, 2026 ↗
What it does
Modern Web Guidance is a set of agent skills plus a small command-line tool. When your coding agent works on a web task, the skill tells it to search a local library of about 200 short guides and load the one that fits, such as an animated dialog, an accordion or a passkey login. Each guide has the modern HTML, CSS or JavaScript pattern, known gotchas, browser support data from Baseline and a light fallback for older browsers. Search runs on your machine with no API key. Version 1.0 adds legacy-scan, which looks through existing code for old patterns. It installs into Claude Code, OpenAI Codex, GitHub Copilot CLI, Google Antigravity, Grok Build and other agents.
The agent searches about 200 guides and loads only the one it needs, such as a dialog, carousel, tabs, dark mode or a passkey sign-in, so it spends few tokens
Each guide carries Baseline data. Features that work everywhere are used directly; newer ones come with a small fallback for browsers that lack them
legacy-scan reads HTML, CSS, JS/TS and package.json locally, with no AI calls, and points each old pattern to its modern guide
Every guide is signed off by a domain lead, and the user-facing ones were tested with real assistive technology by accessibility experts
A public eval dashboard compares agents with and without the skill on the same tasks: for example, Claude Code with Opus 5.5 went from 57% to 88% on Nov 8
Origin Trial and brand-new single-engine features are hidden from retrieve until you opt in with a .mwgrc file
What people built with it
Tencent's WeTV added Chrome DevTools for agents and Modern Web Guidance to CI/CD. The agent now fixes 90% of failed performance checks on its own, and a fix takes 30 minutes instead of about four hours.
Japan's note combined it with rules for its own React component library in a Next.js codebase. Modern web check pass rates went from 61% to 94%.
Ran legacy-scan on an old jQuery-style app: it flagged 1 of 20 legacy patterns. Also checked what the CLI sends to Google by default.
Build log: ran the three free commands (search, retrieve, legacy-scan) in about 10 minutes without installing anything.
Using it to polish the interface of a new local LLM tool, to judge whether it is worth keeping.
How to use it
Check Node.js
node --versionYou need version 22 or newer. If it is older, install the current LTS from nodejs.org.
Try it without installing
Search the guides the same way your agent will:
npx modern-web-guidance@latest search "animate a dialog modal backdrop"Then open one guide by its ID with
npx modern-web-guidance@latest retrieve "animate-to-from-top-layer".Install it in your project
Run this from your project folder. A short wizard asks which agent you use:
npx modern-web-guidance@latest installAsk your agent as usual
You don't need to name the tool. Ask for the web feature you want and the agent looks up the right guide first. To clean up an older project, try:
PromptModernize this repository using Modern Web Guidance. Scan our frontend files for legacy patterns, verify the findings, and propose a modernization plan before making any code edits.This prompt is from Chrome's modernization docs. The plan comes first, so nothing changes until you approve it.
Keep it up to date
npx modern-web-guidance@latest updateInstalled through your agent's plugin marketplace instead? Update it there.
- Node.js 22 or newer (npm package engines field)
- A coding agent that loads skills or plugins: Claude Code, OpenAI Codex, GitHub Copilot CLI, Google Antigravity, Grok Build CLI or Kimi Code, or any agent through npx skills or gh skill (README)
- Run the install from your project folder (Chrome announcement)
- No API key: search and retrieval run offline on your machine (README)
- Free. Code is Apache-2.0 and the guides are CC-BY 4.0 (README)
- Anonymous usage data is sent to Google unless you set DISABLE_TELEMETRY=1 (README)
Install through your agent's plugin system
Claude Code and GitHub Copilot CLI:
/plugin marketplace add GoogleChrome/modern-web-guidance
/plugin install modern-web-guidance@googlechromeOpenAI Codex:
codex plugin marketplace add GoogleChrome/modern-web-guidance
codex plugin add modern-web-guidance@googlechromeGrok Build: grok plugin install https://github.com/GoogleChrome/modern-web-guidance --trust. Antigravity: agy plugin install https://github.com/GoogleChrome/modern-web-guidance. Any skills tool: npx skills add GoogleChrome/modern-web-guidance or gh skill install GoogleChrome/modern-web-guidance.
Scan old code yourself
It parses HTML, CSS, JS/TS, framework components and package.json locally, with no AI calls. Each finding names the guide with the modern fix, and your agent checks it before changing code.
npx modern-web-guidance@latest legacy-scan .It covers about 20% of the guides, the ones where old code can be spotted without false alarms. CI integration is still in development.
Set your own browser targets
By default, features that are Baseline Widely available are used without fallbacks, and newer ones get a fallback. Put your own policy in AGENTS.md or CLAUDE.md and the agent compares it with each guide's support data.
## Browser support policy
- Target **Baseline 2024** or earlier. Omit fallbacks and `@supports` blocks for features that reached Baseline in or before 2024.
- Don't add polyfill dependencies. Prefer CSS `@supports` rules or built-in HTML fallbacks instead.Allow experimental features
These write allowOriginTrials and allowVolatileFeatures to a .mwgrc file in your project root (or ~/.mwgrc). Commit it to share the setting with your team.
npx modern-web-guidance@latest set-allow-origin-trials
npx modern-web-guidance@latest set-allow-volatile-featuresPick skill packs
Two packs: modern-web-guidance (about 205 tokens) for browser APIs, layout and performance, and chrome-extensions (about 175 tokens) for Manifest V3 extensions.
npx modern-web-guidance@latest install --chooseTurn off telemetry
By default the CLI sends Google install counts, the calling agent's name, the guide IDs it retrieves and the search queries your agent writes. Raw prompts are not collected.
export DISABLE_TELEMETRY=1Test the fallback too
Fallback code only runs in browsers that lack the feature. Connect your agent to Chrome DevTools for agents, the Firefox DevTools MCP and Safari's MCP server so it can check both paths.
Gotchas
- Telemetry is on by default. Set
DISABLE_TELEMETRY=1before your agent's first search if your queries are sensitive. - legacy-scan only checks about 20% of the guides. A short report does not mean the code is modern; one X user saw 1 of 20 old patterns flagged.
npx modern-web-guidance@latestdownloads the newest version each time. Pin a version if you need the same output in CI.- Naming a single component (for example "fix this dialog") does a normal guide lookup, not a full modernization scan.
- Guides for Origin Trial and brand-new features stay hidden from
retrieveuntil you opt in, so the agent may fall back to an older pattern.
Before you start
- Most of the likes went to Chrome's own posts: in our sample, two @ChromiumDev posts hold 6,659 of 7,074 likes. Outside Chrome, the busiest post got 277 likes.
- The 50% to 90% improvement comes from Chrome's own evals. The dashboard is public, but few independent tests have been posted yet.
- Telemetry is on by default and includes the search queries your agent writes. Set DISABLE_TELEMETRY=1 to opt out.
- legacy-scan covers about 20% of the guides. One user's test on an old jQuery-style app flagged 1 of 20 old patterns.
- The partner results (MetaMask, WeTV, note) are case studies published by Chrome, not independent audits.
- npm downloads (220,855 last week) include npx runs and CI jobs, so they are not a count of users.
FAQ
What is Modern Web Guidance?
Modern Web Guidance is a set of agent skills plus a small command-line tool. When your coding agent works on a web task, the skill tells it to search a local library of about 200 short guides and load the one that fits, such as an animated dialog, an accordion or a passkey login. Each guide has the modern HTML, CSS or JavaScript pattern, known gotchas, browser support data from Baseline and a light fallback for older browsers. Search runs on your machine with no API key. Version 1.0 adds legacy-scan, which looks through existing code for old patterns. It installs into Claude Code, OpenAI Codex, GitHub Copilot CLI, Google Antigravity, Grok Build and other agents.
Is it free?
Yes. The code is Apache-2.0 and the guide text is CC-BY 4.0. It needs no API key; search runs offline on your machine. Your coding agent's own model costs still apply.
Which coding agents does it work with?
The README gives install steps for Claude Code, OpenAI Codex, GitHub Copilot CLI, Google Antigravity, Grok Build CLI and Kimi Code, plus the generic npx skills and gh skill installers. Chrome says it is meant for any model or agent harness.
Does it really make the code better?
Chrome's own evals say unguided agents pass about 50% of their checks and about 90% with the skill. The README lists Nov 8 runs: Claude Code with Opus 5.5 went from 57% to 88%, Codex CLI with GPT-6.1 Sol from 54% to 82%, and Antigravity with Gemini 4 Argon from 58% to 94%. These are Chrome's tests, published on a public dashboard; independent results are still few.
Can my team set its own browser targets?
Yes. People asked this under Chrome's post. By default it uses Baseline: features that work in all major browsers go in directly, newer ones get a fallback. Write your own policy, such as a Baseline year or no polyfills, in AGENTS.md or CLAUDE.md, and the agent follows it (Chrome's cross-browser post, checked 2026-11-16).
Does legacy-scan fix old code by itself?
No. Lots of people asked this too. The scan only finds and labels old patterns, locally and with no AI calls. Your agent then checks each finding, writes a plan and changes code when you ask. It covers about 20% of the guides today.
What data does it send to Google?
By default: install counts, the calling agent's name, the guide IDs it retrieves and the search queries your agent writes. Your raw prompts are not collected. Set DISABLE_TELEMETRY=1 to turn it off.
Why are there two repos?
GoogleChrome/modern-web-guidance is what you install. GoogleChrome/modern-web-guidance-src is where the guides, the scanner and the evals are built, and where you file issues. The source repo is the one on GitHub's daily Trending list.
How is the Repo of the Week picked?
We feature the GitHub repo most talked about on X that week in AI and vibe coding, counted by distinct authors and engagement, and cross-checked against GitHub Trending. Stats come from the GitHub API and are dated. Modern Web Guidance was checked 2026-11-16.
All weeks
Every pick stays here with its own page. Newest on top.
- Week 48, 2026This week
ffmpeg-skill: let your coding agent edit your videos
A free add-on that turns Claude Code, Cursor or Codex into a video editor that works on your own computer.
- Week 47, 2026Last week
Modern Web Guidance: stop your coding agent writing old web code
A free add-on from the browser makers that teaches your AI coding agent today's web features, so it stops writing heavy old-style code.
- Week 46, 20262 weeks ago
Auto Ontology: teach your AI agent what your company data means
A free NVIDIA tool that teaches AI agents what your company data means, so they stop grabbing the wrong revenue column.
- Week 45, 20263 weeks ago
T3 Code: run your coding agents from one app, on any device
A free app that runs Claude Code, Codex and other coding agents on your computer and lets you steer them from your phone, browser or desktop.
- Week 44, 20264 weeks ago
Security Audit Skill: Cloudflare's security audit for your coding agent
A free add-on that makes your AI coding agent check your code for security holes, with a second agent double-checking every finding.
- Week 43, 20265 weeks ago
HyperFrames: write HTML, render video
A free tool that lets your AI coding agent make real videos by writing a web page.
- Week 42, 20266 weeks ago
REA: Reverse Engineer Anything
A free tool that lets your AI coding agent take apart any app to see how it works.