nx-generate

Generate applications, libraries, and features using Nx generators in a monorepo.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/glacy/course-dashboard --skill nx-generate-glacy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/glacy/course-dashboard/tree/main/.opencode/skills/nx-generate
Command: npx skills add https://github.com/glacy/course-dashboard --skill nx-generate-glacy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Project Scaffolding: Generate new applications and libraries using Nx's built-in or custom generators.
  • Code Generation: Create boilerplate code for components, services, or other code structures.
  • Use Case: When a developer needs to add a new feature module to an existing Nx workspace, this skill can scaffold the necessary project structure, configuration files, and initial code.

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 library in an Nx monorepo?

You can scaffold a new library in an Nx monorepo by using Nx generators to create the project structure and boilerplate code. This automated project setup ensures consistency and reduces manual configuration within the workspace.

What is the best way to generate boilerplate code for an Nx workspace?

The best way to generate boilerplate code for an Nx workspace is to use Nx generators. They automate project scaffolding for applications and features based on predefined workspace patterns and generator schemas, eliminating repetitive manual code creation.

Can I use custom generators to scaffold feature modules in an Nx workspace?

Yes, you can use custom generators to scaffold feature modules in an Nx workspace. The code generation process supports both Nx's built-in and custom generators to create components and services based on predefined schemas.

Why should I use code generation for project setup in a monorepo?

You should use code generation for project setup in a monorepo to ensure code consistency and reduce boilerplate. Automating the creation of new applications and libraries enforces predefined workspace patterns and minimizes manual configuration errors.

Does Nx code generation support creating React applications and libraries?

Yes, Nx code generation supports creating React applications and libraries. You can generate a new React library, such as one named 'ui-common' within the 'libs' directory, using the standard Nx generator schemas.