You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`mf-docs`](#mf-docs) ⭐ |`/mf-docs`| Ask any question about Module Federation 2.0 configuration or APIs |[skills/mf-docs](https://github.com/module-federation/core/tree/main/skills/mf-docs)|
54
54
|[`mf-context`](#mf-context)|`/mf-context`| Inspect your project's MF configuration at a glance |[skills/mf-context](https://github.com/module-federation/core/tree/main/skills/mf-context)|
55
55
|[`mf-module-info`](#mf-module-info)|`/mf-module-info`| Inspect a remote module's full info (exposes / remotes / shared) |[skills/mf-module-info](https://github.com/module-federation/core/tree/main/skills/mf-module-info)|
56
+
|[`mf-integrate`](#mf-integrate)|`/mf-integrate`| Add Module Federation to an existing project — generates provider / consumer config automatically |[skills/mf-integrate](https://github.com/module-federation/core/tree/main/skills/mf-integrate)|
56
57
|[`mf-type-check`](#mf-type-check)|`/mf-type-check`| TypeScript type errors or missing `@mf-types` folder |[skills/mf-type-check](https://github.com/module-federation/core/tree/main/skills/mf-type-check)|
57
58
|[`mf-shared-deps`](#mf-shared-deps)|`/mf-shared-deps`| Shared deps not working, version conflicts, or duplicate bundling |[skills/mf-shared-deps](https://github.com/module-federation/core/tree/main/skills/mf-shared-deps)|
58
59
|[`mf-perf`](#mf-perf)|`/mf-perf`| Slow HMR or slow build speed in local development |[skills/mf-perf](https://github.com/module-federation/core/tree/main/skills/mf-perf)|
@@ -147,6 +148,35 @@ To inspect the current project's own configuration, use `mf-context` instead.
147
148
148
149
---
149
150
151
+
## mf-integrate
152
+
153
+
Adds Module Federation to an existing project. The skill auto-detects your bundler, collects the required parameters (app name, role, module paths), generates complete configuration files, and installs the necessary packages. The default role is **consumer** — you can connect to the public demo provider immediately to see MF in action.
If you want to integrate `Module Federation` into an existing project, you can refer to [docs](../../practice/frameworks/overview).
166
166
167
+
:::tip Integrate with AI in one step
168
+
Using [Claude Code](https://claude.ai/code) or another AI editor that supports Skills? The `mf-integrate` skill auto-detects your bundler (Rsbuild / Rspack / Webpack / Modern.js / Next.js / Vite), generates complete MF configuration, and can optionally insert a remote component into your entry file so you can verify everything is working immediately:
Through the above process, you have completed the export of a component from a 'provider'foruse by a 'consumer' based on Module Federation. Along the way, you have preliminarily used and understood the configurations of remotes, exposes, and sharedin the Module Federation plugin.
0 commit comments