nx-generate

Automate Nx monorepo scaffolding with generators and validate outputs.

2|Updated Sep 2, 2024
One-click install
npx skills add https://github.com/e-burgos/tucu-ui --skill nx-generate-e-burgos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/e-burgos/tucu-ui/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/e-burgos/tucu-ui --skill nx-generate-e-burgos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators help teams scaffold consistent monorepo structures, create apps and libraries, and migrate code with repeatable templates, reducing boilerplate and human error.

Core Features & Use Cases

  • Generate apps and libraries within an Nx workspace using standard templates and conventions.
  • Migrate scaffolding and project layouts with automated changes, ensuring consistency across teams.
  • Run non-interactively and deterministically, validating outputs with lint and tests.

Quick Start

Create a new library named ui-shared in the current Nx workspace.

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 non-interactively?

To scaffold a library in an Nx monorepo non-interactively, use Nx generators to read schemas and create projects deterministically. This standardizes workspace layouts by applying repeatable templates, reducing boilerplate and human error during library creation.

What is the best way to enforce consistent project patterns across an Nx workspace?

Enforcing consistent patterns across an Nx workspace is achieved by using Nx generators to scaffold apps and libraries. This ensures structural uniformity and standardized layouts across teams by applying automated, repeatable templates.

Can I automate code migrations within my Nx monorepo?

Yes, you can automate code migrations within an Nx monorepo by applying Nx generators. This process standardizes project layouts and migrates scaffolding through automated changes, ensuring consistency and reducing manual boilerplate.

Does Nx scaffolding support validating generated outputs with lint and tests?

Nx scaffolding supports validating generated outputs by running lint, test, and typecheck steps after generation. This ensures the newly created apps and libraries meet quality standards and do not break existing workspace patterns.

How do Nx generators reduce boilerplate when creating monorepo apps?

Nx generators reduce boilerplate when creating monorepo apps by applying standard templates and conventions. They automate the scaffolding process, which eliminates repetitive manual setup and minimizes human error across team workflows.