nx-workspace-patterns

Configure Nx monorepo workspaces with standardized nx.json and project templates.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill nx-workspace-patterns-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace-patterns
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/developer-essentials/skills/nx-workspace-patterns
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill nx-workspace-patterns-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and optimize Nx monorepo workspaces to improve project boundaries, caching, and affected commands.

Core Features & Use Cases

  • Standardized Nx architecture for apps/libs with clear library types (feature, ui, data-access, util) and a consistent nx.json and workspace.json setup.
  • Templates and guidelines for project boundaries, caching strategies, and affected command workflows.
  • Use Case: When onboarding a new monorepo, apply these patterns to quickly bootstrap a scalable Nx workspace with predictable build behavior.

Quick Start

Initialize the Nx workspace using the provided patterns and run an affected build to validate setup.

Frequently Asked Questions about nx-workspace-patterns

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

FAQPage Schema
How do I structure an Nx monorepo to enforce clear project boundaries and library types?

To structure an Nx monorepo, apply standardized workspace patterns that categorize libraries into feature, ui, data-access, and util types. This enforces module boundaries and standardizes architecture across apps and libs for scalable maintenance.

What is the best way to configure Nx build caching and affected commands for incremental builds?

Configuring Nx build caching and affected commands requires a standardized nx.json setup with defined caching strategies and project boundaries. This accelerates incremental builds by running tasks only on affected projects during workspace validation.

How do I bootstrap a new scalable Nx workspace with predictable build behavior?

To bootstrap a scalable Nx workspace, initialize the workspace using provided nx.json and project.json templates. Run an affected build to validate the setup and ensure predictable build behavior across the monorepo architecture.

Does this Nx workspace patterns approach work for standardizing existing monorepo configurations?

Yes, this Nx workspace patterns approach works for existing monorepos by applying standardized nx.json and workspace.json configurations. It satisfies requirements for library type conventions and enforces module boundaries to optimize existing project setups.

When do I need to define specific library type conventions in an Nx workspace?

You need to define library type conventions in an Nx workspace when onboarding a monorepo or standardizing architecture. Categorizing libraries as feature, ui, data-access, or util establishes clear project boundaries and enables maintainable scaling.