nx-generate

Generate Nx workspace artifacts and project scaffolding for monorepo repositories.

Updated May 5, 2026
One-click install
npx skills add https://github.com/Movchanets/Microservices_Learning --skill nx-generate-movchanets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/Movchanets/Microservices_Learning/tree/main/.agents/skills/nx-generate
Command: npx skills add https://github.com/Movchanets/Microservices_Learning --skill nx-generate-movchanets

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction and risk of manually scaffolding Nx workspaces by guiding the correct generator choice, enforcing non-interactive execution, and reducing workspace drift.

Core Features & Use Cases

  • Generator Discovery: Identifies available local and plugin generators before any changes are made.
  • Repo Pattern Matching: Aligns new apps, libraries, and migrations with existing workspace conventions.
  • Safe Generation Workflow: Encourages source inspection, dry-run validation, and post-generation verification to prevent incorrect file placement or broken builds.
  • Use Case: Use this Skill when you need to create a new library, add an application, or apply a workspace-specific generator in a way that matches the repository’s established structure.

Quick Start

Use the nx-generate skill to discover the right Nx generator and scaffold the requested project with non-interactive validation.

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 Nx workspace library without breaking existing monorepo patterns?

To scaffold an Nx workspace library safely, you need local generator discovery and dry-run validation to align new code with existing repository conventions. This prevents incorrect file placement and workspace drift during app or library creation.

What is the best way to create a new app in an Nx monorepo using non-interactive execution?

Non-interactive Nx app creation uses discovered local generators to apply safe defaults without manual prompts. This approach enforces source inspection and post-generation verification to ensure the new application matches your established workspace structure.

Can I use custom Nx generators for code migrations in a monorepo?

Yes, custom Nx generators can execute code migrations by applying workspace-specific workflows. The process requires identifying available local and plugin generators first, then running them with non-interactive execution to safely update repository artifacts.

Does scaffolding Nx projects require dry-run verification before applying changes?

Dry-run verification is strongly encouraged when scaffolding Nx projects to prevent broken builds and incorrect file placement. It allows you to inspect generated sources and validate the output against existing repository patterns before committing changes.

Why does my Nx generator output not match my existing monorepo structure?

Nx generator output may diverge from your monorepo structure if local generator discovery and repo pattern matching are skipped. Aligning new artifacts with established workspace conventions requires source inspection and applying safe generation workflows.

Do I need to install external dependencies to use the nx-generate skill for workspace scaffolding?

No external dependencies are required to use the nx-generate skill for workspace scaffolding. It relies entirely on discovering local and plugin generators already present in your Nx-based codebase to execute non-interactive project creation.