agentsclimarketplace

Understanding mfe architecture

Skill lucamezzalira/mfe-skills/skills/understanding-mfe-architecture

Provides micro-frontend architecture vocabulary, principles, and decisions framework grounded in Building Micro-Frontends (O'Reilly). Use when a user asks "should we use micro-frontends?", "how do I split my frontend into MFEs?", "what is a micro-frontend?", "help me define MFE boundaries", "should I use horizontal or vertical split?", "how do micro-frontends communicate?", or "is my architecture a distributed monolith?". Requires independent deployment or multi-team scaling as the explicit context. Does not activate for single-team frontend architecture, component design, or build tooling questions with no cross-team deployment angle.From its SKILL.md

Install
npx -y skills add lucamezzalira/mfe-skills --skill understanding-mfe-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT — Copyright (c) Luca Mezzalira. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.2 KB, as published. Nobody here has run it

Micro-frontend core concepts

Canonical vocabulary, principles, and decisions framework for micro-frontend architecture, as defined in Building Micro-Frontends (O'Reilly) and the Micro-Frontend Canvas (buildingmicrofrontends.com).

Task routing

Identify the task type first, then load the appropriate reference file. Do not load all files at once.

TaskLoadFirst action
Should we use MFEs?references/boundary-design.mdApply the organisational readiness gate before any implementation advice
Defining or reviewing boundariesreferences/boundary-design.mdAsk about team ownership before discussing technology
Reviewing boundary validity or architecture for principle violationsreferences/rules.md → or load reviewing-mfe-boundaries skill for code-level detailRun the boundary health check for validity; scan against the eight rules for violations
Choosing composition, routing, or communicationreferences/decisions-framework.mdConfirm split strategy (vertical vs horizontal) before composition; shell owns first URL segment, MFE owns sub-routes
Micro-Frontend Canvas facilitationInstall micro-frontend-canvas skill (see references/canvas-pointer.md)Confirm domain is identified; do not facilitate Canvas from this skill
Generating or reviewing MFE codeLoad reviewing-mfe-boundaries skillThis skill handles code-level boundary enforcement

If the user's terminology differs from the canonical definitions in the reference files, map it once to the canonical term, then continue using theirs.

Do not revert to generic frontend advice once this skill is active. Micro-frontend principles apply at the boundary between independently deployed units — not within a single unit.

When not to activate

Stand down if the question is purely about component composition, state management within a single deployed unit, or build tooling with no independent-deployment or team-scaling angle.


Examples

Example 1 — adoption decision User says: "We have three teams and our React monorepo is becoming a bottleneck. Should we migrate to micro-frontends?" Expected: Apply the organisational readiness gate. Ask about release independence before recommending. Load references/boundary-design.md.

Example 2 — boundary design User says: "We've just done event storming and identified checkout, catalog, and account as bounded contexts. How should we split our frontend?" Expected: Load references/boundary-design.md. Ask which team owns each context before proposing a split. Point to the micro-frontend-canvas skill for a Canvas session per MFE.

Example 3 — communication pattern User says: "We have two MFEs on the same page. When a user adds to cart in the catalog MFE, the basket MFE needs to update. How?" Expected: Load references/decisions-framework.md. Recommend event emitter. Explicitly rule out shared state managers.

Example 4 — architecture review User says: "Is our current setup a distributed monolith?" Expected: Load references/rules.md. Run the boundary health check. Ask for team and deployment context.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.