nx-generate
Skill1.7k starsChanged 9 days agoMITView on GitHub
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 ... app, create a ... lib, project structure, generate, add a new project. ALWAYS use this BEFORE calling nx_docs or exploring - this skill handles discovery internally.
15 other projects use a version of this, 7 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- getlarge/themoltnetedited, first seen Nov 3, 2026
- code-dimension/code-dimension-skillsedited, first seen Oct 17, 2026
- nrwl/nx-consoleword for word, first seen Oct 8, 2026
- ever-co/ever-teamsword for word, first seen Oct 8, 2026
- dotCMS/coreedited, first seen Oct 8, 2026
- epam/ai-dial-chatword for word, first seen Oct 8, 2026
Who's talking about daveyplate/better-auth-ui
- AmanVarshney01/create-better-t-stack“Feature request: better-auth-ui”GitHub · Jun 13, 2025 · 8 reactions
- better-auth-ui/better-auth-ui“providers-card not showing linked providers correctly”GitHub · Sep 15, 2025 · 2 reactions
- better-auth-ui/better-auth-ui“[Feature request] Show Gravatar images as fallback only if user avatar is not available”GitHub · Sep 30, 2025 · 1 reactions
- better-auth/better-auth“Add new hook useActiveMemberRole on the authClient”GitHub · Sep 2, 2025 · 1 reactions
- gustavovalverde/zentity“chore(deps): bump the prod-dependencies group across 1 directory with 69 updates”GitHub · Oct 19, 2026
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Jun 13, 2025Feature request: better-auth-ui — AmanVarshney01/create-better-t-stack8 reactions · 3 comments
- Sep 15, 2025providers-card not showing linked providers correctly — better-auth-ui/better-auth-ui2 reactions · 6 comments
- Sep 30, 2025[Feature request] Show Gravatar images as fallback only if user avatar is not available — better-auth-ui/better-auth-ui1 reaction · 1 comment
- Sep 2, 2025Add new hook useActiveMemberRole on the authClient — better-auth/better-auth1 reaction · 2 comments
- Oct 19, 2026chore(deps): bump the prod-dependencies group across 1 directory with 69 updates — gustavovalverde/zentity0 reactions · 2 comments
45 more on GitHub
- Oct 13, 2026chore(deps): bump the prod-dependencies group across 1 directory with 68 updates — gustavovalverde/zentity0 reactions · 2 comments
- Oct 5, 2026chore(deps): bump the prod-dependencies group across 1 directory with 59 updates — gustavovalverde/zentity0 reactions · 2 comments
- Sep 29, 2026chore(deps): bump the prod-dependencies group across 1 directory with 58 updates — gustavovalverde/zentity0 reactions · 2 comments
- Aug 25, 2026build(deps): bump the production-dependencies group with 2 updates — moira-mcp/moira0 reactions
- Aug 25, 2026build(deps): bump the production-dependencies group with 3 updates — moira-mcp/moira0 reactions · 2 comments
- Aug 25, 2026build(deps): bump the production-dependencies group with 4 updates — moira-mcp/moira0 reactions · 2 comments
- Aug 25, 2026build(deps): bump the production-dependencies group with 3 updates — moira-mcp/moira0 reactions · 2 comments
- Aug 24, 2026build(deps): bump the production-dependencies group across 1 directory with 35 updates — moira-mcp/moira0 reactions · 2 comments
- Aug 24, 2026build(deps): bump the production-dependencies group with 59 updates — moira-mcp/moira0 reactions · 1 comment
- Aug 18, 2026chore(deps): bump @daveyplate/better-auth-ui from 3.2.0 to 3.4.0 — lolimmlost/app-map-appahouse0 reactions · 1 comment
- Jun 15, 2026chore(deps): bump the prod-dependencies group across 1 directory with 49 updates — gustavovalverde/zentity0 reactions · 2 comments
- Jun 8, 2026chore(deps): bump the prod-dependencies group across 1 directory with 36 updates — gustavovalverde/zentity0 reactions · 2 comments
- Jun 3, 2026chore(deps): bump the prod-dependencies group across 1 directory with 34 updates — gustavovalverde/zentity0 reactions · 2 comments
- Jun 3, 2026chore(deps): bump the prod-dependencies group across 1 directory with 49 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 25, 2026chore(deps): bump the prod-dependencies group across 1 directory with 46 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 19, 2026chore(deps): bump the prod-dependencies group across 1 directory with 44 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 12, 2026chore(deps): bump the prod-dependencies group across 1 directory with 40 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 8, 2026chore(deps): bump the prod-dependencies group across 1 directory with 39 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 8, 2026chore(deps): bump the prod-dependencies group across 1 directory with 40 updates — gustavovalverde/zentity0 reactions · 2 comments
- May 4, 2026chore(deps): bump the prod-dependencies group across 1 directory with 36 updates — gustavovalverde/zentity0 reactions · 2 comments
- Apr 27, 2026chore(deps): bump the prod-dependencies group across 1 directory with 33 updates — gustavovalverde/zentity0 reactions · 2 comments
- Apr 24, 2026chore(deps): bump the prod-dependencies group across 1 directory with 32 updates — gustavovalverde/zentity0 reactions · 2 comments
- Apr 20, 2026chore(deps): bump the prod-dependencies group across 1 directory with 34 updates — gustavovalverde/zentity0 reactions · 2 comments
- Apr 20, 2026chore(deps): bump the prod-dependencies group across 1 directory with 36 updates — gustavovalverde/zentity0 reactions · 2 comments
- Apr 11, 2026chore(deps): bump the prod-dependencies group across 1 directory with 28 updates — gustavovalverde/zentity0 reactions · 2 comments
- Mar 30, 2026deps(deps): bump the minor-and-patch group across 1 directory with 35 updates — vleletko/planner0 reactions · 1 comment
- Jan 12, 2026chore(deps): bump @daveyplate/better-auth-ui from 3.3.14 to 3.3.15 — a1um1/v-template0 reactions · 1 comment
- Jan 12, 2026build(deps): bump the version group with 7 updates — MuntasirSZN/csmc0 reactions · 2 comments
- Jan 12, 2026build(deps): bump the prod-deps-patch group with 2 updates — trunklabs/marshant0 reactions · 1 comment
- Jan 5, 2026build(deps): bump the version group with 4 updates — MuntasirSZN/csmc0 reactions · 1 comment
- Dec 25, 2025build(deps): bump @daveyplate/better-auth-ui from 3.3.9 to 3.3.10 in the version group — MuntasirSZN/csmc0 reactions · 1 comment
- Dec 4, 2025chore(deps): bump the patch-updates group across 1 directory with 25 updates — taucad/tau0 reactions · 4 comments
- Dec 1, 2025chore(deps): bump @daveyplate/better-auth-ui from 3.2.11 to 3.2.13 — a1um1/v-template0 reactions · 1 comment
- Nov 24, 2025build(deps): bump the version group with 4 updates — MuntasirSZN/csmc0 reactions · 3 comments
- Nov 21, 2025build(deps): bump the version group with 2 updates — MuntasirSZN/csmc0 reactions · 2 comments
- Nov 17, 2025build(deps): bump the version group with 2 updates — MuntasirSZN/csmc0 reactions · 3 comments
- Nov 11, 2025PasskeyCard doesn't properly handle errors — better-auth-ui/better-auth-ui0 reactions · 1 comment
- Nov 3, 2025Docs Update: Use per-request QueryClient in TanStack Start integration — better-auth-ui/better-auth-ui0 reactions · 2 comments
- Oct 30, 2025build(deps): bump the version group with 3 updates — MuntasirSZN/csmc0 reactions · 3 comments
- Oct 15, 2025build(deps): bump @daveyplate/better-auth-ui from 3.2.5 to 3.2.6 in the version group — MuntasirSZN/csmc0 reactions · 2 comments
- Oct 9, 2025FAILED_TO_UNLINK_LAST_ACCOUNT Localization Fails in AuthUIProvider — better-auth-ui/better-auth-ui0 reactions · 2 comments
- Sep 24, 2025[AUTH] Upgrade @daveyplate/better-auth-ui to v3 — atomly/journl0 reactions
- Sep 17, 2025fix: CSS variable syntax as an arbitrary value shorthand — better-auth-ui/better-auth-ui0 reactions · 5 comments
- Sep 17, 2025build(deps): bump the version group with 4 updates — MuntasirSZN/csmc0 reactions · 2 comments
- Sep 15, 2025build(deps): bump the version group with 3 updates — MuntasirSZN/csmc0 reactions · 2 comments
Other versions15 projects use a version of this.
Word for word · 8
- tsparticles/tsparticles★ 9.1k100% same
- better-auth-ui/better-auth-ui★ 1.7k100% same
- nrwl/nx-console★ 1.4k100% same
- ever-co/ever-teams★ 606100% same
- epam/ai-dial-chat★ 501100% same
- conectlens/lenserfight★ 18100% same
- anayatkhan1/kit★ 16100% same
- codeaiforge/ai-ready-nx-workspace★ 2100% same
Edited · 7
- nrwl/nx★ 29k99% same
- supabase/supabase-js★ 4.6k99% same
- dotCMS/core★ 97199% same
- getlarge/themoltnet★ 2899% same
- socialrobot-io/agent-kit★ 699% same
- code-dimension/code-dimension-skills★ 399% same
- storm-software/sourcebook★ 0100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- link-workspace-packagesSkill
- monitor-ciSkill
- nx-importSkill
- nx-pluginsSkill
- nx-run-tasksSkill
- nx-workspaceSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 11 are common, 0 are distinctive, and 3 are very specific to this project.
11
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 12
Create new projects like libraries or applications
- Common: line 14
Run workspace-specific or custom generators
- Common: line 15
Do anything else that an nx generator exists for
- Common: line 28
Use the Nx CLI to discover available generators:
- Common: line 39
IMPORTANT: When both a local workspace generator and an external plugin generator could satisfy the request, always prefer the local …
- Common: line 41
If no suitable generator exists, you can stop using this skill.
- Very specific: line 45
Use the --help flag to understand available options:
- Very specific: line 88
If that fails, read directly from node_modules/<plugin>/generators.json
- Common: line 91
After reading the source, reconsider: Is this the right generator?
- Common: line 108
Before generating, examine the target area of the codebase:
- Common: line 110
Look at similar existing artifacts (other libraries, applications, etc.)
- Common: line 141
Add or modify functionality as requested
- Very specific: line 145
Important: If you replace or delete generated test files (e.g., *.spec.ts), either write meaningful replacement tests or remove the test …
- Common: line 166
If verification fails with manageable issues (a few lint errors, minor type issues), fix them.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Always use
--no-interactive- Prevents prompts that would hang execution - Read the generator source code - The schema alone is not enough; understand what the generator actually does
- Match existing repo patterns - Study similar artifacts in the repo and follow their conventions
- Verify with lint/test/build/typecheck etc. - Generated code must pass verification. The listed targets are just an example, use what's appropriate for this workspace.
Steps
1. Discover Available Generators
Use the Nx CLI to discover available generators:
- List all generators for a plugin:
npx nx list @nx/react - View available plugins:
npx 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.
IMPORTANT: When both a local workspace generator and an external plugin generator could satisfy the request, always prefer the local workspace generator. Local generators are customized for the specific repo's patterns.
If no suitable generator exists, you can stop using this skill. However, the burden of proof is high—carefully consider all available generators before deciding none apply.
3. Get Generator Options
Use the --help flag to understand available options:
npx nx g @nx/react:library --helpPay attention to required options, defaults that might need overriding, and options relevant to the user's request.
Library Buildability
Default to non-buildable libraries unless there's a specific reason for buildable.
| Type | When to use | Generator flags |
| Non-buildable (default) | Internal monorepo libs consumed by apps | No --bundler flag |
| Buildable | Publishing to npm, cross-repo sharing, stable libs for cache hits | --bundler=vite or --bundler=swc |
Non-buildable libs:
- Export
.ts/.tsxsource directly - Consumer's bundler compiles them
- Faster dev experience, less config
Buildable libs:
- Have their own build target
- Useful for stable libs that rarely change (cache hits)
- Required for npm publishing
If unclear, ask the user: "Should this library be buildable (own build step, better caching) or non-buildable (source consumed directly, simpler setup)?"
4. Read Generator Source Code
This step is critical. The schema alone does not tell you everything. Reading the source code helps you:
- Know exactly what files will be created/modified and where
- Understand side effects (updating configs, installing deps, etc.)
- Identify behaviors and options not obvious from the schema
- Understand how options interact with each other
To find generator source code:
- For plugin generators: Use
node -e "console.log(require.resolve('@nx/<plugin>/generators.json'));"to find the generators.json, then locate the source from there - If that fails, read directly from
node_modules/<plugin>/generators.json - For local generators: Typically in
tools/generators/or a local plugin directory. Search the repo for the generator name.
After reading the source, reconsider: Is this the right generator? If not, go back to step 2.
⚠️
--directoryflag behavior can be misleading. It should specify the full path of the generated library or component, not the parent path that it will be generated in.# ✅ Correct - directory is the full path for the library nx g @nx/react:library --directory=libs/my-lib # generates libs/my-lib/package.json and more # ❌ Wrong - this will create files at libs and libs/src/... nx g @nx/react:library --name=my-lib --directory=libs # generates libs/package.json and more
5. Examine Existing Patterns
Before generating, examine the target area of the codebase:
- Look at similar existing artifacts (other libraries, applications, etc.)
- Identify naming conventions, file structures, and configuration patterns
- Note which test runners, build tools, and linters are used
- Configure the generator to match these patterns
6. Dry-Run to Verify File Placement
Always run with --dry-run first to verify files will be created in the correct location:
npx nx g @nx/react:library --name=my-lib --dry-run --no-interactiveReview the output carefully. If files would be created in the wrong location, adjust your options based on what you learned from the generator source code.
Note: Some generators don't support dry-run (e.g., if they install npm packages). If dry-run fails for this reason, proceed to running the generator for real.
7. Run the Generator
Execute the generator:
nx generate <generator-name> <options> --no-interactiveTip: New packages often need workspace dependencies wired up (e.g., importing shared types, being consumed by apps). The
link-workspace-packagesskill can help add these correctly.
8. Modify Generated Code (If Needed)
Generators provide a starting point. Modify the output as needed to:
- Add or modify functionality as requested
- Adjust imports, exports, or configurations
- Integrate with existing code patterns
Important: If you replace or delete generated test files (e.g., *.spec.ts), either write meaningful replacement tests or remove the test target from the project configuration. Empty test suites will cause nx test to fail.
9. Format and Verify
Format all generated/modified files:
nx format --fixThis example is for built-in nx formatting with prettier. There might be other formatting tools for this workspace, use these when appropriate.
Then verify the generated code works. Keep in mind that the changes you make with a generator or subsequent modifications might impact various projects so it's usually not enough to only run targets for the artifact you just created.
# these targets are just an example!
nx run-many -t build,lint,test,typecheckThese targets are common examples used across many workspaces. You should do research into other targets available for this workspace and its projects. CI configuration is usually a good guide for what the critical targets are that have to pass.
If verification fails with manageable issues (a few lint errors, minor type issues), fix them. If issues are extensive, attempt obvious fixes first, then escalate to the user with details about what was generated, what's failing, and what you've attempted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

