nx-generate

Scaffold Nx applications and libraries using guided generator selection and dry-run validation.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/johnnystefan/test-saas-business --skill nx-generate-johnnystefan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/johnnystefan/test-saas-business/tree/main/.github/skills/nx-generate
Command: npx skills add https://github.com/johnnystefan/test-saas-business --skill nx-generate-johnnystefan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Eliminates guesswork when scaffolding Nx applications or libraries by guiding generator selection, option discovery, pattern matching, and verification before execution so code stays consistent across the monorepo.

Core Features & Use Cases

  • Generator Discovery: Shows how to list both plugin and workspace generators, interpret their schemas, and prefer local implementations when possible.
  • Option and Pattern Alignment: Teaches reading generator source code, matching repo conventions, and choosing flags like --no-interactive, directory, and buildable criteria that keep generated artifacts aligned with the architecture.
  • Verification Workflow: Encourages dry runs, source reviews, and post-generation formatting and verification to ensure new projects or features integrate cleanly and pass lint/build targets.

Quick Start

Generate a shared library or app with Nx using --no-interactive after reviewing the appropriate generator and running a dry-run to confirm placement.

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 library in an Nx monorepo without guessing the generator flags?

Scaffolding an Nx library involves listing local and plugin generators, reading their schemas to match repo conventions, and running the command with --no-interactive after validating placement with a dry run.

What is the best way to discover available Nx generators in my workspace?

Discovering Nx generators requires inspecting both plugin and workspace generators, then preferring local implementations to ensure newly scaffolded applications and libraries stay consistent with existing architecture.

How do I verify an Nx project structure creation before applying changes to the monorepo?

Verify Nx project structure creation by executing the generator with a dry-run flag, reviewing the source output, and checking that the new artifacts integrate cleanly and pass lint and build targets.

Can I use Nx generators to enforce consistent directory patterns and buildable criteria across a monorepo?

Yes, Nx generators allow you to enforce consistent directory patterns and buildable criteria by reading generator source code and selecting flags like --no-interactive that align new projects with established architecture.

Why does my Nx generated application fail lint or build targets after scaffolding?

Generated Nx applications may fail lint or build targets if generator options do not match repo conventions, which is why reviewing source code and running post-generation formatting and verification is necessary.