Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Micro Frontends Pro

ASecurity

Architect micro-frontends: module federation, single-spa, routing, shared dependencies, and team autonomy patterns. Use for large apps split across teams.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsrustgoshellreactvueangulartestingapifrontendci/cd

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill micro-frontends-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Micro Frontends Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Micro Frontends Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-micro-frontends-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-micro-frontends-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: micro-frontends-pro
description: Architect micro-frontends: module federation, single-spa, routing, shared dependencies, and team autonomy patterns. Use for large apps split across teams.
category: web-development
---

# Micro-Frontends Pro

A practical guide to micro-frontends: splitting a large frontend across teams — integration approaches (Module Federation, single-spa, iframes, web components), shared dependencies, routing, and the organizational patterns that make it work.

## Overview

Micro-frontends apply microservices thinking to UI: **independently deployable frontend slices owned by different teams**, composed into one product. The technical challenge is integration (how slices compose at runtime); the real challenge is organizational ( Conway's law, contracts, versioning). Only adopt when team scale demands it — the complexity tax is real.

## When to use

- Large products with multiple teams stepping on each other's deploys.
- Incremental migration (strangler fig) from a legacy frontend.
- Truly independent team ownership of product areas.
- NOT for: small teams, simple products, or "it sounds cool" (a modular monolith is better).

## Core concepts

- **Integration approaches.**
  - **Module Federation (webpack):** remotes expose modules consumed at runtime; shared deps deduped. Best for webpack-based teams wanting deep integration.
  - **single-spa:** framework-agnostic orchestrator; apps mount/unmount on routes. Good for mixing frameworks (React + Vue + Angular).
  - **Web components:** framework-agnostic custom elements as the composition contract. Simple, standards-based.
  - **Iframes:** strongest isolation (separate JS heap, CSS), weakest UX integration (sizing, routing, communication via postMessage). Use for untrusted/third-party content, not first-party decomposition.
  - **Build-time composition:** monorepo packages composed at build — "micro-frontends" in team ownership only. Often the pragmatic sweet spot.
- **Routing.** Shell owns top-level routing; remotes own sub-routes. Contract: who handles `/billing/*` vs `/billing/settings`. Deep-linking must work across the composition.
- **Shared dependencies.** Singleton sharing (React, router, design system) — version alignment is the #1 integration bug source. Either strict alignment or tolerate duplication deliberately.
- **Communication.** Custom events / pub-sub bus for cross-slice messaging (cart updated, user logged out); URL as shared state where possible; avoid direct imports between slices.
- **Contracts.** Versioned APIs between shell and remotes (props/events, route params). Breaking changes need coordination — contracts don't eliminate coupling, they make it explicit.
- **Deployment independence.** Each slice deploys on its own cadence; the shell references remotes by URL (versioned). Rollback per slice.

## Practical workflow

**1. Decide if you need it.** Signals for yes: 4+ teams, deploy conflicts weekly, parts of the app on different frameworks, legacy strangulation. Otherwise: modular monolith.

**2. Choose the integration.**
- Same framework (React everywhere) → Module Federation.
- Mixed frameworks → single-spa or web components.
- Third-party/untrusted → iframes.
- Team ownership without runtime composition → build-time packages.

**3. Define the shell.** Shell responsibilities: authentication, top-level routing, layout chrome (nav, footer), shared design system, error boundaries per slice (one slice crashing ≠ whole app down).

**4. Module Federation sketch.**
```js
// shell webpack config
new ModuleFederationPlugin({
  name: 'shell',
  remotes: { billing: 'billing@/billing/remoteEntry.js', search: 'search@/search/remoteEntry.js' },
  shared: { react: { singleton: true, requiredVersion: '^18.0.0' }, 'react-dom': { singleton: true } },
});
// usage: const BillingApp = React.lazy(() => import('billing/App'));
```

**5. Contracts & versioning.** Document each remote's mount contract (props in, events out, routes owned). Version remotes; shell pins versions; canary new remote versions independently.

**6. Independent CI/CD.** Each slice: own repo (or monorepo package), own pipeline, own deploy. Contract tests (does the remote still expose what the shell expects?) in CI.

## Common pitfalls

- **Adopting too early.** 2 teams + micro-frontends = distributed monolith pain with none of the benefits. Earn the complexity with scale.
- **Shared dependency skew.** Shell on React 18.2, remote on 18.0, non-singleton → duplicate Reacts → hooks errors. Align strictly or isolate fully.
- **No error isolation.** One remote's crash whitescreens the shell. Error boundaries per remote; fallback UI; failed-remote retry.
- **Inconsistent UX.** Each team inventing its own patterns = franken-app. Shared design system (components, tokens, motion) is mandatory, not nice-to-have.
- **Chatty cross-slice coupling.** Remotes importing each other's internals recreates the monolith with network hops. Communicate via events/URLs, not imports.
- **Routing conflicts.** Two slices claiming overlapping routes; back-button breaking across remotes. Single routing authority (the shell) with delegated sub-routes.
- **Performance death by composition.** 5 remotes × framework runtime + duplicated deps = slow. Audit the composed bundle; share aggressively; lazy-load remotes by route.
- **Testing gaps.** Unit tests per slice, but no integration tests of the composition. Contract tests + E2E across the composed app in CI.
- **Version drift.** Shell expecting remote v2 API, remote deployed v3. Pin versions; canary; keep backward compatibility windows.
- **Ignoring the monolith option.** A well-modularized monolith with team-owned directories and independent deploy pipelines (feature flags) solves 80% of cases with 20% of the complexity.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →