code-generator-patterns

Automate Nx generator creation with templates, prompts, and file-generation patterns.

1|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/JimmyPaolini/monorepo --skill code-generator-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generator-patterns
Source: https://github.com/JimmyPaolini/monorepo/tree/main/documentation/skills/code-generator-patterns
Command: npx skills add https://github.com/JimmyPaolini/monorepo --skill code-generator-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating and maintaining Nx generators can be repetitive and error-prone. This skill provides patterns and guidance for building and extending generators with templates, prompts, and file generation to ensure consistency across projects.

Core Features & Use Cases

  • Directory layout and conventions for code-generator tooling under tools/code-generator
  • Templates, schemas, and generator.ts patterns to standardize generator implementations
  • Reusable patterns for interactive prompts, file generation, and multi-generator composition

Quick Start

Install and inspect the code-generator-patterns skeleton to begin structuring your Nx generators and apply the documented patterns in your workspace.

Frequently Asked Questions about code-generator-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom Nx generators for project scaffolding?

Nx generators are automated project scaffolding tools that use templates, prompts, and file-generation patterns. They enable consistent generator development and onboarding for new team members across Nx workspaces.

How do I add interactive prompts to an Nx generator?

You add interactive prompts to Nx generators by defining input fields in schema.json. The generator.ts implementation then reads these prompt responses to dynamically customize file generation and project scaffolding.

What is the recommended directory layout for Nx generator development?

The recommended directory layout for Nx generator tooling is under the tools/code-generator path. This convention standardizes templates, schemas, and generator.ts implementations to maintain consistent file generation.

Can I compose multiple Nx generators into a single scaffolding task?

Yes, you can compose multiple Nx generators using reusable patterns for multi-generator composition. This approach orchestrates complex project scaffolding workflows and ensures consistent file generation across an Nx workspace.

Do I need Nx to use these code generator patterns and templates?

Yes, these code generator patterns require an Nx workspace environment. They are specifically designed to automate the creation and extension of Nx generators by documenting schemas, interactive prompts, and file-generation structures.