nx-generate

Generate code artifacts in an Nx monorepo using Nx generators.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/cyrus-rumao/attendance-monorepo --skill nx-generate-cyrus-rumao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/cyrus-rumao/attendance-monorepo/tree/main/.gemini/skills/nx-generate
Command: npx skills add https://github.com/cyrus-rumao/attendance-monorepo --skill nx-generate-cyrus-rumao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new projects, libraries, 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 using Nx's built-in or custom generators.
  • Code Generation: Automate the creation of features, components, or other code structures based on predefined patterns.
  • Use Case: When a developer needs to add a new feature module to a React application within the monorepo, this Skill can generate the necessary directory structure, component files, and configuration.

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 automate project scaffolding within an Nx monorepo?

Automating project scaffolding within an Nx monorepo involves using Nx generators to create new applications and libraries. This ensures consistent boilerplate code creation and directory structures while reducing manual setup time.

What is the best way to generate a new React library in an Nx workspace?

The best way to generate a new React library in an Nx workspace is to use Nx generators for project scaffolding. This automatically creates the necessary directory structure, component files, and configuration based on predefined repository patterns.

How does code generation work for new feature modules in an Nx monorepo?

Code generation for new feature modules in an Nx monorepo works by executing Nx generators that produce boilerplate code. It creates the required directory structure and component files automatically, adhering to specific repository patterns.

Do I need to verify generated code through build and lint targets after using Nx generators?

Yes, you need to verify generated code through build, lint, and test targets after using Nx generators. This verification step ensures that the newly scaffolded projects and boilerplate code integrate correctly without breaking existing monorepo patterns.

Can I use custom generators for boilerplate code creation in an Nx monorepo?

Yes, you can use custom generators for boilerplate code creation in an Nx monorepo. The process supports both built-in and custom generators to automate the creation of features, components, and other code structures based on predefined patterns.