nx-generate

Scaffold applications and libraries in an Nx monorepo using workspace-specific generators.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/AyalaKaguya/hermes-swarm --skill nx-generate-ayalakaguya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/AyalaKaguya/hermes-swarm/tree/main/.opencode/skills/nx-generate
Command: npx skills add https://github.com/AyalaKaguya/hermes-swarm --skill nx-generate-ayalakaguya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates manual boilerplate creation and configuration errors when adding new applications or libraries to an Nx monorepo, ensuring architectural consistency.

Core Features & Use Cases

  • Automated Scaffolding: Instantly generate new apps, libraries, or features using standardized workspace patterns.
  • Consistency Enforcement: Automatically applies linting, testing, and build configurations that match existing repository standards.
  • Use Case: When you need to add a new shared utility library, this skill identifies the correct local generator, validates the path, and ensures the new code integrates seamlessly with the existing build pipeline.

Quick Start

Use the nx-generate skill to create a new non-buildable library named shared-utils in the packages 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 scaffolding for new apps and libraries in an Nx monorepo?

To scaffold a shared utility library in an Nx monorepo, the generator identifies the correct local plugin, validates the target directory path, and applies necessary configuration flags. It ensures the new code integrates seamlessly with existing build pipelines without manual setup.

Can I enforce linting and testing standards when generating code in an Nx workspace?

Yes, enforcing linting and testing standards during Nx code generation is achieved by applying automated dry-runs. The generator verifies build, lint, and test targets automatically, ensuring generated artifacts adhere to existing repository standards before integration.

Does Nx code generation work with TypeScript monorepo plugins?

Nx code generation works directly with TypeScript monorepo plugins by identifying appropriate workspace generators and applying necessary configuration flags. It ensures generated TypeScript artifacts match existing repository patterns and pass automated build verifications.

What is the best way to add a shared utility library to an Nx monorepo?

Nx code generation eliminates manual boilerplate creation by automating the scaffolding of applications and libraries. It prevents configuration errors and ensures architectural consistency by applying standardized workspace patterns automatically.

What happens if generated artifacts fail build or lint checks in an Nx workspace?

If generated artifacts fail build or lint checks, the Nx scaffolding process identifies these issues through automated dry-runs and verification of build, lint, and test targets. This ensures architectural consistency by catching configuration errors before integration.