Module Federation for AI

Helping AI Understand MF 2.0

Most AI models have a training data cutoff in early 2024, which means their knowledge of Module Federation 2.0 is limited or inaccurate. The following resources help AI get accurate, up-to-date MF 2.0 knowledge.

llms.txt

module-federation.io supports the llms.txt standard, allowing AI systems to use it as a knowledge base.

You can pass the following URL directly to an AI Agent so it fetches the latest documentation before answering:

https://module-federation.io/llms.txt

Markdown Docs

Every page on the documentation site is available in plain Markdown — replace the .html extension at the end of any URL with .md to get a version that AI can read directly:

# Example: replace the HTML version
https://module-federation.io/guide/basic/runtime.html

# with the Markdown version
https://module-federation.io/guide/basic/runtime.md

Quick Prompt

For one-off questions, prepend the following to your message so the AI consults the docs before answering:

Before answering, please read https://module-federation.io/llms.txt to learn about the latest Module Federation 2.0 documentation, then answer my question.

mf-docs Skill

If you use an AI editor that supports Skills (Claude Code, Cursor, Windsurf, etc.), install the mf-docs skill — it automatically fetches the latest docs from module-federation.io before every MF-related answer, with no manual copy-pasting required:

npx skills add module-federation/core --skill mf-docs -y

Then trigger it directly:

/mf-docs What's the difference between singleton and requiredVersion in shared?

Agent Skills

If you use an AI editor such as Claude Code, Cursor, or Windsurf, you can install MF Agent Skills — a set of pre-built instruction sets that give AI the ability to handle MF 2.0-specific tasks, including:

  • Fetching the latest docs in real time to answer configuration questions
  • Adding Module Federation to an existing project in one command
  • Diagnosing type errors, shared dependency conflicts, and config issues
  • Inspecting remote module information

👉 View Agent Skills documentation