Skip to content

feat: one skill#4592

Merged
2heal1 merged 4 commits intomainfrom
feat/one-skill
Mar 26, 2026
Merged

feat: one skill#4592
2heal1 merged 4 commits intomainfrom
feat/one-skill

Conversation

@2heal1
Copy link
Member

@2heal1 2heal1 commented Mar 26, 2026

Description

This PR updates the website docs and skill structure around AI onboarding for Module Federation.

It makes AI a more visible starting point in the Chinese docs, changes the quick start entry to guide users toward letting their agent read the docs first, and updates the AI/Skills pages to reflect the current unified mf skill model.

It also consolidates the previous MF skills into a single skills/mf directory, folds the browser capture helper into the main mf skill, and updates runtime troubleshooting guidance so RUNTIME-001 / RUNTIME-008 can use built-in browser capture while other runtime codes fall back to docs lookup.

Documentation changes included:

  • zh AI page rewritten as a clearer onboarding entry
  • zh Skills page rewritten to describe one unified /mf entry
  • en AI page updated to match the new onboarding direction
  • en Skills page updated to match the unified mf skill structure
  • homepage quick start button now points to the AI page
  • start navigation reordered to surface AI/Skills earlier
  • quick start page updated to use /mf integrate
  • runtime troubleshooting docs updated to use 2.3.0 as the version boundary for vague RUNTIME-008 reporting

Related Issue

N/A

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

2heal1 added 2 commits March 26, 2026 14:53
…ation

- Implemented config-exposes-check.js to validate exposes configuration in module federation.
- Created module-info.js to fetch and display information about remote modules.
- Added performance-check.js to provide performance-related recommendations for bundlers.
- Developed shared-config-check.js to identify conflicts between shared and external dependencies.
- Introduced type-check.js to validate TypeScript configuration and type generation status.
@changeset-bot
Copy link

changeset-bot bot commented Mar 26, 2026

⚠️ No Changeset found

Latest commit: e11c576

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@netlify
Copy link

netlify bot commented Mar 26, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit e11c576
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69c4e832e02d2c0008619ce7
😎 Deploy Preview https://deploy-preview-4592--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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 26, 2026

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/data-prefetch

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js

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

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

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

@module-federation/native-federation-typescript

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

@module-federation/nextjs-mf

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

@module-federation/node

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

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

@module-federation/utilities

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: e11c576

@github-actions
Copy link
Contributor

github-actions bot commented Mar 26, 2026

Bundle Size Report

10 package(s) changed, 30 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/cli 26.7 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 473.2 kB no change 3.9 kB no change
@module-federation/enhanced 812.0 kB no change 672 B no change
@module-federation/managers 69.9 kB no change 334 B no change
@module-federation/manifest 138.4 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 189.2 kB no change 217 B no change
@module-federation/storybook-addon 77.1 kB no change 100 B no change
@module-federation/utilities 110.6 kB no change 328 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB -34 B (-1.4%) 2.3 kB -34 B (-1.4%)
@module-federation/core 1.1 kB -33 B (-2.9%) 1.0 kB -32 B (-3.0%)
@module-federation/devtools 20.8 kB -27 B (-0.1%) 20.8 kB -27 B (-0.1%)
@module-federation/enhanced 2.6 kB -47 B (-1.7%) 2.6 kB -47 B (-1.7%)
@module-federation/managers 2.4 kB -29 B (-1.2%) 2.4 kB -29 B (-1.2%)
@module-federation/manifest 6.2 kB -41 B (-0.6%) 6.2 kB -41 B (-0.6%)
@module-federation/metro-plugin-rnc-cli 411 B -26 B (-5.9%) 411 B -26 B (-5.9%)
@module-federation/node 9.2 kB -30 B (-0.3%) 9.2 kB -30 B (-0.3%)
@module-federation/storybook-addon 1.9 kB -26 B (-1.3%) 1.7 kB -26 B (-1.4%)
@module-federation/utilities 2.6 kB -34 B (-1.3%) 2.6 kB -34 B (-1.3%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 19.8 kB -22 B (-0.1%) 20.8 kB -20 B (-0.1%) +1.0 kB +2 B

Total dist (raw): 6.32 MB (no change)
Total ESM gzip: 73.7 kB (no change)
Total web bundle (gzip): 178.5 kB (-327 B (-0.2%))
Total node bundle (gzip): 179.0 kB (-326 B (-0.2%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.8 kB (no change)
Tracked ./bundler node bundle (gzip): 4.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

Copy link

@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: b3fbe912ee

ℹ️ 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".

Comment on lines +559 to +563
session.close();
tab = newTarget;
session = new Session(tab.webSocketDebuggerUrl);
await session.open();
await Promise.all([

Choose a reason for hiding this comment

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

P1 Badge Re-register CDP listeners after switching to a new tab

When --click opens a new tab, this block replaces session with a fresh Session instance, but none of the Runtime.consoleAPICalled, Runtime.exceptionThrown, Network.*, or Log.entryAdded listeners that populate logs/network-idle state are attached to the new session. In the default followNewTab path, captures after the tab switch can miss runtime/network errors and report misleadingly clean results.

Useful? React with 👍 / 👎.

Prefer this baseline command first:

```bash
node ../scripts/browser-capture.mjs "<failing-page-url>" 20000 --vars __FEDERATION__,__webpack_require__,window.__FEDERATION__

Choose a reason for hiding this comment

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

P2 Badge Use the skill-root script path in runtime-error commands

The runtime-error guidance points to ../scripts/browser-capture.mjs, but this skill’s scripts live under skills/mf/scripts and other sub-skills invoke them as node scripts/... from the skill root. In that execution context, ../scripts/... resolves to a non-existent path, so the automatic browser-capture flow fails before diagnosis starts.

Useful? React with 👍 / 👎.

'Quit Chrome and relaunch with remote debugging (macOS):\n' +
' CHROME=$(find /Applications ~/Applications -name "Google Chrome" -path "*/MacOS/Google Chrome" 2>/dev/null | head -1)\n' +
' killall "Google Chrome" 2>/dev/null; sleep 1\n' +
' "$CHROME" --remote-debugging-port=9222 --user-data-dir="$HOME/Library/Application Support/Google/Chrome" &\n\n' +

Choose a reason for hiding this comment

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

P2 Badge Launch Chrome with a non-default profile in fallback instructions

The connection-error fallback tells users to relaunch Chrome with --user-data-dir="$HOME/Library/Application Support/Google/Chrome", which is the default profile directory and is rejected by modern Chrome for remote debugging. On first-run failures this advice loops users back into the same error instead of enabling CDP.

Useful? React with 👍 / 👎.

@2heal1 2heal1 merged commit 7e15983 into main Mar 26, 2026
28 checks passed
@2heal1 2heal1 deleted the feat/one-skill branch March 26, 2026 08:43
@2heal1 2heal1 mentioned this pull request Mar 26, 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.

1 participant