mcpField
N
nx

nx

github.com/oguzhan18Development7170 installsUpdated 31w ago
Repository

About nx

A reference skill for teams building and maintaining Nx workspaces, including monorepos and polyglot projects. It covers generators, affected-task execution, shared libraries, and workspace configuration.

Key features

  1. 01Organize projects by domain
  2. 02Generate consistent workspace code
  3. 03Run tasks only for affected projects
  4. 04Share libraries across projects
  5. 05Configure task dependencies and settings
  6. 06Support polyglot workspaces

Use cases

  1. 01Scaffold libraries and components
  2. 02Build, test, or lint changed projects
  3. 03Reduce duplicated utilities across apps
  4. 04Coordinate task order in a workspace

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill nx

After installing, type/nxin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/discussions/
_INDEX.md
references/docs/
_INDEX.md
references/issues/
_INDEX.md
references/releases/
_INDEX.md

Details

From the project README

Nx (Smart, Fast, Extensible Build System)

Version: 22.x (2025) Tags: Monorepo, Build System, Angular, React, Node

References: Docs — guides, tutorials • GitHub • Enterprise Patterns Book

API Changes

This section documents recent version-specific API changes.

  • NEW: TypeScript Project References — Faster builds and type checks using modern TypeScript setup source

  • NEW: pnpm catalog support — Manage single version policy with pnpm catalogs source

  • NEW: Angular Rspack support — Fast bundler for Angular projects source

  • NEW: AI Agent integration — Code mode for better LLM context management source

  • NEW: Polyglot workspaces — Native support for Gradle, Maven, .NET alongside JS/TS projects

Best Practices

  • Use domain-based folder structure — Group projects by business domain
libs/
├── auth/
│   ├── feature-login/
│   └── data-access/
├── products/
│   ├── feature-list/
│   └── ui/
└── shared/
    ├── ui/
    └── utils/
  • Use Nx generators — Scaffold consistent code across workspace
# Create new library
nx g @nx/angular:library --name=shared-data-access --directory=libs/shared/data-access

# Create new feature
nx g @nx/angular:component --name=user-profile --project=my-app
  • Use affected commands — Only run tasks on changed projects
nx affected:build     # Build only changed projects
nx affected:test      # Test only changed projects
nx affected:lint     # Lint only changed projects
  • Use shared libraries — Avoid code duplication with common utilities

  • Configure task dependencies — Define how tasks depend on each other in project.json

{
  "build": {
    "dependsOn": ["^build"]
  }
}
  • Use Nx Cloud — Enable distributed caching for faster CI

  • Use nx.json and tsconfig.base.json — Enforce consistent settings across projects

  • Use @nx/angular:component generator — Follow workspace conventions for components

Comments

Markdown supported