Shared Domain Library Contract
Installation
SKILL.md
Shared Domain Library Contract
Purpose
Use this skill to audit or design Angular shared domain libraries in Nx monorepos.
A shared domain library must behave as a reusable source of business concepts, not as a dumping ground for UI helpers, transport adapters, or feature orchestration. It should expose entities, value objects, policies, rules, and domain-level invariants that can be shared across multiple features or data-access layers without leaking infrastructure or presentation concerns.
The core rule is simple:
Domain libraries define concepts and rules.
Data-access libraries implement transport and persistence.
Feature libraries orchestrate workflows.
UI libraries render and emit intent.