Chrome's Modern Web Guidance Boosts AI Agent Frontend Pass Rate to 92%
Chrome's Modern Web Guidance provides 262 modern web feature guides and an offline retrieval system that raises AI coding agents' frontend task pass rates from 53% to 92%, with weekly evaluation-driven updates and gates for experimental APIs.
Reading font
Introduction
Modern Web Guidance is a skill package for coding agents that injects up-to-date web platform features, practices, and browser compatibility data directly into the agent's context. It solves the problem where agents write outdated code (e.g., using legacy libraries instead of native <dialog>) because their training corpora contain mostly old code. Official evaluation shows that with the skill package installed, agent pass rates on practical tasks jump from 53% to 92% — a 39-percentage-point improvement.
Three Core Highlights
Highlight 1: Every Guide Must Pass an Exam to Survive
The project runs a closed-loop evaluation pipeline. Experts write guides and reference answers; the scorer is calibrated so it passes the reference answer 100% of the time and fails the unmodified original application 100% of the time. Every night, three agents — Claude Code, Codex CLI, and Antigravity CLI — run 228 real-world scenarios. On November 20, the three agents improved by 40, 36, and 41 percentage points respectively; accessibility checks rose from 58% to 94%. Guides that agents can already handle without the skill are discarded as noise; guides where agents get stuck are rewritten. Guides are judged weekly by data, not just authored once.
Limitation: The 228 scenarios target web platform usage only; they do not measure agent ability in other domains. Worth installing if your team uses agents for frontend work, as it is one of the few skill packages with controlled comparison data.
Highlight 2: Guides Have Expiration Management and Gates for Unstable APIs
Each guide embeds Baseline compatibility data, so agents dynamically adjust recommendations based on current browser support. Two categories of unstable features are gated: APIs still in Origin Trial, and volatile features shipped in only a single engine within the last three months. These are retrievable but blocked from use unless explicitly enabled in a project-root .mwgrc file. Fallback implementations are limited to 50 lines; heavy polyfills are discouraged. Guides even flag specific pitfalls like fetchLater() 's 64KB payload limit and macOS scrollbar behavior.
Scenario: A team wants to try new CSS features but fears the agent will use syntax unsupported in Safari. Limitation: Gates only block the CLI retrieval path; if the agent bypasses the skill and relies on its own memory, the gates cannot stop it.
Highlight 3: One Content Set, Nine Clients, Fully Offline
The npm package has zero dependencies, weighs 16.7 MB, contains 281 files, and performs all search and retrieval locally. After installation it works offline. The distribution repository provides plugin entry points for nine agents: Claude Code, Codex, Cursor, Grok, Kimi, Gemini, Copilot, and others — covering all mainstream clients. Limitation: Zero dependencies mean retrieval quality depends on a small local model; complex semantic queries have lower hit rates than cloud solutions. The official dashboard includes a dedicated Search Quality page to monitor this metric.
Potential Issues
Telemetry enabled by default. When online, the CLI reports install count, agent name, retrieved guide IDs, and search terms (not raw prompts). Disable by adding export DISABLE_TELEMETRY=1 to your shell config; code is in src/cli/modern-web.ts for verification.
Coverage is web-platform only. It covers HTML, CSS, JS, and browser APIs — not backend, database, or other domains. Expecting one skill package to improve all agent output will disappoint.
Governance barrier. Regular contributors can fix docs and compatibility data, but writing new guides from scratch is reserved for designated domain experts (Peers). This ensures quality but prevents adding guides for private internal frameworks.
Fast engineering pace. The source repo has merged 1,372 of 1,606 PRs, yet 309 of 2,024 issues remain open. Guide content changes weekly, so last week's install may be outdated; the update command keeps you current.
Installation & Configuration
Prerequisites: Node.js 22+ and a skill-compatible coding agent (one of the nine). Four steps: npx modern-web-guidance@latest install — interactive wizard to select your agent.
Verify:
npx modern-web-guidance@latest search 'animate a dialog modal backdrop'— should return guide IDs.
Inspect a guide:
npx modern-web-guidance@latest retrieve 'animate-to-from-top-layer'.
Scan legacy code: npx modern-web-guidance@latest legacy-scan . — lists modernizable patterns in the current project.
First-time config: to use experimental APIs, create .mwgrc at project root with allowOriginTrials: true; otherwise no config needed. Known pitfall: If installed via Claude Code's built-in claude-plugins-official marketplace, updates stopped on October 12 (stuck at v0.0.194). Fix: uninstall and reinstall from the googlechrome marketplace using the migration commands in the official docs. Total setup time ~10 minutes including telemetry opt-out.
Personal Assessment
Decision criterion: do you use agents to write frontend code? If yes, the author recommends installing for three reasons: (1) Rare multi-vendor backing — Chrome, Edge, Firefox, and MDN jointly maintain it, so browser vendors teach agents their own APIs (note: Safari is not a co-maintainer, so Apple ecosystem compatibility still needs manual verification). (2) Content quality is engineered as a measurable process: weekly controlled experiments prune ineffective guides, which is more reliable than community skills that rely on upvotes. (3) Zero-dependency offline architecture adds no supply-chain risk.
If you don't use agents, the package is still 262 well-written technical documents; the guides directory in the distribution repo is the entry point. Drawbacks noted earlier: default telemetry, Safari absence, rapid content churn. A minor but nice touch: the team built separate plugin directories for each of the nine clients, treating even Grok and Kimi as first-class citizens.
Recommendation: Frontend teams and solo developers should install and start with legacy-scan on existing codebases; those only wanting to learn new features can use it as a Baseline-guided reference.
GitHub repository: https://github.com/GoogleChrome/modern-web-guidance-src
For questions about attribution, corrections or content rights, please contactand we will review it promptly.
Published
AI-assisted summary