nx-generate

Identify and execute appropriate Nx generators to scaffold apps/libs in a workspace.

Updated Jun 19, 2025
One-click install
npx skills add https://github.com/bennrwl/psychic-eureka --skill nx-generate-bennrwl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/bennrwl/psychic-eureka/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/bennrwl/psychic-eureka --skill nx-generate-bennrwl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators speed up consistent scaffolding and project structuring in a monorepo by automating repetitive boilerplate, enforcing conventions, and reducing manual setup errors.

This skill provides a structured approach to discovering available generators, selecting the right one, and validating outputs before integrating them into the workspace.

Core Features & Use Cases

  • Discover available generators and plugins
  • Match user requests to the best local workspace generator first
  • Inspect generator options with --help and plan changes safely
  • Perform dry-runs to verify file placements before applying changes
  • Execute generators and post-process outputs (lint/build/test) to validate results
  • Maintain consistency with existing patterns in the repo

Quick Start

Ask for the desired artifact and run the appropriate Nx generator in non-interactive mode.

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 app or library in an Nx monorepo?

Discover available workspace generators and plugins, inspect their options with --help, and execute the matched generator in non-interactive mode to scaffold apps or libraries while adhering to repo conventions.

What is the best way to ensure Nx generators follow existing repo conventions?

Prioritize local workspace generators when available, read their source code to understand behavior, and validate the generated project structure through lint, test, and build processes to maintain consistency.

Can I preview file changes before running an Nx generator?

Yes, you can perform a --dry-run to safely plan changes and verify file placements before the generator actually applies any modifications to the workspace.

How do I automate repetitive boilerplate setup for projects in a monorepo?

Automate repetitive boilerplate setup by using Nx generators to speed up consistent scaffolding and project structuring, enforcing conventions and reducing manual setup errors across the monorepo.

Does Nx generator execution support non-interactive mode?

Yes, Nx generator execution enforces non-interactive usage, allowing you to scaffold project structures and post-process outputs automatically without requiring manual input prompts during generation.

Why should I use workspace generators instead of default Nx generators?

You should use local workspace generators first because they are tailored to match your specific repo conventions, ensuring the generated project structure integrates consistently with existing patterns in the monorepo.