# Polaris React to Web Components Migration

> Move a Shopify app off Polaris React to Polaris web components slice by slice, with an inventory script, docs-checked mappings, app-shell swaps and proof nothing broke.

Polaris React to Web Components Migration is a paid AI agent skill on Agensi by Nahid hossain, in E-commerce. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Nahid hossain](https://www.agensi.io/creators/nahid-hossain)
- Category: [E-commerce](https://www.agensi.io/skills/ecommerce)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/polaris-react-to-web-components-migration
- Tags: web-design, ecommerce, api, polaris, web-components, migration, shopify

## About this skill

### The problem
Polaris React is being replaced by Polaris web components. Converting a whole app at once is risky, and it is easy to break the app shell (Frame, Toast, save bar) without noticing.

### What it does
- Counts every Polaris React component in your app with a script you can re-run to show progress
- Converts one page or feature at a time, checking each component against Shopify's migration guide
- Replaces Frame, Toast, Loading, ContextualSaveBar and Navigation
- Warns about styling that stops working inside web components
- Verifies each slice and removes the old package only when nothing imports it

### Why not just prompt your agent?
Agents guess tag names and properties. This skill makes the agent read the official guide for each component, one slice at a time, and report the numbers before and after.

### Works with
Embedded Shopify apps built with React. The included inventory script needs Node 18 or newer.

### Test prompts

- Migrate the settings page to Polaris web components.
- How much of our app is still on Polaris React?
- Replace our Toast and ContextualSaveBar usage.
- Remove @shopify/polaris from the project.

### Safety
The script is read-only and offline. The agent asks before installing or removing packages.

### Where it stops
It does not cover Shopify-hosted UI extensions, and it cannot test inside the Shopify admin for you.

## Known limitations

Some components have no direct replacement, so the agent picks one and explains it. The inventory script counts imports from @shopify/polaris in script and style files; components used through your own wrapper files count only where the wrapper imports them. It cannot test inside the Shopify admin, so you check each slice in a development store. Mappings depend on Shopify's current migration guides, which the agent reads. Needs Node 18+. Review all changes. Not affiliated with or endorsed by Shopify.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Polaris React to Web Components Migration skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill simplify the migration to Polaris web components?

This skill manages the transition from Polaris React to the new web component standard. It automates the identification of deprecated components and maps them to their modern equivalents while ensuring critical Shopify App Bridge features like toasts and the save bar continue to function.

### What is required to start using this skill on my project?

You need a Shopify embedded app codebase and a Shopify development store to verify the migration. The skill uses the provided inventory script and documentation-checked mappings to ensure every component adheres to Shopify's official migration guides.

### Which frameworks and app types are supported by this skill?

This skill works with React and TypeScript projects using the Shopify App Bridge. It is designed specifically for embedded apps running in an iframe within the Shopify admin and does not support Shopify-hosted UI extensions like checkout or admin home extensions.

### What specific outputs should I expect after running a migration slice?

The skill performs a systematic migration that includes an inventory report of remaining React components, updated frontend files, and a verification checklist. It ensures that event handlers and Shadow DOM styling constraints are addressed before providing a final progress report.

### How should I prompt my AI agent to begin the migration process?

You can ask your agent to run an inventory of your Polaris React usage to establish a baseline. From there, you can direct it to migrate a specific feature or route, such as your settings page or data tables, to the new Polaris web component standard.

### Does it need my Shopify login?

No. You open the converted page in your own development store to check it.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
