nx-generate

Generate code artifacts for applications and libraries in an Nx monorepo.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Shuunen/monorepo --skill nx-generate-shuunen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/Shuunen/monorepo/tree/main/.github/skills/nx-generate
Command: npx skills add https://github.com/Shuunen/monorepo --skill nx-generate-shuunen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Code Scaffolding: Generates boilerplate code for new apps and libraries.
  • Workspace Consistency: Enforces project structure and conventions defined by Nx.
  • Use Case: When a developer needs to add a new React feature library to the monorepo, this skill can generate the basic structure, configuration, and necessary files.

Quick Start

Use the nx-generate skill to create a new React library named 'ui-common' in 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?

To scaffold a new library in an Nx monorepo, this skill uses predefined generators to automate project setup, ensuring adherence to workspace conventions. It generates the basic structure, configuration, and necessary boilerplate code automatically.

What is the best way to ensure consistency when adding new applications to a monorepo?

The best way to ensure consistency when adding new applications to a monorepo is using Nx generators. This skill enforces project structure and conventions defined by Nx, preventing manual setup errors and maintaining workspace consistency across all generated artifacts.

Do I need to understand Nx generator schemas to use code generation?

Yes, you need to understand Nx generator schemas and source code for effective option configuration. This skill automates the creation of code artifacts within an Nx monorepo, but configuring the specific options for your new applications and libraries requires this underlying knowledge.

Can I generate boilerplate code for a React feature library using Nx?

Yes, you can generate boilerplate code for a React feature library using Nx. When a developer needs to add a new React feature library to the monorepo, this skill can generate the basic structure, configuration, and necessary files to kickstart development.

Why should I use an automated generator instead of manual project setup in a monorepo?

You should use an automated generator instead of manual project setup to solve the problem of inconsistent project structures. This skill automates the creation of new projects, libraries, and applications within an Nx monorepo, ensuring consistency, reducing manual setup time, and enforcing workspace conventions.

Are there limitations when configuring options for Nx code generation?

A limitation of Nx code generation is that it requires an understanding of Nx generator schemas and source code for effective option configuration. This skill generates code artifacts based on predefined generators, meaning you must provide correct options to match your specific project setup requirements.