mf-docs by module-federation/core
npx skills add https://github.com/module-federation/core --skill mf-docs通过仅获取相关文档页面来回答模块联邦问题——而非整个文档。
获取索引以发现可用页面及其描述:
https://module-federation.io/llms.txt
索引格式如下:
## 章节名称
- [页面标题](/path/to/page.md): 页面内容的简要描述
阅读索引中的页面描述,并选择与用户问题最相关的 1-3 个页面。在阅读描述之前,请使用下面的快速主题映射来缩小候选范围。
快速主题映射:
| 用户询问关于 | 查看章节 |
|---|---|
| 什么是 MF / 概念 / 术语表 / 入门指南 | Guide → start/ |
| CLI、CSS 隔离、类型提示、数据获取、预取 | Guide → |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
basic/运行时 API、loadRemote、MF 实例、运行时钩子 | Guide → runtime/ |
| Webpack / Rspack / Rsbuild / Vite / Metro 的构建插件设置 | Guide → build-plugins/ |
| Next.js / Modern.js / Angular / React 集成 | Guide → framework/ 或 Practice → frameworks/ |
| React Bridge / Vue Bridge / 跨框架渲染 | Practice → bridge/ |
name、filename、exposes、remotes、shared、dts、manifest、shareStrategy | Configuration |
| 运行时插件、重试插件、自定义插件 | Plugins |
| 性能、摇树优化、共享作用域 | Guide → performance/ 或 Guide → advanced/ |
| 调试模式、Chrome DevTool、全局变量 | Guide → debug/ |
| 错误消息、构建错误、类型错误 | Guide → troubleshooting/ |
| Monorepo、Nx | Practice → monorepos/ |
| 部署、Zephyr | Guide → deployment/ |
通过从索引中的路径移除 .md 扩展名来构建 URL,然后添加基础 URL:
https://module-federation.io{path_without_md_extension}
示例:
/guide/start/index.md → https://module-federation.io/guide/start/index/configure/shared.md → https://module-federation.io/configure/shared/guide/runtime/runtime-api.md → https://module-federation.io/guide/runtime/runtime-api获取页面并阅读内容。
根据获取的内容进行回答。如果答案涉及多个页面(例如配置 + 运行时),则获取两者。每个问题加载的页面不要超过 3 个。
@module-federation/enhanced)——这与较旧的 Webpack 5 内置模块联邦不同每周安装量
89
代码仓库
GitHub 星标
2.5K
首次出现
2026年3月6日
安全审计
安装于
cursor89
kimi-cli87
gemini-cli87
amp87
github-copilot87
codex87
Answer Module Federation questions by fetching only the relevant documentation pages — not the entire docs.
Fetch the index to discover available pages and their descriptions:
https://module-federation.io/llms.txt
The index is in this format:
## Section Name
- [Page Title](/path/to/page.md): brief description of the page content
Read the page descriptions in the index and select the 1–3 pages most relevant to the user's question. Use the quick topic map below to narrow down candidates before reading descriptions.
Quick topic map:
| User asks about | Look in section |
|---|---|
| What is MF / concepts / glossary / getting started | Guide → start/ |
| CLI, CSS isolation, type hints, data fetching, prefetch | Guide → basic/ |
Runtime API, loadRemote, MF instance, runtime hooks | Guide → runtime/ |
| Build plugin setup for Webpack / Rspack / Rsbuild / Vite / Metro | Guide → build-plugins/ |
| Next.js / Modern.js / Angular / React integration | Guide → framework/ or Practice → frameworks/ |
| React Bridge / Vue Bridge / cross-framework rendering | Practice → bridge/ |
name, filename, exposes, remotes, shared, dts, manifest, shareStrategy | Configuration |
| Runtime plugins, retry plugin, custom plugin | Plugins |
| Performance, tree shaking, shared scopes | Guide → performance/ or Guide → advanced/ |
| Debug mode, Chrome DevTool, global variables | Guide → debug/ |
| Error messages, build errors, type errors | Guide → troubleshooting/ |
| Monorepo, Nx | Practice → monorepos/ |
| Deployment, Zephyr | Guide → deployment/ |
Construct the URL by removing the .md extension from the path in the index, then prepend the base URL:
https://module-federation.io{path_without_md_extension}
Examples:
/guide/start/index.md → https://module-federation.io/guide/start/index/configure/shared.md → https://module-federation.io/configure/shared/guide/runtime/runtime-api.md → https://module-federation.io/guide/runtime/runtime-apiFetch the page(s) and read the content.
Answer based on the fetched content. If the answer spans multiple pages (e.g., config + runtime), fetch both. Do not load more than 3 pages per question.
@module-federation/enhanced) — this is different from the older Webpack 5 built-in Module FederationWeekly Installs
89
Repository
GitHub Stars
2.5K
First Seen
Mar 6, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor89
kimi-cli87
gemini-cli87
amp87
github-copilot87
codex87
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
118,000 周安装
代码库搜索技能指南:精准查找函数、追踪依赖、理解架构与定位错误
10,900 周安装
screen-capture 截图工具 | 支持多平台(Claude, Gemini, Cursor等)的屏幕捕获技能
88 周安装
测试策略完整指南:单元/集成/E2E测试金字塔与自动化实践
11,200 周安装
响应式设计教程:移动优先CSS布局、Flexbox/Grid与图像优化实战指南
11,200 周安装
ArXiv 观察者 - 自动搜索、总结并追踪最新研究论文的 AI 工具 | 科研助手
88 周安装
API文档生成与管理指南:OpenAPI规范、Swagger使用教程与团队协作
11,700 周安装