nx-generate

Generate code artifacts in an Nx monorepo using Nx generators.

1|Updated Aug 21, 2022
One-click install
npx skills add https://github.com/zzk13180/seed --skill nx-generate-zzk13180
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/zzk13180/seed/tree/main/.github/skills/nx-generate
Command: npx skills add https://github.com/zzk13180/seed --skill nx-generate-zzk13180

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

  • Code Scaffolding: Generate new apps, libraries, or features using predefined Nx generators.
  • Monorepo Consistency: Enforces project structure and conventions across the workspace.
  • Use Case: Quickly set up a new React feature library for your application by invoking the appropriate Nx generator.

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

To scaffold a React library in an Nx monorepo, use Nx generators to create the project, ensuring consistency and reducing boilerplate code according to predefined workspace patterns.

What is the best way to automate project setup and reduce boilerplate in a monorepo?

Automating project setup in a monorepo is best achieved by using Nx generators to scaffold new applications and libraries, enforcing structural consistency and eliminating repetitive boilerplate code across the workspace.

Do I need to inspect source code before generating new applications with Nx generators?

Yes, generating code artifacts with Nx generators requires source code inspection and adherence to generator schemas to ensure the new applications or libraries match predefined workspace patterns before verification.

How does code generation enforce monorepo consistency for new features?

Code generation enforces monorepo consistency by using predefined Nx generators to scaffold new features, ensuring that all newly created applications and libraries automatically adhere to the established project structure and conventions.

Can I verify generated code artifacts through build and lint targets?

Yes, you can verify generated code artifacts through build and lint targets, which ensures that the newly scaffolded applications and libraries meet the workspace's quality and structural standards after generation.