nx-generate

Generate applications, libraries, and features within an Nx monorepo using predefined generators.

Updated Oct 13, 2025
One-click install
npx skills add https://github.com/effinrich/rh-nx-monorepo --skill nx-generate-effinrich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/effinrich/rh-nx-monorepo/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/effinrich/rh-nx-monorepo --skill nx-generate-effinrich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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 time.

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new applications and libraries.
  • Code Generation: Create boilerplate for features, components, or other code structures.
  • Workspace Customization: Run custom or plugin-specific Nx generators.
  • Use Case: When a user requests to "add a new React library for shared UI components," this skill will use the appropriate Nx generator to create the library structure, configuration, and initial files.

Quick Start

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

You can scaffold a new React library in an Nx monorepo by using predefined generators to automatically create the directory structure, configuration files, and initial boilerplate code. This ensures the new library adheres to established repository patterns and conventions.

What is Nx code generation used for?

Nx code generation is used to automate project setup by creating new applications, libraries, and features within a monorepo. It generates code artifacts based on generator schemas to reduce manual setup time and enforce workspace consistency.

Do I need to understand Nx generator schemas to create new applications?

Yes, understanding Nx generator schemas, source code, and workspace-specific configurations is required for optimal project scaffolding. This knowledge ensures the generated applications and libraries match your repository's established patterns.

Can I run custom plugin-specific Nx generators for project setup?

Yes, you can run custom or plugin-specific Nx generators to facilitate workspace customization. This allows you to generate tailored code artifacts and boilerplate structures that match specific feature requirements beyond the default setup.

What's the best way to ensure boilerplate consistency across an Nx workspace?

The best way to ensure boilerplate consistency across an Nx workspace is to use predefined generators for code generation. This approach automatically adheres to established repository conventions when creating new features and libraries.