wshobson avatar

Nx Workspace Patterns

This handles the tedious parts of Nx monorepo setup that trip up most teams. It generates proper nx.json configurations with optimized caching, sets up module boundary rules that actually enforce clean architecture, and includes working project.json templates for apps and libraries. The ESLint rules it creates prevent libraries from importing the wrong things, which saves you from circular dependencies and architectural drift. Most useful when you're moving beyond a single-app setup or inheriting an Nx workspace that's become a mess. The custom generator templates are solid starting points for your own library patterns.

skills.sh installs
11.2K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill nx-workspace-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Nx Workspace Patterns

Production patterns for Nx monorepo management.

When to Use This Skill

  • Setting up new Nx workspaces
  • Configuring project boundaries
  • Optimizing CI with affected commands
  • Implementing remote caching
  • Managing dependencies between projects
  • Migrating to Nx

Core Concepts

1. Nx Architecture

workspace/
├── apps/              # Deployable applications
│   ├── web/
│   └── api/
├── libs/              # Shared libraries
│   ├── shared/
│   │   ├── ui/
│   │   └── utils/
│   └── feature/
│       ├── auth/
│       └── dashboard/
├── tools/             # Custom executors/generators
├── nx.json            # Nx configuration
└── workspace.json     # Project configuration

2. Library Types

Sponsors

Details

Repository
github.com/wshobson/agents
Category
DevOps & CI/CD

More from wshobson/agents

All 174
1wshobson avatarpostmortem-writingwshobson/agentsWrite effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents,11.2Kskills.sh installs
2shopify avatarshopify-use-shopify-clishopify/shopify-ai-toolkitChoose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`, `shopify.app.<name>.toml`,11.2Kskills.sh installs
3getcargohq avatarcargo-contextgetcargohq/cargo-skillsInspect and edit the workspace's git-backed context repository (the GTM knowledge base of markdown/MDX files) and its runtime sandbox using the Cargo CLI. Use w11.1Kskills.sh installs
4getcargohq avatarcargogetcargohq/cargo-skillsRouter and overview for the Cargo CLI agent skills. Explains the fifteen skills (this router + one onboarding skill cargo-quickstart + one outcome skill cargo-g11.1Kskills.sh installs
5getcargohq avatarcargo-contentgetcargohq/cargo-skillsManage workspace knowledge files and libraries in the Cargo content domain — upload, list, rename, move, and remove files (PDFs, CSVs, text), and create or sync11Kskills.sh installs
6shopify avatarshopify-polaris-app-homeshopify/shopify-ai-toolkitBuild your app's primary user interface embedded in the Shopify admin. If the prompt just mentions `Polaris` and you can't tell based off of the context what AP11Kskills.sh installs