Saltar al contenido

Idioma de la interfaz: ES. Contenido editorial: inglés. Los precios corresponden a Reino Unido.

Sir CompareComparativas con pruebas
Reino Unido · GBP

Artículo

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

Actualizado

Imagen ilustrativa: Repository e tool open source da provare
Imagen ilustrativa

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.

Imagen ilustrativa: 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

Pregunta a Sir Compare:Explícame estos números

Hardware para probar la IA en casa

Enlaces de afiliado: podemos recibir una comisión por las compras que cumplan los requisitos, y no cambia nuestros datos ni las clasificaciones. Abren los resultados de búsqueda de Amazon: allí se ven precios y disponibilidad.

Qué ha cambiado

  • Página actualizada
  • Página actualizada

Cómo ordeno los productos

El correo de Sir Compare

¿Novedades sobre Desarrollo y código abierto? Te escribo yo.

Elige lo que te interesa: solo te escribo cuando sale algo nuevo — una guía, una noticia, un precio verificado que baja.

Paso 1 de 2

¿Qué te interesa?

Elige las que quieras. Si no eliges ninguna, recibes las novedades de todas las secciones.

Qué quieres recibir
  • Solo lo que eliges
  • Nunca un correo vacío
  • Sales con un clic

Tu asistente

Abrir página completa →