nx-generate

Scaffold apps and libraries in an Nx monorepo using generators.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators automate code scaffolding and project setup in a monorepo, reducing boilerplate and ensuring consistency across apps and libraries.

Core Features & Use Cases

  • Scaffold new apps and libraries following existing conventions.
  • Enforce workspace structure and project patterns across the repository.
  • Apply automatic migrations or boilerplate changes when new generators exist.

Quick Start

Ask me to scaffold or set up a project, and I will invoke the appropriate Nx generator with non-interactive mode to create the requested artifact.

Frequently Asked Questions about nx-generate

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

FAQPage Schema
How do I automate scaffolding new apps and libraries in an Nx monorepo?

Automate scaffolding in an Nx monorepo by invoking Nx generators with non-interactive mode. This consults the workspace generator schema to create new apps and libraries while enforcing consistent project patterns across the repository.

What is the best way to enforce consistent workspace structure across an Nx monorepo?

Enforce workspace structure in an Nx monorepo by applying Nx generators during project setup. Generators align generated artifacts with existing repository conventions, ensuring all apps and libraries follow established patterns automatically.

Can I generate projects in an Nx workspace without interactive prompts?

Generate projects in an Nx workspace without interactive prompts by enforcing non-interactive execution with the --no-interactive flag. This allows automated scaffolding of apps and libraries without requiring manual user input during the generator process.

How does an Nx generator schema work when creating new monorepo artifacts?

An Nx generator schema defines the available options and configurations for creating new monorepo artifacts. The generator consults this schema to determine valid inputs, then applies the specified boilerplate and project patterns to scaffold the requested app or library.

When do I need to use Nx generators for project setup?

Use Nx generators for project setup when you need to create new apps and libraries within a monorepo while reducing boilerplate. Generators are essential for applying automatic migrations and ensuring consistent project patterns across the repository.

Does scaffolding with Nx generators align new artifacts with existing repository conventions?

Scaffolding with Nx generators aligns new artifacts with existing repository conventions by consulting the workspace generator schema. This ensures generated apps and libraries match the structural patterns and configurations already established in the monorepo.