Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure, explore, and optimize Nx monorepo workspaces. Use when setting up Nx, exploring workspace structure, configuring project boundaries, analyzing affected projects, optimizing build caching, or implementing CI/CD with affected commands. Keywords — nx, monorepo, workspace, projects, targets, affected. Do NOT use for running tasks (use nx-run-tasks) or code generation with generators (use nx-generate).
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 24% | 0% |
| case-22 | ✓→✗ | ▼ Worse | 35% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 25% | 0% |
Exploring workspace: nx show projects and nx show project <name> --json Running tasks: nx <target> <project> (e.g., nx build my-app) Affected analysis: nx show projects --affected or nx affected -t <target>
> Note: Prefix commands with npx/pnpx/yarn if nx isn't installed globally.
bash# List all projects nx show projects # Filter by type, pattern, or target nx show projects --type app nx show projects --projects "apps/*" nx show projects --withTarget build # Find affected projects nx show projects --affected --base=main
Critical: Always use nx show project <name> --json for full resolved configuration. Do NOT read project.json directly - it contains only partial configuration.
bash# Get full configuration nx show project my-app --json # Extract targets nx show project my-app --json | jq '.targets | keys'
Configuration schemas:
node_modules/nx/schemas/nx-schema.jsonnode_modules/nx/schemas/project-schema.jsonbash# Run specific project nx build web --configuration=production # Run affected nx affected -t test --base=main # View dependency graph nx graph
workspace/
├── apps/ # Deployable applications
├── libs/ # Shared libraries
│ ├── shared/ # Shared across scopes
│ └── feature/ # Feature-specific
├── nx.json # Workspace configuration
└── tools/ # Custom executors/generators| Type | Purpose | Example | | --------------- | -------------------------------- | ------------------- | | feature | Business logic, smart components | feature-auth | | ui | Presentational components | ui-buttons | | data-access | API calls, state management | data-access-users | | util | Pure functions, helpers | util-formatting |
Configuration: See reference/configuration.md for:
Commands: See reference/commands.md for:
CI/CD: See reference/ci-cd.md for:
Best Practices: See reference/best-practices.md for:
"What's in this workspace?"
bashnx show projects --type app # List applications nx show projects --type lib # List libraries
"How do I run project X?"
bashnx show project X --json | jq '.targets | keys'
"What changed?"
bashnx show projects --affected --base=main
nx show project <name> --json, not project.jsonfetch-depth: 0 in CI)nx resetFor detailed troubleshooting, see reference/best-practices.md.
Other measured skills in the registry, with their headline benchmark lift.