nx-generate

Generate code and project structures in an Nx monorepo using Nx generators.

8.9k|947|Updated Feb 5, 2020
One-click install
npx skills add https://github.com/tsparticles/tsparticles --skill nx-generate-tsparticles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/tsparticles/tsparticles/tree/main/.cursor/skills/nx-generate
Command: npx skills add https://github.com/tsparticles/tsparticles --skill nx-generate-tsparticles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Project Scaffolding: Quickly generate new apps and libraries using predefined Nx generators.
  • Code Generation: Automate repetitive coding tasks and enforce project structure.
  • Use Case: When a user wants to add a new React feature library to the monorepo, this skill will use the appropriate Nx generator to create the library structure, configuration files, and basic code.

Quick Start

Use the nx-generate skill to create a new React library named 'ui-common' within the 'libs' directory.

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 or library in an Nx monorepo?

To scaffold a new application or library in an Nx monorepo, use Nx generators to automatically create the project structure, configuration files, and boilerplate code. This enforces consistent workspace patterns across the repository.

What is the best way to automate code generation for repetitive project structures in a monorepo?

Automating code generation in a monorepo is best handled by using Nx generators to apply predefined schemas. This automatically creates consistent project structures and reduces manual boilerplate coding for new features.

Can I use Nx generators to add a new React feature library to my workspace?

Yes, you can use Nx generators to add a new React feature library to your workspace. The generator automatically creates the library structure, configuration files, and basic code within the specified directory.

Do I need to understand existing repository patterns to generate code with Nx?

Yes, effective code generation with Nx requires understanding of Nx generator schemas, source code, and existing repository patterns. This ensures the newly generated applications and libraries match your workspace conventions.

How does project scaffolding with Nx generators reduce boilerplate code?

Project scaffolding with Nx generators reduces boilerplate code by automatically generating project structures and configuration files based on predefined schemas. This ensures consistency and eliminates manual setup for new apps and libraries.