nx-generate

Generate applications, libraries, and boilerplate code within an Nx monorepo.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new apps and libraries using Nx's built-in or custom generators.
  • Code Generation: Automate the creation of features, components, or other code structures.
  • Workspace Consistency: Enforces project patterns and configurations across the monorepo.
  • Use Case: When a user wants to add a new React feature library to the project, this skill can generate the necessary files, configurations, and basic structure.

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?

Nx generators automate the creation of new applications, libraries, and boilerplate code within an Nx monorepo. They ensure consistency by enforcing established workspace patterns and configurations, reducing manual setup effort.

What is the best way to generate boilerplate code for a React feature in Nx?

Use Nx generators to scaffold the React feature library. This approach automates file creation and configures the basic structure, adhering to existing workspace patterns and generator schemas for proper integration.

Can I use custom generators to create new apps and libraries in my workspace?

Yes, Nx supports both built-in and custom generators for scaffolding. You can use custom generators to automate code creation, ensuring new apps and libraries adhere to your specific workspace patterns and configurations.

Do I need to understand generator schemas to scaffold projects with Nx?

Yes, understanding generator schemas is required. Proper scaffolding and integration of new code artifacts require knowledge of generator schemas, source code, and existing project structures to ensure consistency.

Why use Nx generators for project setup instead of manual configuration?

Nx generators enforce workspace consistency by automating the creation of projects and boilerplate code. This reduces manual setup errors and ensures new features adhere to established workspace patterns and configurations.