Skip to main content
skill Claude Code CX Codex Cursor

nx-workspace-patterns — Claude Code skill for Nx workspaces

This skill covers Nx monorepo structure, project boundaries, build caching, and affected commands. Use it when setting up a workspace or moving a project to Nx.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install developer-essentials@claude-code-workflows
Open on GitHub

What nx-workspace-patterns does

The skill outlines an Nx workspace with apps, shared libraries, and tools. It groups libraries by purpose: feature, ui, data-access, util, and shell. These patterns give you a starting point for organizing code and setting boundaries between projects.

It covers tags and module boundaries, generators, build caching, affected commands for CI, and migration to Nx. A link to references/details.md points to templates and worked examples. Install it when you are shaping an Nx monorepo or its CI workflow; it is less relevant to projects that do not use Nx.

What it helps with

  • organize apps and shared libraries in an Nx workspace
  • define project boundaries with consistent tags
  • select affected projects for CI commands
  • plan project dependencies without circular links
  • prepare a project migration to Nx

Example prompts for the agent

  • Suggest an Nx workspace layout for web and api apps with shared libraries.
  • Show how to use tags and module boundaries for feature and data-access libraries.
  • How should I use affected commands and build caching in my Nx CI workflow?

How to install nx-workspace-patterns

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install developer-essentials@claude-code-workflows

This installs the whole developer-essentials plugin with all its skills

2Skills CLI (Vercel)

npx skills add wshobson/agents --skill nx-workspace-patterns -a claude-code

3Manually: put the files in place

~/.claude/skills/nx-workspace-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nx-workspace-patterns/

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Similar

scope-creep-detector Matt Van Horn Compares a git diff against a stated intent and flags files that don't belong: stray dependencies, API renames, config edits, oversized hunks, and formatting. Runs locally, offline, no network calls. Claude Code CX Codex Cursor +1 605installs karpathy-llm-wiki Astro-Han Manages a personal Markdown knowledge base inspired by Andrej Karpathy: stores raw sources immutably and compiles them into verified wiki articles. Claude Code CX Codex Cursor +1 8,100installs prisma-cli prisma Prisma ORM 7 CLI reference for AI agents. Guides client generation, schema migrations, and local database workflows while preventing accidental data loss. Claude Code CX Codex Cursor +1 386,800installs variance-commentary official anthropics Generates flux commentary for P&L and balance sheet lines against budget and prior periods. Useful for month-end close packages and management reporting. Claude Code CX Codex Cursor +1 1,300installs dd-checklist official anthropics Builds a due diligence checklist around the target sector, deal type, and complexity, then tracks status and red flags. Useful for data room reviews. Claude Code CX Codex Cursor +1 1,300installs unit-economics official anthropics Analyzes unit economics for SaaS and subscription businesses in PE context: builds ARR cohorts, calculates LTV:CAC, net retention, payback periods, and margin waterfall. Claude Code CX Codex Cursor +1 1,300installs find-skills vercel-labs Discovers and installs agent skills from skills.sh directly inside your coding assistant. Handy when you need domain-specific workflows for a project. Claude Code CX Codex Cursor +1 4,000,000installs frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs

Questions about nx-workspace-patterns

How do I install nx-workspace-patterns in Claude Code?

Run npx skills add wshobson/agents --skill nx-workspace-patterns -a claude-code. The skill path shown in the install details is ~/.claude/skills/nx-workspace-patterns/SKILL.md.

What does nx-workspace-patterns do?

It provides patterns for structuring Nx workspaces, defining project boundaries and dependencies, configuring caching, and selecting affected changes for CI.

Which library types does nx-workspace-patterns cover?

It describes feature, ui, data-access, util, and shell libraries, covering business logic, presentational components, API access, helpers, and app bootstrapping.

Source text

SKILL.md · MIT
---
name: nx-workspace-patterns
description: Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.
---

# 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

| Type            | Purpose                          | Example             |
| --------------- | -------------------------------- | ------------------- |
| **feature**     | Smart components, business logic | `feature-auth`      |
| **ui**          | Presentational components        | `ui-buttons`        |
| **data-access** | API calls, state management      | `data-access-users` |
| **util**        | Pure functions, helpers          | `util-formatting`   |
| **shell**       | App bootstrapping                | `shell-web`         |

## Templates and detailed worked examples

Full template library and detailed worked examples live in `references/details.md`. Read that file when you need the concrete templates.

## Best Practices

### Do's

- **Use tags consistently** - Enforce with module boundaries
- **Enable caching early** - Significant CI savings
- **Keep libs focused** - Single responsibility
- **Use generators** - Ensure consistency
- **Document boundaries** - Help new developers

### Don'ts

- **Don't create circular deps** - Graph should be acyclic
- **Don't skip affected** - Test only what changed
- **Don't ignore boundaries** - Tech debt accumulates
- **Don't over-granularize** - Balance lib count

© Seth Hobson · MIT · wshobson/agents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor