nx-workspace-patterns

Configure Nx workspace monorepos with module boundaries and CI caching.

Updated May 16, 2026
One-click install
npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill nx-workspace-patterns-p-o-ke-nae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace-patterns
Source: https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory/tree/main/.github/skills/nx-workspace-patterns
Command: npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill nx-workspace-patterns-p-o-ke-nae

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the complexity of setting up and maintaining Nx monorepos by standardizing workspace structure, dependency rules, and CI-friendly optimization patterns.

Core Features & Use Cases

  • Workspace Architecture: Organize apps, libraries, and tools with clear boundaries and consistent conventions.
  • Module Boundary Enforcement: Control which projects can depend on each other to prevent circular and cross-scope mistakes.
  • CI Optimization: Use affected commands and caching strategies to reduce build, test, and lint time.
  • Use Case: A team migrating to Nx can use this Skill to define project tags, generate libraries, and configure a fast, scalable pipeline for development and pull request validation.

Quick Start

Ask the Skill to design an Nx workspace structure and CI optimization plan for a monorepo with apps, libs, module boundaries, and 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 to prevent circular dependencies?

Configure module boundaries in an Nx monorepo by assigning project tags and defining dependency rules that restrict which apps and libraries can import each other. This prevents circular dependencies and cross-scope mistakes by validating project imports against your configured workspace architecture.

How do I optimize CI pipelines for an Nx monorepo using affected commands?

Optimize Nx monorepo CI pipelines by configuring affected commands and remote caching strategies. This limits build, test, and lint execution to only changed projects and their dependents, significantly reducing pipeline time for pull request validation.

What is the best way to structure apps and libraries in an Nx workspace?

Structure apps and libraries in an Nx workspace by applying consistent layout conventions and clear architectural boundaries. Standardize the project organization using generator-based configurations to scale teams and tools effectively.

How does remote caching work with Nx affected commands?

Remote caching with Nx affected commands stores computed build and test outputs externally. When the dependency graph detects unchanged project inputs, the cache restores previous results, skipping redundant task execution across your CI pipeline.

Can I use Nx generators to standardize workspace configurations for a migrating team?

Yes, you can use Nx generators to standardize workspace configurations. Teams migrating to Nx can define project tags, generate consistent libraries, and apply uniform architecture rules to establish a scalable development pipeline.