# Nx

> Nx workspace configuration, generators, and affected commands.

- Skill: `majiayu000/nx` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/nx`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/nx/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/nx

---


# Nx Skill

Expert assistance for Nx monorepo management.

## Capabilities

- Configure Nx workspaces
- Create custom generators
- Use affected commands
- Set up caching
- Define project boundaries

## Configuration

```json
// nx.json
{
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "cache": true
    },
    "test": {
      "cache": true
    }
  },
  "affected": {
    "defaultBase": "main"
  }
}
```

## Commands

```bash
# Run affected
nx affected:build
nx affected:test

# Graph
nx graph

# Generate
nx generate @nx/react:component Button
```

## Target Processes

- monorepo-management
- enterprise-architecture
- code-generation

