nx-generate

Run Nx generators non-interactively to scaffold apps and libraries.

14|5|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/TheCardGoat/lorcana-simulator --skill nx-generate-thecardgoat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/TheCardGoat/lorcana-simulator/tree/main/.opencode/skills/nx-generate
Command: npx skills add https://github.com/TheCardGoat/lorcana-simulator --skill nx-generate-thecardgoat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the guesswork and trial-and-error involved in scaffolding new code in an Nx monorepo by guiding you to the correct generator, options, and repo-aligned structure.

Core Features & Use Cases

  • Discover the right Nx generator by listing available generators and matching them to the requested artifact (app, library, feature).
  • Generate safely and consistently by using non-interactive mode, checking generator options, and verifying placement with a dry run.
  • Validate and integrate output by reading generator source code, aligning with existing repo patterns, formatting, and running the appropriate verification targets.

Quick Start

Use nx-generate when you want to create a new library or application structure in this monorepo: "Generate a new Nx library for my feature following the repo conventions, using non-interactive mode, dry-run first, and then run lint and typecheck."

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 to match existing monorepo conventions?

To scaffold an Nx library with consistent conventions, select the correct generator, run it in non-interactive mode, and perform a dry-run first to verify placement before applying changes and running lint or typecheck targets.

What is the best way to generate Nx apps without interactive prompts?

The best way to generate Nx apps without prompts is using the --no-interactive flag, reading generator source code for options, and preferring local workspace generators over external plugins to ensure repo alignment.

Why does my Nx generator output not match my codebase conventions?

Your Nx generator output might not match codebase conventions if you bypassed local workspace generators or skipped reading the generator source code to align options with established repo patterns and formatting.

Can I preview scaffolding changes in an Nx monorepo before committing?

Yes, you can preview scaffolding changes in an Nx monorepo by performing a dry-run, which allows you to verify the artifact placement and structure against repo conventions before actually applying the generator.

How do I validate code structure after running an Nx generator?

To validate code structure after running an Nx generator, apply the scaffolded changes, ensure they align with existing repo patterns, and verify the output by running relevant lint, test, typecheck, and build targets.