nx-generate

Generate app and library scaffolds in a monorepo using Nx generators.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/raopriyam/rpriyam-8dd1bfab-e986-4225-92b8-506ba7ad24bf --skill nx-generate-raopriyam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/raopriyam/rpriyam-8dd1bfab-e986-4225-92b8-506ba7ad24bf/tree/main/.opencode/skills/nx-generate
Command: npx skills add https://github.com/raopriyam/rpriyam-8dd1bfab-e986-4225-92b8-506ba7ad24bf --skill nx-generate-raopriyam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx generators scaffold projects, migrate code, and automate repetitive tasks in a monorepo to ensure consistency and reduce boilerplate work.

Core Features & Use Cases

  • Create new projects like libraries or applications
  • Scaffold features or boilerplate code
  • Run workspace-specific or custom generators
  • Follow repo conventions and validate results with lint/build/typecheck

Quick Start

Tell me what to scaffold and I will run the appropriate nx generator with --no-interactive to create the requested app or library.

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

To scaffold a new app or library in an Nx monorepo, use Nx generators with the --no-interactive flag. This enforces reliable code generation by applying project structure conventions automatically without requiring manual input during execution.

What is the best way to automate boilerplate creation and ensure consistency across a monorepo?

Using Nx generators is the best way to automate boilerplate creation in a monorepo. Generators apply predefined project structures to initialize apps and libraries, ensuring consistency and reducing repetitive manual setup across the workspace.

How do I discover custom or workspace-specific Nx generators before running them?

To discover workspace-specific Nx generators, you should read the generator sources directly. Reviewing the source code helps you understand the available scaffolding options and identify any side effects before applying the generator to your project.

Does generating code with Nx modify existing files, and how do I validate the results?

Nx generators can modify existing files depending on their implementation. You should validate the generated code scaffolds by running lint, build, and typecheck tasks to ensure the new or updated project structure maintains workspace conventions.

Why should I read generator sources before scaffolding code in my monorepo?

Reading generator sources is necessary to understand side effects before scaffolding code. It reveals exactly how the Nx generator initializes apps and libs, applies project structure, and what automated changes it will make to your monorepo.