Vai al contenuto

Lingua interfaccia: IT. Contenuti editoriali: inglese. Prezzi riferiti a Regno Unito.

Sir CompareConfronti con le proveYouTubeTelegram
Regno Unito · GBP

Articolo

Agent skills for web code: what Google's new repo changes

Aggiornato

Foto illustrativa: Repository e tool open source da provare
Foto illustrativa

What the repo actually ships

Google's Chrome team publishes a source repository for Modern Web Guidance. It holds the code and documentation used to author, calibrate and evaluate the guidance itself.

The guidance is a set of skills that embed web platform expertise, best practices and browser compatibility data into coding agents. The aim is to steer agents away from legacy patterns and toward modern platform solutions.

The project is stewarded by the Chrome, Edge, Firefox and MDN teams, alongside the wider web development community. The repo points readers to its contribution and governance files for how the project is run.

Why agents keep writing old code

The stated reason for the project is blunt: coding agents often default to older patterns because their training data contains large amounts of legacy code.

That leads them to generate bloated JavaScript for tasks the platform now handles natively. Even when a model knows an API exists, it may lack the density of real-world implementation patterns needed for production-ready code.

The CLI tries to close that gap by returning targeted guidelines into the agent's context window. The focus areas are modern browser APIs, performance and accessibility, and responsible fallbacks.

On fallbacks, the guidance prefers lightweight options over heavy polyfills or legacy libraries. That is a design preference stated by the project.

Foto illustrativa: Sviluppo & Open Source: Laptop coding programs (Unsplash)

How you try it without a full install

The quickstart is a single command: `npx modern-web-guidance@latest install`. It runs an interactive wizard to set things up.

You can also test it without installing. A search command takes a plain-language query, such as animating a dialog backdrop. A retrieve command pulls a guide by its ID.

There is a legacy scan too: `npx modern-web-guidance@latest legacy-scan .` checks a codebase for legacy patterns to modernise.

The guides are built to be token-efficient. The team runs evaluations to prune content models already know, so you are not paying context for basics.

What's covered, and the honest limits

The material spans recent web platform features up to the cutting edge. The repo lists 262 modern web features across CSS and layout, HTML and DOM, and JavaScript and APIs.

Examples include container queries, view transitions, the Popover API, `:user-invalid` validation and scroll-driven animations. The list is a catalogue of topics.

I haven't run the CLI, so I can't tell you how good the suggestions are in practice. The repo links an evaluation dashboard if you want to see how the team measures its own guides.

Sources

Chiedi a Sir Compare:Spiegami questi numeri

Hardware per provare l'AI in locale

Link affiliati: possiamo ricevere una commissione sugli acquisti idonei, e non cambia i nostri dati né le classifiche. Aprono i risultati di ricerca di Amazon: prezzi e disponibilità si vedono lì.

Cosa è cambiato

  • Pagina aggiornata
  • Pagina aggiornata

Come metto in fila i prodotti

La posta di Sir Compare

Novità su Sviluppo e open source? Te le scrivo io.

Scegli cosa ti interessa: ti scrivo solo quando esce qualcosa di nuovo — una guida, una notizia, un prezzo verificato che scende.

Passo 1 di 2

Cosa ti interessa?

Scegline quante vuoi. Se non scegli niente, ricevi le novità di tutte le sezioni.

Cosa vuoi ricevere
  • Solo quello che scegli
  • Mai email vuote
  • Esci con un clic

Il tuo assistente

Apri la pagina completa →