nx

Manage Nx monorepo configuration and build orchestration across projects.

6|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill nx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx
Source: https://github.com/oguzhan18/angular-ecosystem-skills/tree/main/skills/nx
Command: npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill nx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides actionable guidance and configuration patterns to manage Nx monorepos, reduce build times, and maintain consistent workspace conventions across large, multi-project repositories.

Core Features & Use Cases

  • Workspace Configuration: Guidance for nx.json, tsconfig.base.json, project.json task dependencies, and TypeScript project references to improve incremental builds.
  • Generators & Executors: Usage patterns for Nx generators to scaffold libraries and components and executors to standardize build/test flows.
  • Affected & CI Optimization: Strategies to run affected:build/test, enable distributed caching with Nx Cloud, and adopt pnpm catalogs or Rspack for faster bundling.
  • Use Case: Organize domain-based libs, generate a shared data-access library, and configure CI to only build and test changed projects for faster feedback loops.

Quick Start

Create a new shared data-access library under libs/shared/data-access with the Nx generator and configure affected builds plus Nx Cloud caching.

Frequently Asked Questions about nx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure affected builds in an Nx monorepo to only test changed projects?

To configure affected builds in an Nx monorepo, you apply strategies to run affected:build and affected:test commands. This setup ensures your CI pipeline only builds and tests changed projects, resulting in faster feedback loops and reproducible builds.

What is the best way to generate a shared data-access library in an Angular Nx workspace?

The best way to generate a shared data-access library in an Angular Nx workspace is using Nx generators. This scaffolding mechanism organizes domain-based libraries under directories like libs/shared/data-access to maintain consistent workspace conventions across multi-project repositories.

How do I set up distributed caching with Nx Cloud to reduce build times?

To set up distributed caching with Nx Cloud, you enable caching configurations that store and reuse build outputs across your CI environment. This reduces build times by avoiding redundant task executions and ensuring reliable, reproducible builds across large monorepos.

Can I use Nx workspace configuration to improve incremental builds with TypeScript project references?

Yes, you can use Nx workspace configuration to improve incremental builds by configuring tsconfig.base.json and TypeScript project references. Setting up project.json task dependencies correctly further optimizes the build orchestration across multiple projects.

Does Nx monorepo build orchestration support mixed JavaScript and TypeScript workspaces?

Nx monorepo build orchestration fully supports mixed JavaScript and TypeScript workspaces. You can manage workspace configuration, generator usage, and task dependency setup across both environments for consistent build and test flows.

What strategies optimize Nx monorepo bundling speed when adopting pnpm catalogs or Rspack?

Strategies to optimize Nx monorepo bundling speed include adopting pnpm catalogs or integrating Rspack for faster bundling. These approaches work alongside distributed caching and affected command configurations to significantly reduce overall build and test times.