nx-generate

Generate applications, libraries, and boilerplate code with Nx generators.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/ViewableGravy/better-ecs --skill nx-generate-viewablegravy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/ViewableGravy/better-ecs/tree/main/.github/skills/nx-generate
Command: npx skills add https://github.com/ViewableGravy/better-ecs --skill nx-generate-viewablegravy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Core Features & Use Cases

  • Project Scaffolding: Generate new applications or libraries using predefined Nx generators.
  • Code Generation: Create boilerplate code for features, components, or services.
  • Workspace Consistency: Enforces project structure and conventions across the monorepo.
  • Use Case: When a developer needs to add a new React feature library to the monorepo, this Skill can generate the basic structure, configuration, and initial files.

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

Scaffolding a new project structure within an Nx monorepo involves using Nx generators to create applications and libraries. This automates boilerplate code generation and enforces established workspace conventions for consistency.

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

Generating boilerplate code for a React feature library in an Nx workspace is best handled by Nx generators. They produce the basic directory structure, configuration files, and initial source code automatically according to repository patterns.

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

Yes, understanding Nx generator schemas, source code, and workspace conventions is required to create new applications and libraries effectively. This knowledge ensures the generated project structure aligns with monorepo standards.

Can I use Nx generators to enforce workspace consistency across multiple libraries?

Yes, you can use Nx generators to enforce workspace consistency across multiple libraries. By relying on predefined generators, all new code and project scaffolding adhere to the established configuration and directory patterns.

What are the limitations of automating code generation with Nx generators in a monorepo?

Automating code generation with Nx generators is limited by the need to understand existing generator schemas and source code. Complex or highly customized project structures may require manual adjustments beyond what standard scaffolding provides.