A coding agent can make a web feature look complete after one edit. The markup renders, the tests pass, and the pull request is ready. Yet the change may miss keyboard behavior, a modern browser affordance, an appropriate fallback, or a performance constraint that only becomes visible in a real browser.
This is partly a context problem. A model's training and the repository's local conventions do not necessarily contain a complete, current set of web-platform practices. The stable 1.0 release of Modern Web Guidance aims to close that gap by giving agents expert-vetted guidance, Baseline browser compatibility data, and targeted workflows for both new code and legacy modernization.
Modern Web Guidance is useful, but it is not a compiler or an accessibility audit. The practical value comes from combining guidance before and during implementation with runtime evidence from a browser and a human review of the final diff.
What Modern Web Guidance provides
Modern Web Guidance is a set of coding-agent skills. Its guides cover HTML, CSS, JavaScript, Core Web Vitals, accessibility, security, and Web AI. They are designed to steer an agent toward native platform features instead of custom JavaScript or outdated patterns when those alternatives are appropriate.
The stable 1.0 release announced in November 2026 adds several important pieces:
- Expert-vetted guide coverage: the project describes more than 200 guides across modern web disciplines.
- Cross-browser compatibility: guidance uses live Baseline data and a project's browser targets to suggest progressive enhancement or fallback behavior.
- A legacy modernization workflow:
legacy-scanperforms local syntax checks for known patterns and gives the agent context for a more careful review. - Multiple agent integrations: the CLI can install guidance for supported coding agents and plugin marketplaces.
- Open source evaluation: prompts, base applications, Playwright graders, and paired benchmark jobs are public in the project source repositories.
The project is stewarded by Chrome, Edge, Firefox, MDN, and community contributors. That is a stronger governance story than a package maintained by a single model prompt, although it does not make every recommendation universally correct. Project maintainers still need to review browser targets, framework constraints, existing design systems, and product requirements.
Installing it safely
The official CLI quickstart is:
npx modern-web-guidance@latest install
The official repository says the CLI requires Node.js 22 or later. The installer is interactive and may offer integrations for several coding agents, so review which files and agent skills it proposes to add before accepting an installation.
For a first trial, avoid running the installer directly in a large production workspace. Start in a disposable branch or a small example application:
1. Install the guidance package and inspect the resulting files.
2. Ask the agent to use guidance for one bounded UI change.
3. Review the diff, tests, and browser output.
4. Expand to legacy scanning only after you understand the proposed changes.
The package also provides commands for search and retrieval:
npx modern-web-guidance@latest search "animate a dialog modal backdrop"
npx modern-web-guidance@latest retrieve "animate-to-from-top-layer"
Search is useful when a task has an obvious web platform area, while retrieve is useful when a teammate already knows the guide identifier. Neither command should be treated as a substitute for reading the generated diff.
Use a specific prompt instead of a vague one
The package works best as context for a concrete task, not as a general instruction to “modernize everything.” A more reliable prompt distinguishes goals, constraints, and proof:
In this branch, replace the custom tooltip implementation with a native,
accessibly usable web-platform solution.
Requirements:
- Preserve existing framework and component conventions.
- Support the repository's documented browser targets.
- Include a keyboard-accessible trigger and an equivalent fallback.
- Do not change unrelated components.
- Summarize which Modern Web Guidance guide you used.
- Run the relevant tests and identify manual browser checks remaining.
This prompt is small enough to review. It also prevents one of the common agent failure modes: performing a broad cleanup that changes API behavior, bundle structure, and visual output before anyone has agreed on the desired trade-offs.
Legacy scanning deserves the same discipline. The workflow is intentionally limited to known patterns. It is not an engine that understands every framework abstraction or every migration edge case. Treat its findings as review candidates:
- Inspect the pattern the scanner matched.
- Check whether the reported API or workaround is actually dead.
- Determine whether a native replacement preserves behavior.
- Make a small patch.
- Verify the result in supported browsers.
An old JavaScript polyfill may still be necessary for embedded content or an existing browser policy. A native replacement may improve semantics and performance, but only if it does not break an unrelated stateful widget.
Pair guidance with browser verification
Modern Web Guidance tells an agent what to aim for. Chrome DevTools for agents can tell it what the generated page actually did. This combination closes part of the author-and-inspect loop:
- emulate small viewports or user preferences;
- navigate and interact with the live page;
- run Lighthouse-style accessibility or performance checks;
- inspect layout and animation behavior;
- capture a performance trace;
- check memory growth; and
- automate focused workflows in CI or terminal scripts.
This does not mean an agent should accept the first passing audit. The browser has to test the specific requirement that motivated the change.
For example, guidance may suggest a native dialog, popover, or anchor-positioned tooltip. Browser verification should then answer separate questions:
- Does focus move into and out of the control correctly?
- Does pressing Escape behave as intended?
- Does the tooltip or dialog remain visible when the viewport is constrained?
- Are
prefers-reduced-motionstyles applied? - Does the implementation create layout shift or a long main-thread task?
- Does the fallback remain usable in the project's supported browser range?
Code review should name these questions instead of relying on “browser tested” as a summary. An evidence-backed handoff might say:
Verified:
- Dialog opens/closes with keyboard and pointer input.
- Focus returns to the trigger.
- Narrow-viewport layout was checked.
- Reduced-motion CSS was applied.
Remaining manual check:
- Screen-reader announcement in Firefox and NVDA.
The second line is important. A passing DOM or Lighthouse check is not a complete accessibility determination.
Interpret evaluations without overclaiming
The project's public evaluation dashboard uses paired trials: the same coding agents and tasks run with and without Modern Web Guidance, while Playwright opens the finished app and grades DOM, styles, source requirements, and rendered behavior. The project reports pass rates and the change in percentage points rather than presenting every task as a perfect result.
The official 1.0 announcement also reports that public evaluations showed guidance changing model outcomes. Those figures are project-published evidence, not an independent guarantee for every repository or model. The dashboard explicitly says its automated accessibility checks cover only a subset of accessibility requirements and do not replace a full WCAG review.
It also excludes paired trials that encounter infrastructure errors or time out before grading. That is sensible for a benchmark, but it means the dashboard should be read as evidence about controlled tasks, not proof that guidance has no failure mode.
The best team-level test is narrower: run the same representative task against the project with and without guidance, keep model and tool versions fixed, and inspect the actual generated patches. Then decide whether the result improves the team's required quality bar.
Review the final patch as a skeptic
A strong pull request should still make the generated change auditable. A review checklist can be concise:
- Scope: Did the agent change only the requested component or workflow?
- Guidance: Did it retrieve or apply a relevant guide, and can the reviewer see why?
- Browser support: Does the implementation match the project's target browsers and Baseline policy?
- Fallback: Is any progressive enhancement tested rather than assumed?
- Security: Did a native API replacement preserve sanitization, permissions, and CSP constraints?
- Accessibility: Are keyboard, focus, semantics, motion, and assistive-technology behavior addressed?
- Performance: Did the reviewer verify a real metric, trace, or workload rather than merely removing JavaScript?
- Testing: Do tests cover state transitions and browser behavior, not just source shape?
- Source: Did the agent invent an API or browser feature that is not in the current documentation?
This last item is critical. Agent context can become stale or wrong, so the repository and current official documentation remain the authority. A cited guide can help explain intent, but it does not validate a claim that the browser implements a feature or that the project supports it.
When it is worth using
Modern Web Guidance is a good fit for:
- greenfield components where native HTML, CSS, or Web APIs may simplify the implementation;
- legacy cleanup in a narrow, reviewable area;
- pull-request review bots that flag modern-web omissions;
- agentic performance or accessibility debugging when paired with browser tooling; and
- developer training when someone wants to learn why a platform feature is preferable.
It is less appropriate as an automatic merge gate or a claim that code is “AI-verified.” A generated patch can satisfy guide-shaped checks and still be wrong for a product's framework, browser support, design system, or security model.
The release is therefore a useful step, not a replacement for engineering judgment. It moves common web-platform expertise closer to the agent, and it gives teams a chance to modernize in smaller, measurable changes. Pair it with live browser verification, existing tests, conservative migration scope, and human review.