Practices

Modern Web Guidance pushes coding agents from legacy JS to modern browser APIs

Hacker News: coding agents paulirish
Practices

Google's Chrome team, with Edge, Firefox and MDN, shipped Modern Web Guidance: a skill pack that feeds coding agents curated browser-API knowledge. It targets the legacy JavaScript patterns assistants default to, and installs with a single npx command.

Key points

  • Install with `npx modern-web-guidance@latest install`, an interactive wizard that wires the skills into your agent.
  • The CLI offers `search`, `retrieve <guide-id>` and `legacy-scan`, so you can try it without installing.
  • Guides cover roughly 250 modern web features and 203 named developer use cases, from `:has()` to popover.
  • `legacy-scan` walks an existing codebase and flags patterns worth modernizing.
  • Chrome, Edge, Firefox and MDN teams steward the project, so browser compatibility data ships with each guide.
  • Guides are pruned by evals to stay token-efficient, keeping only what models actually get wrong.

Real-world use

  • Sign-in, sign-up and payment forms that rely on correct autocomplete values so browser autofill works.
  • Menus and accordions that animate smoothly to and from their intrinsic sizes.
  • Chat and search inputs where IME users must not submit half-composed text on Enter.
  • Tooltips and dropdowns placed with anchor positioning instead of a separate positioning library.

This summary was generated by the agent from the original post on Hacker News: coding agents. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message