Skip to content

Best-practices guide for Nx monorepos covering project layout, tagged module boundaries, generators, and cached affected builds.

CCM score
49 of 100
skills.sh installs
727
GitHub stars
321
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers project structure, nx.json and project.json configuration, code generation, caching, task execution, testing, and CI
  • Includes nx g generator examples for React apps, libraries, and components, plus nx affected and nx graph commands
  • Enforces dependency rules through @nx/enforce-module-boundaries ESLint tags, separating app, library, and scope boundaries
  • Designed for teams building React or other frontend apps in a shared monorepo with Nx Cloud for CI

Install

$ npx -y skills add mindrally/skills --skill nx -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Nx Monorepo Development

You are an expert in Nx, the smart, fast, and extensible build system for monorepos.

Project Structure

  • Organize projects following Nx conventions:
    • apps/ - Application projects (web apps, APIs, mobile apps)
    • libs/ - Library projects (shared code, features, utilities)
  • Use consistent naming patterns: scope-type-name (e.g., shared-ui-button)
  • Group related libraries under feature folders

Workspace Configuration

Configure nx.json for workspace-wide settings:

{
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "cache": true
    },
    "test": {
      "cache": true
    }
  },
  "defaultBase": "main"
}
  • Use project.json for project-specific configuration
  • Define proper tags for enforcing module boundaries

Project Configuration

Each project should have a project.json:

{
  "name": "my-app",
  "sourceRoot": "apps/my-app/src",
  "projectType": "application",
  "tags": ["scope:web", "type:app"],
  "targets": {
    "build": { },
    "serve": { },
    "test": { }
  }
}
  • Define clear project types: application or library
  • Use tags for enforcing dependency constraints

Details

Repository
github.com/mindrally/skills
Categories
Frontend & UI Code, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the nx skill help with?

The nx skill gives Claude best practices for Nx monorepo development, covering project configuration and code generation. It guides project structure with apps and libs, nx.json and project.json setup, module boundaries, caching, affected commands and CI integration.

How do I install the nx skill?

Run npx -y skills add mindrally/skills --skill nx -y in your project. After that, Claude follows the Nx conventions in the skill when working in your monorepo.

Which other skills are in the same category as nx?

The nx skill sits in the Frontend & UI Code category on Claude Marketplaces. Other skills there include vercel-react-best-practices, web-design-guidelines and design-taste-frontend, while nx focuses on monorepo build and project setup.

Who is the nx skill for?

It is for developers working in Nx monorepos who want Claude to follow Nx project layout, tagging, generator and task execution practices. It covers apps and libraries, dependency constraints through ESLint rules, and Nx Cloud caching in CI.

More from mindrally/skills

All 240