nx-generate

Select and run Nx generators to scaffold apps or libraries in a monorepo.

Updated May 14, 2026
One-click install
npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill nx-generate-chroniicallydiistracted
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/chroniicallydiistracted/LorcanaChamp/tree/main/references/lorcana-simulator/.opencode/skills/nx-generate
Command: npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill nx-generate-chroniicallydiistracted

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npx, node, and includes references (resource) components.

What problem does it solve?

nx-generate removes uncertainty and wasted time when setting up new projects in an Nx monorepo by guiding you to the right generator, with the correct options and repo-specific conventions.

Core Features & Use Cases

  • Generator discovery and selection: Finds the appropriate Nx generator (workspace or plugin) for the requested scaffolding task.
  • Correct execution workflow: Enforces --no-interactive and recommends reading generator source code to avoid surprises.
  • Safe verification loop: Uses --dry-run first when supported, then runs the generator and validates placement and targets against existing repo patterns.
  • Use Case: When you want to add a new library or app inside a monorepo, nx-generate helps ensure the generated files, configs, and test/build expectations align with the workspace conventions.

Quick Start

Tell the assistant: “Create a new Nx library for this monorepo, and run the generator in non-interactive mode using a dry-run first, then execute with the correct project layout.”

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 Nx library without interactive prompts blocking the terminal?

To scaffold an Nx library without prompts, run the generator using the --no-interactive flag. The nx-generate workflow discovers the correct workspace or plugin generator, inspects its source for side effects, and verifies the output with a dry-run before execution. This ensures generated files align with existing monorepo patterns.

What's the best way to discover available Nx generators for project scaffolding in a monorepo?

Discovering available Nx generators for project scaffolding involves querying the workspace and installed plugins. The nx-generate process automates finding the appropriate generator for your task, inspecting its source code to anticipate side effects, and validating the resulting project folders against existing repository conventions before applying changes.

Why should I use a dry-run before executing an Nx generator to create a new app?

Using a dry-run before executing an Nx generator creates a safe verification loop. It allows you to validate the placement of generated artifacts, check configurations, and ensure test and build expectations align with the workspace conventions without actually modifying the codebase or creating unwanted side effects.

Can I use workspace generators to enforce repo-specific conventions when adding new projects?

Yes, you can use workspace generators to enforce repo-specific conventions. The nx-generate workflow aligns generated artifacts, configurations, and test expectations to existing repository patterns, ensuring that newly created libraries or apps integrate correctly with the established monorepo structure.

Do I need Node and npx installed to run Nx generators for project scaffolding?

Yes, you need Node and npx installed to run Nx generators for project scaffolding. These dependencies are required to execute the generator commands, discover available plugins, perform dry-run verification, and apply the generated files and configurations to your monorepo workspace.