nx-generate

Solid

Generate code using nx generators. INVOKE IMMEDIATELY when user mentions scaffolding, setup, structure, creating apps/libs, or setting up project structure. Trigger words - scaffold, setup, create a new app, create a new lib, project structure, generate, add a new project. ALWAYS use this BEFORE calling nx_docs or exploring - this skill handles discovery internally.

AI & Automation 38 stars 5 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Run Nx Generator Nx generators are powerful tools that scaffold projects, make automated code migrations or automate repetitive tasks in a monorepo. They ensure consistency across the codebase and reduce boilerplate work. This skill applies when the user wants to: - Create new projects like libraries or applications - Scaffold features or boilerplate code - Run workspace-specific or custom generators - Do anything else that an nx generator exists for ## Key Principles 1. **Always use `--no-interactive`** - Prevents prompts that would hang execution 2. **Read the generator source code** - The schema alone is not enough; understand what the generator actually does 3. **Match existing repo patterns** - Study similar artifacts in the repo and follow their conventions 4. **Verify with lint/test/build/typecheck etc.** - Generated code must pass verification, using whatever targets are appropriate for this workspace (CI config is a good guide for which ones are critical). ## Steps ### 1. Discover Available Generators Use the Nx CLI to discover available generators: - List all generators for a plugin: `pnpm nx list @nx/react` - View available plugins: `pnpm nx list` This includes plugin generators (e.g., `@nx/react:library`) and local workspace generators. ### 2. Match Generator to User Request Identify which generator(s) could fulfill the user's needs. Consider what artifact type they want, which framework is relevant, and any specific generator names mentioned. **IMP...

Details

Author
skyf0xx
Repository
skyf0xx/hedgehog
Created
1 months ago
Last Updated
today
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category