microfrontends — скилл для Codex: микрофронтенды на Vercel
Разбивает большое приложение на независимо деплоящиеся части, которые для пользователя выглядят одним сайтом. Полезен, когда фронтенд делят между командами.
npx skills add openai/plugins --skill microfrontends -a codexЧто делает microfrontends
Скилл объясняет, как собрать микрофронтенды на Vercel: один проект становится default app и отвечает на все несовпавшие запросы, остальные получают свои пути через routing в microfrontends.json. Роутинг работает на глобальной сети Vercel, поэтому отдельный шлюз поднимать не нужно. Поддерживаются Next.js с App Router и Pages Router, SvelteKit, React Router и Vite — всё через пакет @vercel/microfrontends.
Внутри лежат справочники в references/, разбитые по темам: схема конфига, путевые выражения и префиксы ассетов, локальный прокси, управление группами, отладка и правила безопасности. Скилл не читает их все сразу — он ищет по нужному файлу, когда вопрос касается конкретной темы. Это заметно экономит контекст, если вы работаете с большим монорепозиторием.
CLI vercel microfrontends (он же vercel mf) умеет создавать и удалять группы, добавлять в них проекты, вытягивать конфиг для локальной разработки и поднимать локальный прокси. Два момента стоит проверить заранее: add-to-group, remove-from-group и delete-group требуют интерактивного терминала, а --non-interactive при создании группы блокируется, если добавление проектов выходит за лимит бесплатного тарифа — подтверждать изменение биллинга придётся вручную. Удаление группы необратимо.
Какие задачи решает
- разделить монолитное приложение на части для разных команд
- настроить маршрутизацию между несколькими Vercel-проектами под одним доменом
- перевести проект на микрофронтенды постепенно, без переписывания сразу
- поднять локальный прокси для разработки нескольких зон
- вынести общий layout и навигацию в отдельный проект
Примеры запросов агенту
- помоги настроить microfrontends.json для двух зон
- добавь текущий проект в существующую группу микрофронтендов
- почему локальный прокси не видит второй проект
Как установить microfrontends
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill microfrontends -a codex2Вручную: положить файлы
.agents/skills/microfrontends/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill microfrontends -a claude-code2Вручную: положить файлы
~/.claude/skills/microfrontends/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/microfrontends/
Вручную: положить файлы
.cursor/skills/microfrontends/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins microfrontends2Вручную: положить файлы
.github/skills/microfrontends/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/vercel/skills/microfrontendsВручную: положить файлы
.devin/skills/microfrontends/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Скиллы Codex: как установить, где лежат и как вызвать
Из того же набора304
Весь набор →Похожие
Рядом в теме «Фронтенд и UI»
Всё по теме «Фронтенд и UI» →Вопросы о microfrontends
Как установить microfrontends в Claude?
Выполните npx skills add openai/plugins --skill microfrontends, затем npx skills add openai/plugins --skill microfrontends -a codex. Файл скилла окажется по пути .agents/skills/microfrontends/SKILL.md.
Что делает скилл microfrontends?
Помогает строить, настраивать и деплоить микрофронтенды на Vercel: описывает схему microfrontends.json, путевой роутинг, префиксы ассетов и работу с CLI vercel microfrontends.
Какие фреймворки поддерживаются?
Next.js с App Router и Pages Router, SvelteKit, React Router и Vite. Во всех случаях используется пакет @vercel/microfrontends.
Исходный текст
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