# mf

A skill that handles Module Federation questions: config, shared dependencies, type and runtime errors, slow builds, observability.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 744 installs · ★ 4
- Author: module-federation
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/module-federation/agent-skills/tree/HEAD/skills/mf/SKILL.md
- Updated: 2026-08-26
- HTML: https://affpapa.org/en/nevibecode/skills/mf

## What it does

The `mf` skill parses your request and routes it to one reference file under `reference/`. Sub-commands are short: `docs`, `context`, `module-info`, `integrate`, `type-check`, `shared-deps`, `perf`, `config-check`, `bridge-check`, `runtime-error`, `observability`. Plain language works too. Mention a `traceId`, a `.mf/observability` path or a code like `RUNTIME-007` and the skill picks observability, even when another error code sits in the same message.

It then reads that file and follows its instructions, handing the leftover arguments over as `ARGS`. Browser work goes through Divebell. Raw CDP, a separately launched debug Chrome, Playwright and Puppeteer are all off the table next to it, so a team already running Playwright for browser tests keeps MF checks in a separate lane.

When no sub-command and no signal match, the skill prints the sub-command table and asks you to choose. Its tool list is fixed: file reads, `node`, `npx tsc`, `npx mf dts`, `curl`, `divebell`, plus file writes and edits.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add module-federation/agent-skills --skill mf -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mf/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mf/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add module-federation/agent-skills --skill mf -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mf/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add module-federation/agent-skills --skill mf -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mf/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install module-federation/agent-skills mf
```

2. **Manually: put the files in place**
- File: `.github/skills/mf/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add module-federation/agent-skills --skill mf -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/module-federation/agent-skills --path skills/mf
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mf/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add module-federation/agent-skills --skill mf -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/module-federation/agent-skills/tree/HEAD/skills/mf/SKILL.md

## When to use it
- make sense of an existing Module Federation config
- wire MF into a fresh or half-built app
- track down a type error in `@mf-types` and dts output
- find out why builds and HMR got slow
- decode a runtime code such as `RUNTIME-001`

## Example prompts
- Show me what MF is set up in this project: role, bundler, context
- Add Module Federation to this app and tell me which config keys change
- Pull an observability report for remote loading and walk me through the `traceId`

## Similar
- [rsbuild-v2-upgrade](https://affpapa.org/en/nevibecode/skills/rsbuild-v2-upgrade.md) — skill · 476 installs
- [microfrontends](https://affpapa.org/en/nevibecode/skills/microfrontends.md) — skill · 2 installs
- [nx-monorepo](https://affpapa.org/en/nevibecode/skills/nx-monorepo.md) — skill · 3700 installs
- [rsbuild-best-practices](https://affpapa.org/en/nevibecode/skills/rsbuild-best-practices.md) — skill · 2700 installs
- [kotlin-tooling-kotlin-toolchain](https://affpapa.org/en/nevibecode/skills/kotlin-tooling-kotlin-toolchain.md) — skill · 449 installs
- [check-bin-obj-clash](https://affpapa.org/en/nevibecode/skills/check-bin-obj-clash.md) — skill · 3400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
