# Run Nx Generators Safely

Nx workspaces often have several generator choices, including internal workspace-plugin tools. This skill helps Claude, Codex, or Claude Code choose, run, and verify the right generator.

## Install

```bash
npx skillstore add nrwl/run-nx-generator
```

## Metadata

- Status: approved
- Slug: nrwl-run-nx-generator
- Skillstore revision: r1
- Version status: missing
- Tree hash: 23508a4ecd9deb51100ef3f01667d972765da0db23ee6270fd962bd2257fc487
- Author: nrwl
- GitHub username: nrwl
- License: MIT
- Repository: https://github.com/nrwl/nx/tree/master/.claude/skills/run-nx-generator/
- Ref: 62e2a730c5cd74eab4c7164309d810de660fcea3
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/nrwl-run-nx-generator
- Manifest: https://skillstore.pages.dev/api/skills/nrwl-run-nx-generator/manifest

## Capabilities

- Prioritizes workspace-plugin generators before core Nx generators.
- Guides users to inspect generator schemas with the Nx MCP schema tool.
- Provides a standard workflow for running Nx generators with paths and options.
- Recommends dry-run previews before applying generated changes.
- Recommends affected tests, formatting, file review, and separate generator commits.
- Includes examples for Maven version bumps and create-nodes plugin creation.

## Use Cases

- Scaffold Workspace Features: Use the preferred workspace generator before falling back to standard Nx generators.
- Create Nx Plugins: Generate create-nodes plugins with a repeatable schema-first workflow.
- Automate Version Updates: Apply internal generators for Maven plugin version bumps and related workspace changes.

## Prompt Templates

### Find the Right Generator

```
Use run-nx-generator to identify the best workspace-plugin generator for adding a new React library.
```

### Preview a Generator Run

```
Use run-nx-generator to inspect the schema for a Node library generator and prepare a dry-run plan for a billing library.
```

### Generate and Verify Changes

```
Use run-nx-generator to create a create-nodes plugin named asset-indexer, then list the files to review and tests to run.
```

### Plan Version Automation

```
Use run-nx-generator to plan a Maven plugin version bump to 0.0.10 for Nx 22.1.0-beta.7. Prefer workspace-plugin generators.
```

## Limitations

- Requires an Nx workspace with the needed generators and dependencies installed.
- Does not validate the internal behavior of local workspace-plugin generators.
- Generated files may still need manual review, edits, and test fixes.
- Uses shell commands, so users should confirm commands before execution.

## Best Practices

- Start with workspace-plugin generators and inspect the schema before choosing options.
- Use dry-run previews and review generated files before applying changes.
- Run affected tests and format generated files after generation.

## Anti Patterns

- Running a generator before checking its schema or workspace-specific alternative.
- Mixing generator output with unrelated manual edits in one commit.
- Skipping review because a generator produced the files automatically.

## Security Audit

- Audited at: 2026-07-05T20:01:51.44\+00:00
- Summary: The static findings are Markdown backtick and code block detections around documented Nx commands, not Ruby shell execution. The skill does intentionally guide shell-based Nx workflows, so users should review generated commands and workspace changes before execution. No prompt injection, data exfiltration, or hidden malicious intent was found in SKILL.md.

## Stats

- Views: 212
- Downloads: 10
- Favorites: 0
- Popularity score: 0
