Skip to content

feat: agent skills#4491

Merged
2heal1 merged 13 commits intomainfrom
feat/skill
Mar 6, 2026
Merged

feat: agent skills#4491
2heal1 merged 13 commits intomainfrom
feat/skill

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Mar 3, 2026

Summary

Introduces a set of Agent Skills for Module Federation 2.0 — loadable instruction sets for AI coding assistants (Claude Code, Cursor, Windsurf, etc.) that give them built-in knowledge of MF internals, enabling configuration diagnosis, type fixes, and dependency troubleshooting directly inside the editor.

9 skills added:

Directory Skill Name Use Case
mf-docs/ mf-docs Real-time MF 2.0 docs assistant — answers questions by fetching live docs from module-federation.io
mf-context/ mf-context Collects project MF configuration context; the data foundation for all diagnostic Skills
mf-module-info/ mf-module-info Fetch a remote module's full info (publicPath, remoteEntry, exposes/remotes/shared from mf-manifest.json)
mf-integrate/ mf-integrate Integrate Module Federation into an existing project — generates config for provider / consumer, supports Rsbuild / Rspack / Webpack / Modern.js / Next.js / Vite
mf-type-check/ mf-type-check Type file generation failures, remote types not pulled, tsconfig paths missing
mf-shared-deps/ mf-shared-deps shared/externals conflicts, antd/arco transformImport blocking sharing, multiple versions in build artifacts
mf-perf/ mf-perf Slow HMR, slow build speed, DTS bottleneck (includes guided ts-go migration)
mf-config-check/ mf-config-check Wrong MF plugin for bundler, missing asyncStartup, exposes key/path errors
mf-bridge-check/ mf-bridge-check Non-standard Bridge API usage, sub-app integration issues

Installation:

npx skills add module-federation/core

Docs: Added zh/en AI Skills documentation pages under docs/guide/ai-skills/

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 3, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 94fa93c
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69aa83de03db5a000891e616
😎 Deploy Preview https://deploy-preview-4491--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 3, 2026

🦋 Changeset detected

Latest commit: 94fa93c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
@module-federation/devtools Patch
@module-federation/runtime Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/modern-js-v3 Patch
@module-federation/retry-plugin Patch
@module-federation/data-prefetch Patch
@module-federation/rsbuild-plugin Patch
@module-federation/error-codes Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/runtime-core Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/rspress-plugin Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/metro Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
website-new Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc8c52e1e6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


if (!remoteEntry) {
const remotes = (ctx.mfConfig && ctx.mfConfig.remotes) || {};
const remoteValue = remotes[moduleName];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Support MFContext remote arrays in module lookup

This lookup treats mfConfig.remotes as a name-keyed object, but the new MFContext contract in this commit models remotes as an array of entries (MFConfigInfo.remotes) and runtime context generation also emits arrays. When the script receives that valid context shape, remoteValue is always undefined and mf-module-info reports Remote "<name>" not found, so consumer-mode resolution fails even though the remote is present.

Useful? React with 👍 / 👎.


function checkMultiVersion(ctx, results) {
const artifacts = ctx.buildArtifacts || {};
const manifest = artifacts.mfManifest;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Read manifest from the documented buildArtifacts key

The multi-version detector reads ctx.buildArtifacts.mfManifest, but the context schema added in this change uses buildArtifacts.manifest (and the mf-context skill describes populating that manifest field from dist/mf-manifest.json). With correctly shaped context input, this value is undefined, so the check returns early and never reports duplicated shared-package versions.

Useful? React with 👍 / 👎.

@Nsttt
Copy link
Copy Markdown
Member

Nsttt commented Mar 4, 2026

Yo this is awesome

2heal1 and others added 4 commits March 5, 2026 10:59
# Conflicts:
#	apps/website-new/module-federation.config.ts
#	packages/error-codes/package.json
#	packages/error-codes/project.json
#	packages/error-codes/src/desc.ts
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 6, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@b319d9f

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@b319d9f

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@b319d9f

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@b319d9f

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@b319d9f

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@b319d9f

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@b319d9f

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@b319d9f

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@b319d9f

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@b319d9f

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@b319d9f

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@b319d9f

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@b319d9f

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@b319d9f

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@b319d9f

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@b319d9f

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@b319d9f

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@b319d9f

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@b319d9f

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@b319d9f

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@b319d9f

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@b319d9f

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@b319d9f

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@b319d9f

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@b319d9f

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@b319d9f

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@b319d9f

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@b319d9f

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@b319d9f

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@b319d9f

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@b319d9f

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@b319d9f

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@b319d9f

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@b319d9f

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@b319d9f

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@b319d9f

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@b319d9f

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@b319d9f

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@b319d9f

commit: b319d9f

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Bundle Size Report

8 package(s) changed, 33 unchanged.

Package Total dist Delta ESM gzip Delta
error-codes 24.3 kB +11.7 kB (+92.4%) 196 B +3 B (+1.6%)
runtime-core 249.3 kB +4.4 kB (+1.8%) 477 B +3 B (+0.6%)
vue3-bridge 140.6 kB +2.3 kB (+1.7%) 21.5 kB +303 B (+1.4%)
bridge-react 357.6 kB +698 B (+0.2%) 1.3 kB +5 B (+0.4%)
runtime 16.6 kB -522 B (-3.0%) 616 B -18 B (-2.8%)
rspress-plugin 11.3 kB +496 B (+4.5%) 2.9 kB +71 B (+2.5%)
enhanced 840.7 kB +361 B (+0.0%) 712 B no change
dts-plugin 297.3 kB +205 B (+0.1%) 4.3 kB -1 B (-0.0%)

Total dist: 6.37 MB (+19.6 kB (+0.3%))
Total ESM gzip: 79.2 kB (+366 B (+0.5%))

@2heal1 2heal1 merged commit 94de418 into main Mar 6, 2026
24 checks passed
@2heal1 2heal1 deleted the feat/skill branch March 6, 2026 07:47
@2heal1 2heal1 mentioned this pull request Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants