nx-workspace-patterns

Automates Nx workspace pattern configuration and governance for monorepos.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sets up Nx monorepo patterns to improve organization, governance, and scalability by providing a structured approach to architecture, libraries, and caching.

Core Features & Use Cases

  • Establish consistent Nx configurations (nx.json and workspace.json/project.json) across teams
  • Define library boundaries by type (feature, ui, data-access, util) and enforce module boundaries
  • Provide templates for common patterns like workspace structure, tagging, and build caching strategies

Quick Start

Scaffold an Nx monorepo pattern guide and start applying workspace defaults with the included templates.

Frequently Asked Questions about nx-workspace-patterns

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

FAQPage Schema
How do I configure library boundaries in an Nx monorepo?

Configure library boundaries in an Nx monorepo by defining rules for feature, ui, data-access, and util types to enforce module boundaries and prevent unauthorized imports across libraries.

What is the best way to establish consistent Nx workspace configurations across teams?

The best way to establish consistent Nx workspace configurations is by applying standardized templates for nx.json and project.json to govern workspace setup and architecture across teams.

How does Nx build caching strategy work for monorepos?

Nx build caching strategy works by configuring workspace defaults and nx.json templates to cache task outputs, reducing rebuild times and improving monorepo scalability across teams.

Can I automate scaffolding for Nx monorepo patterns?

Yes, you can automate scaffolding for Nx monorepo patterns using generator scaffolding to create consistent workspace structures, tagging systems, and project configurations automatically.

When do I need to define module boundary rules in an Nx workspace?

Define module boundary rules in an Nx workspace when scaling monorepos across multiple teams to enforce library types and prevent cross-boundary dependencies from causing architectural drift.