nx-monorepolisted
Install: claude install-skill aiskillstore/marketplace
# Nx Monorepo
## Overview
This skill provides expert-level capabilities for Nx monorepo management. Nx is the standard build orchestrator for this AI-native platform due to its official MCP server integration.
**Why Nx**: Official MCP server, TypeScript-native, 5-minute setup, auto-generates CLAUDE.md/AGENTS.md for AI assistants.
## MCP Tools Available
```
nx_docs - Query Nx documentation
nx_available_plugins - List official Nx plugins (NOT installed by default)
```
**Key Insight**: MCP provides documentation lookup. Use **Nx CLI** for all operations.
## Core CLI Commands
### Project Graph Analysis
```bash
# View interactive project graph
nx graph
# JSON output for programmatic use
nx graph --file=output.json
# Show dependencies of specific project
nx graph --focus=my-app
# Show what depends on a project
nx graph --affected
```
### Affected Detection
```bash
# What's affected since main?
nx affected -t build
nx affected -t test
nx affected -t lint
# Compare against specific base
nx affected -t build --base=origin/main --head=HEAD
# Show affected projects only
nx show projects --affected
```
### Running Tasks
```bash
# Run task for all projects
nx run-many -t build
nx run-many -t test
# Run for specific projects
nx run-many -t build --projects=app-a,lib-b
# Run with parallelism control
nx run-many -t build --parallel=4
# Single project
nx build my-app
nx test my-lib
```
### Code