Zum Inhalt springen

Oberflächensprache: DE. Redaktionelle Inhalte: Englisch. Preise beziehen sich auf Vereinigtes Königreich.

Sir CompareVergleiche mit BelegenYouTubeTelegram
Vereinigtes Königreich · GBP

Article

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

Aktualisiert

Symbolbild: Repository e tool open source da provare
Symbolbild

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.

Symbolbild: 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

Frag Sir Compare:Erklär mir diese Zahlen

Hardware, um KI zu Hause auszuprobieren

Affiliate-Links: Für qualifizierte Käufe können wir eine Provision erhalten, sie ändert weder unsere Daten noch die Rankings. Sie öffnen die Suchergebnisse von Amazon: Preise und Verfügbarkeit stehen dort.

Was sich geändert hat

  • Seite aktualisiert
  • Seite aktualisiert

Wie ich Produkte ordne

Post von Sir Compare

Neues zu Entwicklung und Open Source? Ich schreibe Ihnen.

Wählen Sie Ihre Themen: Ich schreibe nur, wenn etwas Neues erscheint — ein Ratgeber, eine Nachricht, ein geprüfter Preis, der sinkt.

Schritt 1 von 2

Was interessiert Sie?

Wählen Sie beliebig viele. Ohne Auswahl erhalten Sie das Neue aus allen Bereichen.

Was Sie erhalten möchten
  • Nur, was Sie wählen
  • Nie eine leere E-Mail
  • Abmelden mit einem Klick

Ihr Assistent

Vollständige Seite öffnen →