nx-generate

Generate code artifacts in an Nx monorepo using local or external generators.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/rafael-hc/AoPonto-FoodService --skill nx-generate-rafael-hc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/rafael-hc/AoPonto-FoodService/tree/main/.agents/skills/nx-generate
Command: npx skills add https://github.com/rafael-hc/AoPonto-FoodService --skill nx-generate-rafael-hc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Project Scaffolding: Generate new applications, libraries, or features using Nx plugins.
  • Code Generation: Automate the creation of boilerplate code, components, or services.
  • Workspace Customization: Run custom generators defined within the local workspace.
  • Use Case: When you need to add a new reusable UI component library to your React monorepo, this skill can scaffold it with the correct structure and configurations.

Quick Start

Use the nx-generate skill to create a new React library named 'shared-ui'.

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, use the nx-generate capability to automate project creation. It utilizes local or external Nx generators to produce the correct structure and boilerplate for applications, libraries, and features.

What is the best way to automate boilerplate code generation for Nx workspaces?

Automating boilerplate code generation for Nx workspaces is best handled by running custom workspace generators. This ensures new code artifacts strictly adhere to your repository's specific conventions and structural patterns.

Can I use local workspace generators to customize code scaffolding for my monorepo?

Yes, you can use local workspace generators to customize code scaffolding for your monorepo. The tool prioritizes local generators to ensure generated applications and libraries match your project-specific configurations and patterns.

How do I add a new application to an existing Nx monorepo while maintaining project conventions?

To add a new application to an existing Nx monorepo while maintaining conventions, execute code generation using local Nx generators. This scaffolds the required artifacts based on your user-defined requirements and repository rules.

Do I need external Nx plugins to generate code structures, or are local generators enough?

You do not strictly need external Nx plugins, as local generators are often enough to scaffold code structures. The system supports both local and external generators, prioritizing local workspace generators for consistency.

What are the limitations of using automated scaffolding for Nx monorepo projects?

The main limitation of using automated scaffolding for Nx monorepo projects is dependency on predefined generator logic. If external generators lack customization, you must define local workspace generators to achieve project-specific code structures.