Skill Detail

Nx Workspace Generator

Creates and manages Nx monorepo workspace generators using @nx/devkit and the Nx plugin API. Generates libraries, applications, and custom executors with automatic dependency graph updates via nx graph.

Templates & WorkflowsClaude Code
Templates & Workflows Claude Code Security Reviewed
โญ 28.6k GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill nx-workspace-generator Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Author
Nx
Last updated
Mar 24, 2026
Quick brief

The Nx Workspace Generator skill manages monorepo scaffolding and code generation through the Nx build system. It uses @nx/devkit to create custom workspace generators that produce libraries, applications, and shared utilities following monorepo best practices.

How it works

What this skill actually does

The skill leverages the Nx plugin API for creating custom executors and generators that integrate with the Nx dependency graph. It supports automatic project.json configuration, tsconfig path mapping, and build target setup for generated projects.

Key features include intelligent code generation with AST manipulation via ts-morph, automatic barrel file updates, and integration with Nx affected commands for incremental builds. The skill handles cross-project dependency management, generates move and remove generators for safe refactoring, and supports Nx Cloud integration for distributed task caching and execution.