Communitygithub.com

Vercel マイクロフロントエンド

Vercel 上でマイクロフロントエンドを構築、設定、デプロイするためのガイドです。ユーザーがマイクロフロントエンド、マルチゾーン、アプリ分割、独立したデプロイ、クロスアプケーションルーティング、段階的移行、複数フロントエンドの統合、microfrontends.json、@vercel/microfrontends、ローカルプロキシ、パスベースルーティングなどについて言及した際に使用します。また、プロジェクト間の共有レイアウト、マイクロフロントエンド間のナビゲーション、フォールバック環境、アセットプレフィックス、フィーチャーフラグ制御ルーティングについての質問にも対応します。

Vercel マイクロフロントエンド とは?

このスキルは、Vercel のグローバルネットワーク上で大規模なアプリケーションを独立してデプロイ可能な単位に分割し、統一されたアプリとして表示するためのガイドです。`microfrontends.json` をルート設定に使用し、デフォルトアプリと子アプリの概念、アセットプレフィックスによる静的アセットの衝突防止、独立したデプロイなどをサポートします。Next.js (App Router と Pages Router)、SvelteKit、React Router、Vite などの主要なフレームワークに対応しており、`@vercel/microfrontends` パッケージを通じて統合されます。また、`vercel microfrontends` CLI を使用してグループの作成、追加、削除、検査、ローカル開発用のプロキシ設定など、プロジェクト管理を効率的に行うことができます。このスキルは、`references/` ディレクトリ内の詳細なリファレンスドキュメントを参照するように設計されており、ユーザーの質問に応じて適切なファイルを検索して回答を提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Geruyang/agent-skills-library/tree/HEAD/original-skills/x-openai-microfrontends-4b38860

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Vercel マイクロフロントエンド は何をしますか?

大規模なアプリケーションを独立してデプロイ可能な単位に分割し、一貫性のあるアプリとしてレンダリングします。Vercel はグローバルネットワーク上で microfrontends.json を使用してルーティングを処理します。

コアコンセプト: デフォルトアプリ (microfrontends.json を持ち、未マッチのリクエストを処理) · 子アプリ (routing パスパターンを持つ) · アセットプレフィックス (静的アセットの衝突防止) · 独立したデプロイメント。

フレームワーク: Next.js (App Router + Pages Router)、SvelteKit、React Router、Vite — すべて @vercel/microfrontends 経由で対応。

CLI (vercel microfrontends / vercel mf):

  • create-group — 新しいグループを作成。デフォルトはインタラクティブモード。--non-interactive で完全非インタラクティブ (オプション: --name, --project (繰り返し可)、--default-app, --default-route, --project-default-route (繰り返し可、形式: <project>=<route>, 非インタラクティブモードでは非デフォルトプロジェクトごとに必須)、--yes (確認プロンプトをスキップ));注意: --non-interactive は、プロジェクト追加により無料枠制限を超える場合はブロックされます — ユーザーはインタラクティブに課金変更を確認する必要があります。
  • add-to-group — 現在のプロジェクトを既存のグループに追加。インタラクティブターミナルが必要 (オプション: --group, --default-route)。
  • remove-from-group — 現在のプロジェクトをそのグループから削除。インタラクティブターミナルが必要 (オプション: --yes はプロジェクトリンクプロンプトのみスキップ)。
  • delete-group — グループとその全設定を削除(元に戻せません)。インタラクティブターミナルが必要 (オプション: --group で事前選択)。
  • inspect-group — グループのメタデータ(プロジェクト名、フレームワーク、git リポジトリ、ルートディレクトリ)を取得。自動化設定に便利 (オプション: --group, --format=json, --config-file-name)。
  • pull — リモートの microfrontends.json をローカル開発用にプル (オプション: --dpl)。
  • microfrontends proxy — ローカル開発プロキシ。microfrontends port — 自動割り当てされたポートを表示。

詳細情報の参照

このスキルには references/ ディレクトリ内に詳細なリファレンスドキュメントが含まれています。すべてのリファレンスを一度に読み込まないでください。 代わりに、ユーザーが特定のトピックについて質問した際に、関連ファイルを grep または検索してください。

トピックリファレンスファイル
はじめに、クイックスタート、フレームワーク設定、microfrontends.json スキーマ、フィールド、命名、例references/configuration.md
パス式、アセットプレフィックス、フラグ制御ルーティング、ミドルウェアreferences/path-routing.md
ローカルプロキシ設定、ポリレポ構成、Turborepo、ポート、デプロイメント保護references/local-development.md
グループの検査 (inspect-group)、プロジェクトの追加/削除、フォールバック環境、ナビゲーション、可観測性references/managing-microfrontends.md
テストユーティリティ (validateMiddlewareConfig、validateRouting など)、デバッグヘッダー、よくある問題references/troubleshooting.md
デプロイメント保護、Vercel Firewall、マイクロフロントエンド向け WAF ルールreferences/security.md

ユーザーが特定のトピックについて質問した場合、grep または検索を使用して関連リファレンスファイルから回答を見つけ、すべてのリファレンスをコンテキストに読み込まないようにしてください。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

Geruyang/agent-skills-library

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Geruyang/agent-skills-library

Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling

Geruyang/agent-skills-library

Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful implementation, and browser testing.

Geruyang/agent-skills-library

Use when testing, debugging, or making targeted improvements to rendered frontend apps through the Build Web Apps or web dev plugin: local dev servers, UI regressions, interaction bugs, console errors, responsive layout, and visual QA. Check whether the Browser plugin is available and use it first when it is; otherwise use regular Playwright with the recorded reason.

Geruyang/agent-skills-library

Design UI surfaces for browser games. Use when the user asks for HUDs, menus, overlays, responsive layouts, or visual direction that must protect the playfield.

Geruyang/agent-skills-library

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

Geruyang/agent-skills-library

Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

Geruyang/agent-skills-library

Use when sizing Public Equity Investing positions, finding equity hedges, or building an integrated position-and-hedge risk plan from a listed-equity thesis. Do not use for thesis construction, standalone event underwriting, trade execution, personal investment advice, or credit-instrument risk.

Geruyang/agent-skills-library

Integrate data visualizations into React and Next.js applications. Use when the user needs chart components, UML-like or architecture diagram components, React integration patterns, Next.js client or server boundaries, hydration-safe rendering, lazy loading, framework-aware performance, scroll-driven visual stories, or export guidance.

Geruyang/agent-skills-library

shadcn/ui expert guidance — CLI, component installation, composition patterns, custom registries, theming, Tailwind CSS integration, and high-quality interface design. Use when initializing shadcn, adding components, composing product UI, building custom registries, configuring themes, or troubleshooting component issues.

Geruyang/agent-skills-library

v0 by Vercel expert guidance. Use when discussing AI code generation, generating UI components from prompts, v0 CLI usage, v0 SDK/API integration, or integrating v0 into development workflows with GitHub and Vercel deployment.

Geruyang/agent-skills-library

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

関連スキル