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

Angular Architecture Micro Frontends Architecture

ASecurity

Evaluates and designs Angular micro-frontends architectures in Nx monorepos, focusing on organizational fit, shell and remote boundaries, shared library contracts, runtime integration risks, and delivery governance.

4 stars
0 votes
0 copies
0 views
Added 10/2/2026
developmenttypescriptgoshellangulartestingfrontendci/cd

Security Analysis

A100/100

Scanned 10/2/2026

$npx -y skills add janpereira-dev/ngAutoPilot --skill angular--architecture--micro-frontends-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Architecture Micro Frontends Architecture?

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

Security grade badge for Angular  Architecture  Micro Frontends Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-angular-architecture-micro-frontends-architecture-ngautopilot/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-angular-architecture-micro-frontends-architecture-ngautopilot)

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
---
id: angular.architecture.micro-frontends-architecture
name: Micro-frontends Architecture
description: >
  Evaluates and designs Angular micro-frontends architectures in Nx monorepos, focusing on organizational fit, shell and remote boundaries, shared library contracts, runtime integration risks, and delivery governance.
stack:
  - Angular
  - TypeScript
  - Nx
  - Module Federation
category: architecture
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
  - micro frontends
  - micro-frontends
  - microfrontend
  - micro frontend architecture
  - module federation
  - native federation
  - shell app
  - remote app
  - shell and remotes
  - bounded context architecture
  - distributed frontend
  - runtime composition
  - nx monorepo architecture
  - angular micro frontends
compatibility:
  angular:
    min: "2"
    signalInputsFrom: "17"
    recommendedModern: "17+"
---

# Micro-frontends Architecture

## Purpose

Use this skill to evaluate, design, or review Micro-frontends architectures for large frontend applications, especially in Angular and Nx monorepos.

Micro-frontends are an organizational architecture with technical consequences. They are useful only when team boundaries, domain boundaries, release independence, and delivery maturity justify the added complexity.

The core rule is simple:

```txt
If there is no real organizational independence, you probably do not need Micro-frontends.
You need better modular architecture.
```

## When to Use

Use this skill when:

- an application is large and split across multiple teams
- independent deployment is a real requirement
- a shell or container app is being proposed
- Module Federation, Native Federation, or iframe composition is under evaluation
- the repo is moving from a monolithic frontend to distributed feature ownership
- shared libraries, design systems, and integration contracts need architectural review
- Nx monorepo boundaries are drifting toward cross-domain coupling

## When Not to Use

Do not use this skill when:

- the application is small or maintained by one team
- the real issue is poor modularization inside one frontend
- lazy loading and feature libraries are sufficient
- there is no operational need for independent deployment
- the team does not have mature CI/CD, ownership, and E2E coverage
- the request is only about a shared library or design system

## Do

Evaluate the organization before the technology:

```txt
Teams -> Domains -> Ownership -> Delivery model -> Integration pattern
```

Keep business domains as the unit of decomposition:

```txt
Checkout
Catalog
Profile
Analytics
Billing
Claims
```

Keep the shell thin:

```txt
Shell responsibilities:
- routing
- composition
- layout
- authentication cross-cutting concerns
- error handling for remote loading
- shared navigation contracts
```

Document each MFE contract explicitly:

```txt
Name:
Domain:
Owner:
Route base:
Load mode:
Shared dependencies:
Inputs:
Outputs:
Events emitted:
Events consumed:
Fallback:
Versioning strategy:
Tests:
```

Prefer the simplest integration pattern that satisfies the delivery model:

```txt
1. Modular monolith with lazy loading
2. Build-time integration
3. Module Federation or Native Federation
4. iframe for strong isolation or legacy integration
```

Use shared libraries only for genuinely reusable contracts:

```txt
shared/ui
shared/domain
shared/data-access
shared/util
design-system
```

```mermaid
flowchart LR
  User([User]) --> Shell[Shell / Container App]

  Shell --> Route1[/Route: /checkout/]
  Shell --> Route2[/Route: /catalog/]
  Shell --> Route3[/Route: /profile/]

  Route1 --> CheckoutMFE[Checkout MFE]
  Route2 --> CatalogMFE[Catalog MFE]
  Route3 --> ProfileMFE[Profile MFE]

  Shell -. shared contract .-> SharedUI[shared/ui]
  Shell -. shared contract .-> SharedDomain[shared/domain]
  Shell -. shared contract .-> SharedData[shared/data-access]

  CheckoutMFE -. reads .-> SharedUI
  CatalogMFE -. reads .-> SharedUI
  ProfileMFE -. reads .-> SharedUI

  CheckoutMFE -. rules .-> SharedDomain
  CatalogMFE -. rules .-> SharedDomain
  ProfileMFE -. rules .-> SharedDomain

  CheckoutMFE -. persistence .-> SharedData
  CatalogMFE -. persistence .-> SharedData
  ProfileMFE -. persistence .-> SharedData

  CheckoutMFE -->|checkout.completed| Shell
  CatalogMFE -->|catalog.filtered| Shell
  ProfileMFE -->|profile.updated| Shell
```

## Do Not

Avoid decomposing by visual components:

```txt
Header
Button
Modal
Table
Footer
```

Avoid a shell that owns business rules from remotes.

Avoid shared libraries that inject domain services, stores, or routing decisions.

Avoid runtime federation without versioning, fallback, and smoke tests.

Avoid pretending distributed code is independent when all modules share one release train and one owner.

## Review Checklist

- [ ] There is a real organizational reason for Micro-frontends.
- [ ] Domains, not UI pieces, define boundaries.
- [ ] Each MFE has an owner and a contract.
- [ ] The shell stays thin and orchestration-only.
- [ ] Shared libraries are truly reusable and domain-agnostic.
- [ ] A clear integration pattern is chosen intentionally.
- [ ] CI/CD and E2E coverage exist for each integration boundary.
- [ ] Fallback behavior is defined for failed remote loading.
- [ ] Nx boundaries and tags support the intended architecture.
- [ ] The chosen architecture is simpler than the alternatives it replaces.

## Expected Output

1. Classify whether Micro-frontends are warranted.
2. Identify domain boundaries, ownership, and delivery constraints.
3. Recommend the simplest viable integration pattern.
4. Define shell, remote, and shared library contracts.
5. Call out operational risks, testing gaps, and fallback requirements.

Attribution

janpereira-devjanpereira-dev
View sourceSee grades on GitHubMore from janpereira-dev →
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

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →