nx-generate

Generate code artifacts in an Nx monorepo using specified generators.

9|Updated Dec 12, 2023
One-click install
npx skills add https://github.com/Digital-Defiance/BrightChain --skill nx-generate-digital-defiance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/Digital-Defiance/BrightChain/tree/main/.gemini/skills/nx-generate
Command: npx skills add https://github.com/Digital-Defiance/BrightChain --skill nx-generate-digital-defiance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Code Scaffolding: Quickly generate new apps, libraries, or features using predefined Nx generators.
  • Project Structure: Establishes consistent project layouts and configurations across the workspace.
  • Use Case: When starting a new feature, use this skill to generate a new React library with the correct structure and dependencies, following established project patterns.

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 automate code scaffolding for new applications in an Nx monorepo?

Automating code scaffolding in an Nx monorepo involves using predefined Nx generators to create new applications or libraries, which reduces boilerplate code and ensures consistent project structures across the workspace.

What is the best way to generate a new React library in a monorepo?

Generating a React library in a monorepo is best handled by using Nx generators, which establish the correct directory structure and dependencies while adhering to established repository patterns for consistent project layouts.

Can I use Nx generators to enforce existing repository patterns when setting up a new project?

Yes, you can use Nx generators to enforce existing repository patterns during project setup, ensuring that newly generated applications and libraries automatically match your established configurations and workspace conventions.

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

To verify newly generated code artifacts in an Nx workspace, you must run linting, testing, and building processes to ensure the generated applications or libraries meet the required quality and configuration standards.

Does Nx code generation work for automating repetitive monorepo setup tasks?

Yes, Nx code generation works for automating repetitive monorepo setup tasks by applying specified generators to create code artifacts, which streamlines the initialization of features and standardizes configurations across the repository.