重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
mf-module-info by module-federation/core
npx skills add https://github.com/module-federation/core --skill mf-module-info步骤 1 : 解析 $ARGUMENTS:
<module-name>http 开头)→ <remoteEntry-url>(独立模式);剩余令牌 → [project-root][project-root](消费模式)步骤 2 — 消费模式(未提供 URL):调用 mf-context Skill(传递 [project-root])以收集 MFContext,然后运行:
node scripts/module-info.js --context '<MFContext-JSON>' --module '<module-name>'
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
步骤 2 — 独立模式(提供了 URL):使用空上下文和显式 URL 运行:
node scripts/module-info.js --context '{}' --module '<module-name>' --url '<remoteEntry-url>'
步骤 3 : 呈现脚本输出中的 result:
| 字段 | 描述 |
|---|---|
publicPath | 远程模块的基础 URL |
remoteEntry | remoteEntry.js 的完整 URL |
typesZip | @mf-types.zip 的 URL |
typesApi | @mf-types.api 的 URL(仅当存在时显示) |
hasSsr | 是否检测到 SSR 构建产物 |
exposes | 此远程模块暴露的模块 |
remotes | 此模块依赖的远程模块 |
shared | 此模块声明的共享依赖 |
如果设置了 result.error,则直接显示并停止。
步骤 4(条件性) : 如果用户明确要求查看类型声明(例如“显示类型”、“它导出什么类型”),则获取 result.typesZip 或 result.typesApi 并显示相关的类型定义。
每周安装量
52
代码仓库
GitHub 星标数
2.5K
首次出现
2026年3月6日
安全审计
安装于
cursor52
gemini-cli50
github-copilot50
codex50
kimi-cli50
amp50
Step 1 : Parse $ARGUMENTS:
<module-name>http) → <remoteEntry-url> (standalone mode); remaining tokens → [project-root][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 |
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.
Weekly Installs
52
Repository
GitHub Stars
2.5K
First Seen
Mar 6, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
cursor52
gemini-cli50
github-copilot50
codex50
kimi-cli50
amp50
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装
| Whether SSR build artifacts were detected |
exposes | Modules this remote exposes |
remotes | Remotes this module depends on |
shared | Shared dependencies declared by this module |