Has this ever happened to you? You have your AI agent make some changes, then you look at the CSS and it's not using the latest and greatest. You heard about some nice new CSS feature, and your agent decided to use an outdated one instead. Or worse, it decided to use JavaScript when CSS could have worked much better.

This skill helps fix that. It's called Modern Web Guidance, and it's a set of skills from the Chrome team that puts web platform best practices and browser compatibility data straight into your coding agent. Version 1.0 came out on November 10th, and Firefox and Edge are on the project too.

I'm a big React and Vue.js fan so I decided to use the latest model and have it create an app without any skills then with skills. I used Claude Opus 5.5 for all my tests.

If you'd rather watch, here's the video:

(Full disclosure: I'm a Developer Advocate at AWS, and Kiro is an AWS product. It's my agentic harness of choice, but Modern Web Guidance works with any agent that supports skills.)

The app

I gave Kiro CLI this prompt with Opus 5.5, in an empty folder with no skills and no steering files:

Build a storefront for an outdoor gear shop called "Trailhead Outfitters" using Vue 3, Vite and TypeScript in this folder. No UI libraries, just Vue and CSS. Make it look polished. 

Then I gave it a list of features. A header that shrinks when you scroll, a mobile nav drawer you can swipe closed, 2,400 products with search and a sort dropdown, a quick view modal, a review form with a toggle switch, and a FAQ that animates open and closed.

It did a pretty good job at building it, without any skills. So I was a little worried if the skill would find anything at all...

1. Install the skill

Let's take a look at how to setup the skill.

To follow along, from your project folder run:

npx modern-web-guidance@latest install 

Sci-fi style diagram of the install command, with the modern-web-guidance skill module docking into the .kiro/skills folder

It uses the same installer a lot of skills use. So it should look familiar.

If you open the folder, it's mostly Markdown. There's a SKILL.md that tells the agent when to use it, and a guides folder split up by topic, like accessibility, CSS, forms, JS and UI components. Each guide is a best practice written for agents, with the browser support data baked in.

2. Poke around the guides

One really nice thing is that you don't have to wait for your agent to use it. The CLI can search the guides directly:

npx modern-web-guidance@latest search "animation" 

That gives you back a list of guide IDs with descriptions. When you find one you like, pull the whole thing:

npx modern-web-guidance@latest retrieve "scrollytelling" 

Basically, that's the same thing the agent does behind the scenes. It searches, picks the guides that match, and retrieves them and adds it to it's context.

3. Set your browser support

The guides pick features based on Baseline. By default it targets Baseline "Widely available", which means a feature has worked in every major browser for at least 30 months. That's about two and a half years. If you want newer features, you can set a newer target like Baseline 2026, and the agent will add fallbacks or polyfills for browsers that don't have them yet.

Google's docs say to put your target in AGENTS.md or CLAUDE.md. In Kiro, I'd put it in a steering file:

A Kiro steering file at .kiro/steering/baseline.md that sets the project's Baseline target, next to the three Baseline tiers: limited, newly and widely available

I skipped this for the video, though Kiro did mention it.

4. Run the legacy scan

Before letting the agent touch anything, I ran the scanner on the Opus app:

npx modern-web-guidance@latest legacy-scan src 

Scan results showing 2 legacy signals: dynamic-sibling-animations in HeroSection.vue and switch in ToggleSwitch.vue

Two findings. The hero section staggers its animations with four :nth-child rules, and that can be one rule with the new sibling-index() function. And the toggle switch is a checkbox with role="switch" plus a hand-built track and thumb, which can use the new native switch attribute.

It reads .vue files fine, by the way. Templates, scripts and scoped styles.

FYI about the scanner. It only has rules for 38 guides, which is about 20% of the whole library. The rest of the skill kicks in when your agent is actually doing work with it loaded.

Radar chart showing the legacy scan covers about 20% of guides, 38 with deterministic rules

5. Ask Kiro to modernize it

After I ran the legacy-scan I decided to just have it go ahead and modernize my app.

I opened the app in Kiro and kept the prompt short:

Can you modernize this app? 

A couple minutes in, it stopped and asked me how it should handle older browsers. Should it use polyfills? I told it to use polyfills and let it keep going.

Here's what it changed:

Before and after code. The four nth-child animation-delay rules become one sibling-index rule, and the role switch checkbox with custom track and thumb spans becomes a checkbox with the native switch attribute

The hero stagger is one rule now:

@supports (animation-delay: calc(sibling-index() * 0.1s)) { .hero-content > * { animation-delay: calc((sibling-index() - 1) * var(--stagger-time)); } } 

sibling-index() gives you an element's position among its siblings, starting at 1, so you don't need a separate rule for every child. Add a sixth line to the hero and it just works. Kiro kept the old :nth-child rules behind @supports not for browsers that don't have it yet, and it also turned the animation off for people who prefer reduced motion.

The toggle switch is a native switch now:

<input :id="id" v-model="model" type="checkbox" switch /> 

That let it delete the custom track and thumb. The component's CSS went from 38 lines of switch styling down to 8, and the color comes from accent-color now.

Only Safari supports switch right now, so this is where the polyfill comes in. Kiro added the input-switch-polyfill package and loads it in main.ts before the app mounts, but only when the browser needs it:

const polyfills = 'switch' in HTMLInputElement.prototype ? Promise.resolve() : import('input-switch-polyfill') polyfills .catch((err: unknown) => console.error('The switch polyfill failed to load; continuing without it.', err)) .finally(() => createApp(App).mount('#app')) 

The polyfill also needed a little extra setup. It loads its own CSS file using import.meta.resolve, and Vite doesn't pick that up, so the stylesheet would go missing in the build. Kiro added a small Vite plugin that rewrites it to new URL(..., import.meta.url), plus a one-line type declaration since the package doesn't ship types.

Even though it only found two quick, simple changes, I was happy. In a much larger, more complex code base, you're probably going to get dozens of them.

Wrap up

I'll be using this skill in many more of my projects in the future. I like clean code, and even though agents are writing way more of my code then ever before, I still want to use the latest and greatest features. Specially if I know my users and their browsers support it.

Will one day the latest models do this for me? Maybe? But for now I'm going to stick to skills like this that help me write cleaner code.

Would you add this to your projects? Let me know in the comments.

Links