nx-workspace-patterns

Configure Nx monorepo workspaces with module boundaries and affected CI commands.

4|2|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/3commas-io/commas-claude --skill nx-workspace-patterns-3commas-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace-patterns
Source: https://github.com/3commas-io/commas-claude/tree/main/skills/nx-workspace-patterns
Command: npx skills add https://github.com/3commas-io/commas-claude --skill nx-workspace-patterns-3commas-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the setup and optimization of Nx monorepo workspaces, ensuring efficient project structure, dependency management, and CI/CD pipelines.

Core Features & Use Cases

  • Nx Architecture Guidance: Understand and implement best practices for organizing apps, libraries, and tools.
  • Module Boundary Enforcement: Define and enforce clear dependency rules between projects using tags and ESLint configurations.
  • CI Optimization: Configure workflows to leverage nx affected for faster builds and tests.
  • Caching Strategies: Implement local or remote caching for build artifacts and task outputs.
  • Use Case: When starting a new project with a monorepo structure, use this Skill to set up the nx.json and project.json files correctly, define library types, and configure module boundary rules to maintain code quality and performance.

Quick Start

Use the nx-workspace-patterns skill to generate a new React feature library named 'auth' within the 'web' scope.

Frequently Asked Questions about nx-workspace-patterns

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

FAQPage Schema
How do I set up an Nx monorepo workspace for a new React project?

To set up an Nx monorepo workspace, configure the nx.json and project.json files to define project structure, establish library types, and organize apps and tools according to best practices. This ensures a scalable architecture from the start.

How do I enforce module boundaries in an Nx workspace?

Enforce module boundaries in an Nx workspace by defining clear dependency rules between projects using tags and ESLint configurations. This prevents unauthorized imports and maintains strict code isolation across your libraries.

What is the best way to optimize CI/CD pipelines in an Nx monorepo?

Optimize CI/CD pipelines in an Nx monorepo by configuring workflows to leverage the nx affected command. This limits builds and tests to only changed projects, significantly reducing pipeline execution time.

How do I implement caching strategies for Nx build artifacts?

Implement caching strategies for Nx build artifacts by configuring local or remote caching for task outputs. This stores previous results and allows the workspace to skip redundant computations during repeated builds.

Can I use Nx workspace patterns to generate a scoped React feature library?

Yes, you can use Nx workspace patterns to generate a scoped React feature library. The configuration provides a structured approach to create libraries within specific scopes, ensuring they integrate correctly with existing module boundaries.