Creating an Nx Library

SkillDev tools

Use when the user asks to create a new Nx library in this workspace.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Creating an Nx Library skill

What this skill tells your AI

The instructions your AI receives, as published by fabiangosebrink/dog-rate-app in .claude/skills/create-nx-library/SKILL.md and read by ahel’s review.

When creating a new library, keep our architecture intact:

  • Generate the library with the Nx Angular generator under the correct folder: feature and route libraries under libs/<scope>/, domain logic under libs/<scope>/domain, presentational components under libs/<scope>/ui, and utilities shared across the workspace under libs/shared.
  • Immediately set the tags in the new project.json using BOTH a scope and a type tag:
    • scope: is the area the library belongs to, e.g. scope:dogs, scope:about or scope:shared.
    • type: is the kind of library: type:container, type:domain, type:ui or type:util.
  • Respect the existing boundaries: a type:container may depend on type:domain, type:ui and type:util; a type:domain may only depend on type:util; a scope:dogs library may only depend on scope:dogs and scope:shared.
  • After generating, run nx run-many -t lint (or the affected variant) to confirm no module boundary rule is violated.

Example tags

{
  "name": "dogs-ui",
  "tags": ["type:ui", "scope:dogs"]
}

Signals

GitHub stars
99
Forks
11
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
create-nx-library
Source
github.com/fabiangosebrink/dog-rate-app