← HN · Best

Hacker News·3 min read

Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives

Learn how the new guidance reduces boilerplate and lets agents emit native web features.

Chrome’s latest 1.0 release supplies coding agents with a library of 200+ guides, just 1.7 MB total, that steer them toward built‑in browser primitives instead of hand‑rolled JavaScript. The most striking part is that a single text‑range highlight can now be expressed with CSS.highlights rather than dozens of lines of script.

The skill set works by embedding domain knowledge about stable Chrome features directly into the agent’s prompt library. It lists APIs such as CSS.highlights, showModal(), field-sizing, and a growing roster of CSS functions like calc-size() and flex-wrap: balance, teaching the model to choose the native call whenever it matches the intent.

Implementation relies on a curated markdown index hosted on GitHub Pages, which the agents reference at generation time. The index is open source, so contributors can add or update best‑practice snippets as the web platform evolves, keeping the guidance in sync with MDN and Edge documentation.

For developers, the change means less post‑processing of LLM output and fewer third‑party polyfills. By pulling the skill index into a project’s build pipeline, you can let the agent emit clean, standards‑compliant code that works out‑of‑the‑box in Chrome and, where supported, in other browsers.

TakeawayUse the provided skill index to have agents generate native API calls and cut boilerplate code.

Prodigy briefing — continue on the original for source material, discussion, and updates.

Read original ↗