nx-generate

Automate code generation in Nx monorepos using Nx generators.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/pertrai1/open-forge --skill nx-generate-pertrai1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/pertrai1/open-forge/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/pertrai1/open-forge --skill nx-generate-pertrai1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nx, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for efficient code generation in Nx-based projects, reducing manual effort and ensuring consistency across the codebase.

Core Features & Use Cases

  • Project Creation: Automate the creation of new libraries or applications within Nx monorepos.
  • Code Scaffold: Generate boilerplate code for features and reduce repetitive tasks.
  • Custom Generators: Execute workspace-specific or custom Nx generators.
  • Use Case: When you need to quickly set up a new Nx project or add a new feature, this Skill can automate the setup process.

Quick Start

Generate a new React library in your Nx workspace by running: nx g @nx/react:library --name my-lib

Frequently Asked Questions about nx-generate

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

FAQPage Schema
How do I automate code generation in an Nx monorepo?

Automate code generation in an Nx monorepo by using Nx generators to handle project setup and feature scaffolding. This skill executes generator commands to create libraries and boilerplate code, reducing manual effort.

How do I scaffold a new library or application in an Nx workspace?

Scaffold a new library or application in an Nx workspace by executing Nx generator commands. Running a command like `nx g @nx/react:library` automates the creation of new projects and boilerplate code.

Do I need the Nx CLI installed to use this code generation skill?

Yes, you need the Nx CLI installed to use this code generation skill. It requires the Nx CLI and specified Nx generator packages to execute workspace-specific or custom generators.

Can I execute custom Nx generators for feature scaffolding?

Yes, you can execute custom Nx generators for feature scaffolding. This skill handles the execution of workspace-specific or custom Nx generators to automate repetitive boilerplate tasks.

What is the best way to ensure consistency when adding features to an Nx project?

The best way to ensure consistency when adding features to an Nx project is by using Nx generators. Automating the code generation process reduces manual effort and enforces consistent boilerplate across the codebase.