mf-docs

SKILL.md

Module Federation Docs Assistant

Answer Module Federation questions by fetching only the relevant documentation pages — not the entire docs.

Steps

1. Fetch the documentation index

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

2. Identify the relevant page(s)

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 Guidestart/
CLI, CSS isolation, type hints, data fetching, prefetch Guidebasic/
Runtime API, loadRemote, MF instance, runtime hooks Guideruntime/
Build plugin setup for Webpack / Rspack / Rsbuild / Vite / Metro Guidebuild-plugins/
Next.js / Modern.js / Angular / React integration Guideframework/ or Practiceframeworks/
React Bridge / Vue Bridge / cross-framework rendering Practicebridge/
name, filename, exposes, remotes, shared, dts, manifest, shareStrategy Configuration
Runtime plugins, retry plugin, custom plugin Plugins
Performance, tree shaking, shared scopes Guideperformance/ or Guideadvanced/
Debug mode, Chrome DevTool, global variables Guidedebug/
Error messages, build errors, type errors Guidetroubleshooting/
Monorepo, Nx Practicemonorepos/
Deployment, Zephyr Guidedeployment/

3. Fetch the specific page(s)

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.mdhttps://module-federation.io/guide/start/index
  • /configure/shared.mdhttps://module-federation.io/configure/shared
  • /guide/runtime/runtime-api.mdhttps://module-federation.io/guide/runtime/runtime-api

Fetch the page(s) and read the content.

4. Answer the question

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.

Important notes

  • Always fetch the index first — never guess page paths from memory
  • If the index descriptions are insufficient to identify the right page, fetch the most likely candidate and check its content
  • The docs cover MF 2.0 (@module-federation/enhanced) — this is different from the older Webpack 5 built-in Module Federation
  • Next.js support is deprecated; inform the user if they ask about it
Weekly Installs
52
GitHub Stars
2.5K
First Seen
9 days ago
Installed on
cursor52
kimi-cli50
gemini-cli50
amp50
github-copilot50
codex50