Modernize a Vue app's CSS and components with a web platform skill

Erik Hanchett had Kiro CLI on Opus 5.5 modernize a Vue storefront with Google's Modern Web Guidance skill; it cut a toggle's CSS from 38 lines to 8 and added a lazy polyfill.

Done withKiro· Nov 25, 2026

What they did

Erik Hanchett, a developer advocate at AWS, first had Kiro CLI running Opus 5.5 build a Vue 3, Vite and TypeScript storefront for a made-up outdoor shop in an empty folder, with no skills loaded: a shrinking header, a swipeable mobile drawer, 2,400 searchable products, a quick view modal, a review form with a toggle and an animated FAQ. He then installed Modern Web Guidance, the Chrome team's set of agent skills that carry web platform best practices and Baseline browser support data, ran its legacy scanner over the source, and asked Kiro in one short line to modernize the app.

How it went

The scanner flagged two things: a hero animation stagger written as four nth-child rules, and a hand-built toggle switch. Kiro paused once to ask how to treat older browsers, was told to use polyfills, and then replaced the stagger with one sibling-index() rule behind @supports, kept the old rules as a fallback, and honoured reduced motion. It swapped the toggle for a native switch input, which took the component's switch CSS from 38 lines to 8, loaded a switch polyfill only when the browser lacks support, and wrote a small Vite plugin plus a type declaration so the polyfill's stylesheet survived the build. Only two changes were found, which he puts down to the small codebase.

Worth knowing

The author works for AWS, which makes Kiro, though the skill works with any agent that supports skills. The legacy scanner only covers about 38 guides, roughly a fifth of the library; the rest only applies while the agent works with the skill loaded. The native switch currently works only in Safari, hence the polyfill.

Try it

With Kiro· 4 parts to fill in

This is my [framework, e.g. Vue or React] app in [folder]. Using the [web platform best-practice skill] I have installed, find CSS, HTML and JavaScript that could use newer platform features, targeting [Baseline level or browser list]. List each finding with the file, the old pattern and the replacement before you change anything. Ask me how to handle browsers that lack a feature (polyfill, fallback or skip). Keep fallbacks behind @supports, respect reduced motion, and make sure the production build still passes. Stop and show me the diff when done.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related