mf-context

Collect and aggregate Module Federation context from project and bundler configurations.

2.6k|423|Updated Oct 24, 2020
One-click install
npx skills add https://github.com/module-federation/core --skill mf-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mf-context
Source: https://github.com/module-federation/core/tree/main/skills/mf-context
Command: npx skills add https://github.com/module-federation/core --skill mf-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers quickly understand the Module Federation configuration and context of their project, serving as a foundational step for diagnosing issues.

Core Features & Use Cases

  • Context Aggregation: Gathers essential information about project dependencies, bundler configuration, Module Federation settings (remotes, exposes, shared), and build artifacts.
  • Role Determination: Automatically identifies the project's role within a Module Federation architecture (host, remote, host+remote, or unknown).
  • Diagnostic Foundation: Provides structured data that can be used by other diagnostic Skills to pinpoint problems.

Quick Start

Collect the Module Federation context for the current project.

Frequently Asked Questions about mf-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Module Federation configuration and role in a project?

It collects project basic info, parses bundler configuration files to extract Module Federation settings like remotes and exposes, and determines the MF role as host, remote, host+remote, or unknown.

What is Module Federation context aggregation used for?

Module Federation context aggregation gathers project dependencies, bundler settings, MF roles, and build artifacts into structured data, serving as a diagnostic foundation to quickly understand your micro-frontend setup.

Can I identify if my project is a host or remote in a micro-frontend architecture?

Yes, the MF role is determined by analyzing the 'remotes' and 'exposes' fields in your bundler configuration, automatically identifying the project as a host, remote, host+remote, or unknown.

How do I diagnose micro-frontend build errors and configuration issues?

To diagnose micro-frontend build errors, collect structured context data including recent error events, build artifacts, and Module Federation settings, which provides the foundational information required to pinpoint configuration problems.

Does Module Federation context aggregation work with different bundlers and package managers?

Yes, it works with different bundlers and package managers by analyzing package.json to identify the package manager and parsing various bundler configuration files to accurately extract Module Federation settings.