skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
module-federation/core66 installs

mf-context

Collects the current project's Module Federation context (MFContext) and outputs a structured summary. Serves as the data foundation for all MF diagnostic Skills; can also be called standalone to quickly understand the project's MF configuration.

How do I install this agent skill?

npx skills add https://github.com/module-federation/core --skill mf-context
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is a diagnostic utility designed to collect and summarize Module Federation configuration from a local project. It reads project metadata, configuration files, and build artifacts to generate a structured overview without executing code or accessing external networks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1 file scanned · No issues

What does this agent skill do?

Collect the following information step by step from $ARGUMENTS (defaults to the current working directory if empty), then output the aggregated MFContext.

1. Basic Info

Read {projectRoot}/package.json and extract:

  • name: project name
  • Merge dependencies + devDependencies into a full dependency map

Detect the package manager (check files in order):

  • pnpm-lock.yaml → pnpm
  • yarn.lock → yarn
  • package-lock.json → npm

2. Bundler & MF Config

Find config files in the following priority order (.ts / .mts take precedence over .js / .mjs / .cjs):

PriorityFilename
1module-federation.config.{ts,mts,js,mjs,cjs}
2rsbuild.config.{ts,mts,js,mjs,cjs}
3rspack.config.{ts,mts,js,mjs,cjs}
4modern.config.{ts,mts,js,mjs,cjs}
5next.config.{ts,mts,js,mjs,cjs}
6webpack.config.{ts,js}

Read the first matched file and extract the remotes, exposes, and shared fields. Determine the bundler from the filename (rspack / rsbuild / webpack).

3. Determine MF Role

ConditionRole
Has remotes and exposeshost+remote
Only remoteshost
Only exposesremote
Neitherunknown

4. Recent Error Event (optional)

Check if .mf/diagnostics/latest.json exists; if so, read its contents.

5. Build Artifacts (optional)

Check if dist/mf-manifest.json and dist/mf-stats.json exist; if so, read them.


Aggregate the above information and output the MFContext summary in the following structure:

project:
  name, packageManager, mfRole

bundler:
  name, configFile

mfConfig:
  remotes, exposes, shared

dependencies:
  (list installed packages related to MF and their versions)

latestErrorEvent: (if present)
buildArtifacts:   (if present)

For further diagnostics, call the corresponding diagnostic Skill based on this context.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/module-federation/core/mf-context">View mf-context on skillZs</a>