mf-module-info
Step 1: Parse $ARGUMENTS:
- First token →
<module-name> - If a second token looks like a URL (starts with
http) →<remoteEntry-url>(standalone mode); remaining tokens →[project-root] - Otherwise →
[project-root](consumer mode)
Step 2 — consumer mode (no URL provided):
Call the mf-context Skill (passing [project-root]) to collect MFContext, then run:
node scripts/module-info.js --context '<MFContext-JSON>' --module '<module-name>'
Step 2 — standalone mode (URL provided): Run with an empty context and the explicit URL:
node scripts/module-info.js --context '{}' --module '<module-name>' --url '<remoteEntry-url>'
Step 3: Present the result from the script output:
| Field | Description |
|---|---|
publicPath |
Base URL of the remote |
remoteEntry |
Full URL to remoteEntry.js |
typesZip |
URL to @mf-types.zip |
typesApi |
URL to @mf-types.api (shown only if present) |
hasSsr |
Whether SSR build artifacts were detected |
exposes |
Modules this remote exposes |
remotes |
Remotes this module depends on |
shared |
Shared dependencies declared by this module |
If result.error is set, surface it directly and stop.
Step 4 (conditional): If the user explicitly asks to see the type declarations (e.g. "show me the types", "what types does it export"), fetch result.typesZip or result.typesApi and display the relevant type definitions.
More from module-federation/core
mf
All-in-one Module Federation skill. Use when the user asks anything about MF — concepts, configuration, runtime API, shared dependencies, type errors, runtime error code troubleshooting, slow builds, Bridge integration, or adding MF to an existing project.
411mf-integrate
Integrate Module Federation into an existing project — add provider (exposes modules) or consumer (loads remote modules) configuration. Use when the user wants to add Module Federation to an existing Rsbuild / Rspack / Webpack / Modern.js / Next.js / Vite project, set up a remote, create a host app, or quickly consume the demo provider to see MF working. Default role is consumer.
107mf-docs
Answer questions about Module Federation (MF) — configuration, runtime API, build plugins (Webpack/Rspack/Rsbuild/Vite), framework integration (React/Vue/Next.js/Modern.js/Angular), shared dependencies, exposes, remotes, debugging, troubleshooting, and micro-frontend architecture. Use this skill when the user asks anything about module federation, remote modules, shared deps, mf-manifest, federation runtime, or micro-frontends with MF.
100mf-context
Collects the current project's Module Federation context (MFContext) and outputs a structured summary. Serves as the data foundation for all MF diagnostic Skills; can also be called standalone to quickly understand the project's MF configuration.
66mf-shared-deps
Check Module Federation shared dependency configuration: detect shared/externals conflicts, antd/arco transformImport blocking shared deps, and multiple versions of the same shared package in build artifacts. Use when shared dependencies fail to be shared, or host and remote load duplicate instances of a library.
61mf-perf
Check Module Federation local development performance configuration: detect whether recommended performance optimization options are enabled to alleviate slow HMR and slow build speed.
60