Back to skills
SKILL.md
Angular Microfrontends Micro Frontends Dependency Sharing Policy
ASecurityControl which libraries may be shared across Angular micro-frontends and prevent domain leakage through shared packages.
- 4 stars
- 0 votes
- 0 copies
- 0 views
- Added October 2, 2026
Security analysis
100/100npx -y skills add janpereira-dev/ngAutoPilot --skill angular--microfrontends--micro-frontends-dependency-sharing-policy --agent claude-codeAre you the author of Angular Microfrontends Micro Frontends Dependency Sharing Policy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/janpereira-dev-angular-microfrontends-micro-frontends-dependency)---
id: angular.microfrontends.micro-frontends-dependency-sharing-policy
name: Micro-frontends Dependency Sharing Policy
description: Control which libraries may be shared across Angular micro-frontends and prevent domain leakage through shared packages.
stack:
- Angular
- TypeScript
- Nx
- Module Federation
category: architecture
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
- dependency sharing
- shared libraries
- domain leakage
- micro fronts dependency sharing
- micro-frontends dependency sharing
- dependency sharing policy
- shared singleton policy
- bundle duplication risk
- shared dependency alignment
- shared library boundaries
- module federation shared dependencies
- micro frontends dependencies
compatibility:
angular:
min: "2"
signalInputsFrom: "17"
recommendedModern: "17+"
---
# Micro-frontends Dependency Sharing Policy
Use this skill to decide what may be shared between shell and remotes.
## Core Rule
```txt
Share contracts, not domain ownership.
```
## Safe Shares
- shared/ui
- shared/domain
- shared/data-access
- shared/util
- design-system
## Purpose
Allow only contracts that are safe to share across remotes.
## When to Use
Use this skill when deciding what a shell and remotes may share.
## Do
- share contracts, not ownership
- block domain services from shared libraries
- keep singleton candidates intentionally small
- review bundle duplication before broad sharing
## Do Not
- leak remote-private state into shared packages
- introduce hidden singleton coupling
## Review Checklist
- [ ] Safe shared libraries are identified.
- [ ] Blocked shared libraries are explicit.
- [ ] Dependency drift risks are described.
- [ ] The sharing policy is minimal.
## Avoid
- remote-private services in shared libraries
- domain state leaking across remotes
- hidden runtime coupling through singleton services
## Expected Output
Return:
1. Shared libraries that are acceptable.
2. Shared libraries that should be blocked.
3. Dependency drift risks.
4. A minimal sharing policy.
Attribution
Comments
Loading comments…