# Nx Generators

> Run Nx generators to create new projects, libraries, components. Use when user needs to generate code, scaffold projects, or understand generator options.

- Skill: `majiayu000/nx-generators` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/nx-generators`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/nx-generators/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/nx-generators

---


# Nx Generators

## Finding and Installing new plugins

- List plugins: `pnpm nx list`
- Install plugins `pnpm nx add <plugin>`. Example: `pnpm nx add @nx/react`.

## Commands

- List generators for plugin: `pnpm nx list @nx/react`
- Generator help: `pnpm nx g @nx/react:application --help`
- Dry run: `pnpm nx g @nx/react:application myapp --dry-run`
- Execute: `pnpm nx g @nx/react:application myapp`

## Workflow

1. Identify which plugin has needed generator
2. Check generator options with `--help`
3. Use `--dry-run` to preview changes
4. Execute generator
5. Run `pnpm nx format:write` after generation

