nx-generate

Generate applications, libraries, and features in an Nx monorepo.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/TheSpiciestDev/com-userevals --skill nx-generate-thespiciestdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/TheSpiciestDev/com-userevals/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/TheSpiciestDev/com-userevals --skill nx-generate-thespiciestdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new projects, libraries, and boilerplate code within an Nx monorepo, ensuring consistency and reducing manual setup time.

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new applications or libraries using predefined Nx generators.
  • Code Generation: Automate the creation of repetitive code structures and features.
  • Use Case: When a developer needs to add a new feature library to the monorepo, this skill can scaffold the basic structure, including necessary configuration files and initial code, following established project patterns.

Quick Start

Use the nx-generate skill to create a new React library named 'ui-common' within the 'libs' directory.

Frequently Asked Questions about nx-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new application or library within an Nx monorepo?

You can scaffold a new application or library within an Nx monorepo by using Nx generators, which automate project setup and ensure adherence to established repository patterns.

How does Nx code generation reduce manual setup time for feature libraries?

Nx code generation reduces manual setup time by automating the creation of repetitive project structures, necessary configuration files, and initial boilerplate code for new feature libraries.

Can I use Nx generators to ensure my new projects are buildable and match existing repo patterns?

Yes, you can use Nx generators to scaffold projects with specific options for buildability, ensuring that newly generated applications and libraries strictly adhere to existing monorepo patterns.

What is the best way to automate boilerplate code creation for a feature library in an Nx monorepo?

The best way to automate boilerplate code creation for a feature library in an Nx monorepo is using Nx generators, which scaffold the basic structure and initial code based on predefined schemas.

Do I need to understand Nx CLI commands and generator schemas to scaffold monorepo projects?

Yes, understanding Nx CLI commands and generator schemas is required to effectively scaffold projects, applications, and libraries within an Nx monorepo using this code generation approach.

Why use Nx project scaffolding instead of manually creating directories and configuration files?

Using Nx project scaffolding instead of manual creation ensures consistency across the monorepo, reduces setup time, and automatically configures new applications and libraries following established project patterns.