nx-workspace-patterns

Configure Nx monorepos with library boundaries and caching patterns.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/ArogyaReddy/https-github.com-wshobson-agents --skill nx-workspace-patterns-arogyareddy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace-patterns
Source: https://github.com/ArogyaReddy/https-github.com-wshobson-agents/tree/main/plugins/developer-essentials/skills/nx-workspace-patterns
Command: npx skills add https://github.com/ArogyaReddy/https-github.com-wshobson-agents --skill nx-workspace-patterns-arogyareddy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and optimize Nx monorepos to streamline workspace boundaries, caching, and affected commands across apps and libs.

Core Features & Use Cases

  • Establish and enforce library boundaries with Nx architecture patterns.
  • Optimize build caching and affected commands for faster CI.
  • Provide templates and rules for module boundaries and project organization to scale development.

Quick Start

Create a new Nx workspace using the provided patterns to define apps/libs boundaries and enable affected commands.

Frequently Asked Questions about nx-workspace-patterns

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

FAQPage Schema
How do I enforce module boundaries in an Nx monorepo?

Enforce module boundaries in an Nx monorepo by applying architecture patterns to nx.json and workspace.json, restricting library imports to prevent cross-dependency violations and maintain project organization.

What is the best way to optimize build caching for Nx workspaces in CI?

Optimize Nx workspace build caching in CI by configuring affected commands and cache settings, which reduces redundant build times across apps and libraries during pipeline execution.

How do I set up a new Nx workspace with proper library boundaries?

Set up a new Nx workspace using provided templates to define apps and libs boundaries, enabling affected commands and establishing project organization guidelines for scalable development.

Can I use Nx architecture patterns to organize both apps and libraries?

Nx architecture patterns support organizing both apps and libraries by providing templates and rules for module boundaries, ensuring structured project organization across the entire monorepo.

Why are my Nx affected commands not improving CI build times?

Nx affected commands require proper cache configuration and library boundary enforcement to effectively reduce CI build times, ensuring only impacted projects are rebuilt across the workspace.

When do I need to configure nx.json for monorepo project boundaries?

Configure nx.json when establishing a new Nx workspace or restructuring existing project boundaries, as it defines the architecture patterns and rules governing library interactions and affected command behavior.