nx-generate

Map user requests to Nx generators and execute dry-runs.

11|5|Updated Jun 30, 2019
One-click install
npx skills add https://github.com/ikemtz/AngularMonoRepo --skill nx-generate-ikemtz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/ikemtz/AngularMonoRepo/tree/main/src/.opencode/skills/nx-generate
Command: npx skills add https://github.com/ikemtz/AngularMonoRepo --skill nx-generate-ikemtz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators streamline monorepo scaffolding by selecting the right generator and enforcing non-interactive execution.

Core Features & Use Cases

  • Discovers and maps user requests to the appropriate Nx generator, prioritizing local workspace generators when available.
  • Validates options with --help, performs dry-runs, and follows repo conventions to ensure consistent outputs.
  • Provides end-to-end guidance from discovery to formatting and verification.

Quick Start

Instruct it to generate a new library in the workspace with your desired name.

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 library in an Nx monorepo without interactive prompts?▼

To scaffold a new library in an Nx monorepo without interactive prompts, this approach maps your request to the appropriate generator, validates options with --help, and performs a dry-run to ensure consistent outputs.

What is the best way to enforce repo conventions when generating code in a monorepo?▼

The best way to enforce repo conventions when generating code is by prioritizing local workspace generators over default ones. This ensures scaffolding follows existing repo patterns, performs a dry-run, and verifies the generated code builds and passes tests.

How does an Nx generator map to local workspace generators during scaffolding?▼

An Nx generator maps to local workspace generators during scaffolding by reading the generator source, confirming available options with --help, and applying non-interactive execution. This scopes the task correctly to create apps, libs, or migrations within the monorepo.

Can I perform a dry-run before applying Nx monorepo migrations?▼

Yes, you can perform a dry-run before applying Nx monorepo migrations. The process involves scoping the task, validating options with --help, executing the dry-run, and ensuring the resulting code builds and passes tests before final application.

Why does my generated Nx code fail to build after scaffolding?▼

Your generated Nx code might fail to build after scaffolding if generator options were not properly validated or if repo conventions were not followed. The correct process confirms options with --help, performs a dry-run, and ensures the code builds and passes tests.