
lucamezzalira/mfe-skills
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
AIコーディングエージェント向けマイクロフロントエンドの境界ガバナンススキル
概要
AIコードアシスタント用のマイクロフロントエンドアーキテクチャガバナンス。 マイクロフロントエンドの設計のコードアシスタントの深い知識、ビルマイクロフロントエンド(O'Reilly)からの8つの境界ルール、違反検出、および是正パターンを与える2つのスキル。 モジュールフェデレーションv1/v2、ネイティブフェデレーション(アンギュラー)、シングルスパをカバーします。 - 採用決定、境界設計、組成パターン(キャンバスの促進のための別のスキルとペア)をアクティブに - コードレビュー、シェル生成、侵害検出、およびクロスMFE通信でアクティブ AIアシスタントは、スキャフォールディングモジュール連盟ですぐに良いです。 ガバナンスがなければ、多くの場合、コンパイルとデモをうまく生成しますが、時間をかけてチームを自律性を発生させます。 対照的な実験を実行しました:2つのエージェント、同じ簡単な(React 19、モジュールフェデレーション、eコマースシェル+ホーム+カタログMFE)。 一つは、これらのスキルを構築しました。 AGENTS.md と見直し-mfe-boundaries.
概要(AI 翻訳)
AIコードアシスタント用のマイクロフロントエンドアーキテクチャガバナンス。
micro-frontend 境界設計のコードアシスタントの深い知識、Building Micro-Frontends (O’Reilly) からの 8 つの境界ルール、違反検出、および是正パターンを付与する 2 つのスキル。 モジュールフェデレーションv1/v2、ネイティブフェデレーション(アンギュラー)、シングルスパをカバーします。
スキル:
-** Understanding-mfe-アーキテクチュアは、採用決定、境界設計、組成パターン(別々のマイクロフロントエンドカンバとペア**キャンバスのファシリテーションのためのスキル)に有効です
- reviewing-mfe-boundariesは、コードレビュー、シェル生成、違反検知、およびクロスMFE通信で有効です。
これらのスキルを使用する理由
AIアシスタントは、スキャフォールディングモジュール連盟ですぐに良いです。 ガバナンスがなければ、彼らは多くの場合、コンパイルとデモがうまくいくと、時間をかけてチーム自律性を生成します**。
対照的な実験を実行しました:2つのエージェント、同じ簡単な(React 19、モジュールフェデレーション、eコマースシェル+ホーム+カタログMFE)。 1つのビルドは、これらのスキルなし、 [AGENTS.md]と[reviewing-mfe-boundariesをビルドしました.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MFE Skills
Micro-frontend architecture governance for AI code assistants.
Two skills that give your code assistant deep knowledge of micro-frontend boundary design, the eight boundary rules from Building Micro-Frontends (O’Reilly), violation detection, and remediation patterns. Covers Module Federation v1/v2, Native Federation (Angular), and Single SPA.
Skills included:
- understanding-mfe-architecture activates on adoption decisions, boundary design, and composition patterns (pairs with the separate micro-frontend-canvas skill for Canvas facilitation)
- reviewing-mfe-boundaries activates on code review, shell generation, violation detection, and cross-MFE communication
Why use these skills?
AI assistants are good at scaffolding Module Federation quickly. Without governance, they often produce tutorial-style micro-frontends that compile and demo well but erode team autonomy over time.
We ran a controlled experiment: two agents, same brief (React 19, Module Federation, ecommerce shell + home + catalog MFEs). One built without these skills; one built with AGENTS.md and reviewing-mfe-boundaries.
Reference implementation (with skills): lucamezzalira/mfe-with-skills — ThreadTales (Module Federation 2.0, runtime discovery, vendored skills + AGENTS.md).
| Branch | Purpose |
|---|---|
main |
Starting point: AGENTS.md, docs/SPEC.md, skills — no app code |
ecommerce-init-implementation |
Runnable app — AppShell + five remotes, discovery service (pnpm install / pnpm start) |
Use ecommerce-init-implementation for Start Here and code review; use main to bootstrap a new project from spec only.
Before vs after (experiment)
| Area | Without skills | With skills |
|---|---|---|
| Cross-MFE imports | Shell imports catalogMfe/productUtils |
No imports across remotes; each MFE exposes only its app entry |
| Mount contract | shellUser, cart, formatPrice, onNavigate |
userId + platformBus (chrome only) |
| Shared state | window.__SHOP_CART__ global singleton |
No shared store; URL + platform events |
| Routing | Shell knows home + catalog pages | Shell loads first URL segment only (manifest/discovery); MFE owns deeper paths like /catalog/product/:id |
| Adding a route/MFE | Edit shell App.tsx |
Add entry in manifest/discovery config (no shell domain-page code changes) |
| Remote URLs | Hard-coded in webpack config | Runtime discovery (remotes.json or frontend-discovery.json) |
| Failure handling | Suspense only |
Shell ErrorBoundary + fallback per remote |
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add lucamezzalira/mfe-skills