Skip to content

Commit 791490d

Browse files
authored
Merge branch 'main' into fix/rspack-provide-external-runtime
2 parents dcb3dbb + b3ba875 commit 791490d

File tree

50 files changed

+2905
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2905
-99
lines changed

.changeset/gentle-news-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/devtools': patch
3+
---
4+
5+
feat(chrome-devtools): add diagnostic messaging and UI enhancements for error handling

apps/website-new/docs/en/guide/_meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@
4848
"type":"dir-section-header",
4949
"name":"troubleshooting",
5050
"label":"Troubleshooting"
51+
},
52+
{
53+
"type": "dir-section-header",
54+
"name": "ai",
55+
"label": "AI"
5156
}
5257
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["index", "skill"]
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Module Federation for AI
2+
3+
## Helping AI Understand MF 2.0
4+
5+
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.
6+
7+
### llms.txt
8+
9+
[module-federation.io](https://module-federation.io) supports the [llms.txt](https://llmstxt.org) standard, allowing AI systems to use it as a knowledge base.
10+
11+
You can pass the following URL directly to an AI Agent so it fetches the latest documentation before answering:
12+
13+
```
14+
https://module-federation.io/llms.txt
15+
```
16+
17+
### Markdown Docs
18+
19+
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:
20+
21+
```
22+
# Example: replace the HTML version
23+
https://module-federation.io/guide/basic/runtime.html
24+
25+
# with the Markdown version
26+
https://module-federation.io/guide/basic/runtime.md
27+
```
28+
29+
### Quick Prompt
30+
31+
For one-off questions, prepend the following to your message so the AI consults the docs before answering:
32+
33+
```
34+
Before answering, please read https://module-federation.io/llms.txt to learn about the latest Module Federation 2.0 documentation, then answer my question.
35+
```
36+
37+
### mf-docs Skill
38+
39+
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:
40+
41+
```bash
42+
npx skills add module-federation/core --skill mf-docs -y
43+
```
44+
45+
Then trigger it directly:
46+
47+
```
48+
/mf-docs What's the difference between singleton and requiredVersion in shared?
49+
```
50+
51+
---
52+
53+
## Agent Skills
54+
55+
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:
56+
57+
- Fetching the latest docs in real time to answer configuration questions
58+
- Adding Module Federation to an existing project in one command
59+
- Diagnosing type errors, shared dependency conflicts, and config issues
60+
- Inspecting remote module information
61+
62+
👉 [View Agent Skills documentation](./skill)

0 commit comments

Comments
 (0)