nx-generate

Generates code scaffolding and manages projects in Nx workspaces via deterministic, non-interactive commands.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HL8-ORG/oksai --skill nx-generate-hl8-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-generate
Source: https://github.com/HL8-ORG/oksai/tree/main/.opencode/skills/nx-generate
Command: npx skills add https://github.com/HL8-ORG/oksai --skill nx-generate-hl8-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolding Nx workspaces and creating consistent project structure is automated, saving time and preventing configuration drift across monorepos.

Core Features & Use Cases

  • Scaffolds new libraries and applications inside an Nx workspace with deterministic results.
  • Validates generator options against repository patterns and performs non-interactive execution to avoid prompts.
  • Performs dry-run checks and promotes adherence to lint/build/typecheck standards before applying changes.
  • Use Case: When starting a new feature area, invoke this skill to generate a ready-to-use library structure that follows project conventions.

Quick Start

Ask it to scaffold a new library in your Nx workspace with non-interactive mode and conservative defaults.

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 workspace without interactive prompts?

To scaffold an Nx workspace library without interactive prompts, use local deterministic generators executed with the --no-interactive flag. This ensures non-interactive execution with conservative defaults, preventing configuration drift and saving time when creating new project structures.

What is the best way to enforce repository conventions across a monorepo?

The best way to enforce repository conventions across a monorepo is using Nx scaffolding generators that validate options against repository patterns. This automated approach ensures consistent project structure and prevents configuration drift across all libraries and applications.

How does dry-run checking work for Nx monorepo generators?

Dry-run checking for Nx generators validates generator options against repository patterns before applying changes. It performs lint, build, and typecheck target validations to ensure correctness and promote adherence to standards before actually modifying the workspace.

Can I use Nx generators to perform migrations in a monorepo?

Yes, you can use Nx generators to perform migrations in a monorepo. The scaffolding process reads local generator sources and executes them deterministically to update project structures, creating libraries or apps while enforcing repository conventions.

What validation steps are required after generating code scaffolding in an Nx workspace?

After generating code scaffolding in an Nx workspace, validation requires running lint, test, build, or typecheck targets. These checks ensure correctness and promote adherence to standards before the generated library or application structure is finalized.