nx-generators

Generate projects, libraries, and components using Nx generators with dry-run previews.

1|1|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/juristr/tusky --skill nx-generators
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generators
Source: https://github.com/juristr/tusky/tree/main/.claude/skills/nx-generators
Command: npx skills add https://github.com/juristr/tusky --skill nx-generators

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers scaffold and customize code rapidly using Nx generators.

Core Features & Use Cases

  • Scaffold & scaffold options: Create new apps, libraries, and components with built-in best practices.
  • Discovery & Help: List available generators and get help for plugin options.
  • Safe changes: Use dry-run to preview changes before applying.

Quick Start

  • Dry-run a new app: pnpm nx g @nx/react:application myapp --dry-run
  • Apply the changes: pnpm nx g @nx/react:application myapp

Frequently Asked Questions about nx-generators

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

FAQPage Schema
How do I scaffold a new Nx project, library, or component?

Use Nx generators to scaffold code artifacts with `pnpm nx g [generator-name]`. For example, create a React app with `pnpm nx g @nx/react:application myapp`. Generators apply built-in best practices and formatting automatically.

Can I preview changes before running an Nx generator?

Yes, use the `--dry-run` flag to preview all changes before applying them. Run `pnpm nx g [generator-name] --dry-run` to see what files will be created or modified without committing changes.

How do I discover what Nx generators are available in my workspace?

Run `pnpm nx list` to display all available generators and plugins. Use `pnpm nx g [generator-name] --help` to view specific options and arguments for any generator before execution.

What do I need to use Nx generators?

Nx generators require pnpm and the Nx CLI installed in your workspace. After generation completes, run `pnpm nx format:write` to enforce consistent code formatting across your scaffolded artifacts.

Can I add new generator plugins to my Nx workspace?

Yes, use `pnpm nx add [plugin-name]` to install and register new generator plugins. This discovers additional generators beyond the core Nx offerings available in your workspace.

Why should I use generators instead of manually creating project files?

Generators apply consistent project structure and best practices automatically, reducing setup errors and saving time. Dry-run preview lets you validate changes before committing, making scaffold creation safer and more predictable.