nx-generate

Generate applications and libraries within an Nx monorepo using Nx generators.

Updated May 21, 2025
One-click install
npx skills add https://github.com/stixx200/fotobox-v2 --skill nx-generate-stixx200
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/stixx200/fotobox-v2/tree/main/.github/skills/nx-generate
Command: npx skills add https://github.com/stixx200/fotobox-v2 --skill nx-generate-stixx200

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of new projects, libraries, and applications within an Nx monorepo, ensuring consistency and reducing manual setup time.

Core Features & Use Cases

  • Project Scaffolding: Generates new applications and libraries using Nx plugins.
  • Code Generation: Automates the creation of boilerplate code and features.
  • Workspace Consistency: Enforces project structure and conventions across the monorepo.
  • Use Case: Quickly set up a new React library for shared components following established project patterns.

Quick Start

Use the nx-generate skill to create a new React application named 'admin-dashboard'.

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 application within an Nx monorepo?

You can scaffold a new application within an Nx monorepo by using Nx generators to automate project creation. This enforces structural conventions, ensures workspace consistency, and reduces manual setup time.

What is the best way to generate boilerplate code for a React library in an Nx workspace?

Generating boilerplate code for a React library in an Nx workspace is best handled by Nx generators. They automate feature creation while strictly adhering to established repository patterns and project structure conventions.

Can I use Nx generators to create shared components without breaking existing monorepo patterns?

Yes, you can use Nx generators to create shared components without breaking existing monorepo patterns. The generation process requires adherence to established repository patterns to maintain workspace consistency.

How do I verify newly generated code artifacts in an Nx workspace?

You verify newly generated code artifacts in an Nx workspace by running linting, testing, and building processes. This verification step is required after applying Nx generators to ensure the new code integrates correctly.

Does scaffolding projects with Nx plugins work for both libraries and applications?

Scaffolding projects with Nx plugins works for both libraries and applications. The generators apply to scenarios requiring the creation of various code artifacts, including shared component libraries and standalone applications.