Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

microfrontends — Claude skill: microfrontends on Vercel

Splits a large app into independently deployable units that still render as one site. Handy when several teams own parts of the frontend.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill microfrontends -a codex
Open on GitHub

What microfrontends does

The skill covers building microfrontends on Vercel. One project acts as the default app and serves unmatched requests, while the others get their own paths through routing in microfrontends.json. Routing runs on Vercel's global network, so you don't stand up a separate gateway. Next.js with App Router and Pages Router, SvelteKit, React Router and Vite are all supported via @vercel/microfrontends.

Reference docs live in references/, split by topic: config schema, path expressions and asset prefixes, the local proxy, group management, troubleshooting and security rules. The skill greps the relevant file instead of loading everything, which keeps context free on a large monorepo.

The CLI vercel microfrontends (also vercel mf) creates and deletes groups, adds projects to them, pulls the remote config for local work and starts the local proxy. Two things to check first: add-to-group, remove-from-group and delete-group need an interactive terminal, and --non-interactive group creation is blocked when adding the projects would exceed the free tier limit, so billing changes have to be confirmed by hand. Deleting a group is irreversible.

What it helps with

  • split a monolith across several teams
  • route requests between Vercel projects under one domain
  • migrate to microfrontends incrementally instead of a rewrite
  • run a local proxy for multi-zone development
  • share a layout and navigation across projects

Example prompts for the agent

  • set up microfrontends.json for two zones
  • add this project to an existing microfrontends group
  • why doesn't the local proxy see my second project

How to install microfrontends

1Skills CLI (Vercel)

npx skills add openai/plugins --skill microfrontends -a codex

2Manually: put the files in place

.agents/skills/microfrontends/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about microfrontends

How do I install microfrontends in Claude?

Run npx skills add openai/plugins --skill microfrontends, then npx skills add openai/plugins --skill microfrontends -a codex. The skill file lands at .agents/skills/microfrontends/SKILL.md.

What does the microfrontends skill do?

It guides building, configuring and deploying microfrontends on Vercel: the microfrontends.json schema, path routing, asset prefixes and the vercel microfrontends CLI.

Which frameworks are supported?

Next.js with App Router and Pages Router, SvelteKit, React Router and Vite. All of them go through the @vercel/microfrontends package.

Source text

SKILL.md · Apache-2.0
---
name: microfrontends
description: Guide for building, configuring, and deploying microfrontends on Vercel. Use this skill when the user mentions microfrontends, multi-zones, splitting an app across teams, independent deployments, cross-app routing, incremental migration, composing multiple frontends under one domain, microfrontends.json, @vercel/microfrontends, the microfrontends local proxy, or path-based routing between Vercel projects. Also use when the user asks about shared layouts across projects, navigation between microfrontends, fallback environments, asset prefixes, or feature flag controlled routing.
metadata:
  priority: 7
  docs:
    - "https://vercel.com/docs/microfrontends"
  pathPatterns:
    - 'microfrontends.json'
    - 'microfrontends.jsonc'
    - 'apps/*/microfrontends.json'
    - 'apps/*/microfrontends.jsonc'
  bashPatterns:
    - '\bvercel\s+microfrontends\b'
    - '\bvercel\s+mf\b'
    - '\bnpm\s+(install|i|add)\s+[^\n]*@vercel/microfrontends\b'
    - '\bpnpm\s+(install|i|add)\s+[^\n]*@vercel/microfrontends\b'
    - '\bbun\s+(install|i|add)\s+[^\n]*@vercel/microfrontends\b'
    - '\byarn\s+add\s+[^\n]*@vercel/microfrontends\b'
  importPatterns:
    - '@vercel/microfrontends'
---

# Vercel Microfrontends
Split a large application into independently deployable units that render as one cohesive app. Vercel handles routing on its global network using `microfrontends.json`.

**Core concepts:** default app (has `microfrontends.json`, serves unmatched requests) · child apps (have `routing` path patterns) · asset prefix (prevents static-asset collisions) · independent deployments.

**Frameworks:** Next.js (App Router + Pages Router), SvelteKit, React Router, Vite — all via `@vercel/microfrontends`.

**CLI (`vercel microfrontends` / `vercel mf`):**
- `create-group` — create a new group; interactive by default, or fully non-interactive with `--non-interactive` (options: `--name`, `--project` (repeatable), `--default-app`, `--default-route`, `--project-default-route` (repeatable, format: `<project>=<route>`, required for each non-default project in non-interactive mode), `--yes` to skip confirmation prompt); note: `--non-interactive` is blocked if adding the projects would exceed the free tier limit — the user must confirm billing changes interactively
- `add-to-group` — add the current project to an existing group; requires interactive terminal (options: `--group`, `--default-route`)
- `remove-from-group` — remove the current project from its group; requires interactive terminal (option: `--yes` skips project-link prompt only)
- `delete-group` — delete a group and all its settings, irreversible; requires interactive terminal (option: `--group` to pre-select group)
- `inspect-group` — retrieve group metadata (project names, frameworks, git repos, root dirs); useful for automating setup (options: `--group`, `--format=json`, `--config-file-name`)
- `pull` — pull remote `microfrontends.json` for local development (option: `--dpl`)
- `microfrontends proxy` — local dev proxy · `microfrontends port` — print auto-assigned port

## Finding Detailed Information

This skill includes detailed reference docs in the `references/` directory. **Do not read all references upfront.** Instead, search or grep the relevant file when the user asks about a specific topic:

| Topic | Reference file |
|---|---|
| Getting started, quickstart, framework setup, `microfrontends.json` schema, fields, naming, examples | `references/configuration.md` |
| Path expressions, asset prefixes, flag-controlled routing, middleware | `references/path-routing.md` |
| Local proxy setup, polyrepo config, Turborepo, ports, deployment protection | `references/local-development.md` |
| Inspecting groups (`inspect-group`), adding/removing projects, fallback environments, navigation, observability | `references/managing-microfrontends.md` |
| Testing utilities (`validateMiddlewareConfig`, `validateRouting`, etc.), debug headers, common issues | `references/troubleshooting.md` |
| Deployment protection, Vercel Firewall, WAF rules for microfrontends | `references/security.md` |

When the user asks about a specific topic, use grep or search over the relevant reference file to find the answer without loading all references into context.

© Vercel Labs · Apache-2.0 · openai/plugins

Similar skills

Everything for Frontend and UI →

From the same set304

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor