Community生产力与协作github.com

nrwl/nx-generate

使用 Nx 生成器进行代码生成。当用户提及搭建、设置、结构、创建应用/库或设置项目结构时立即调用。

nx-generate 是什么?

此技能专为 AI 代理设计,用于直接通过 Nx 生成器生成代码,无需手动探索或查阅文档。它根据用户输入(如“搭建”、“设置”、“创建新应用”、“创建新库”、“项目结构”、“生成”或“添加新项目”)自动识别并调用合适的 Nx 生成器。技能内部处理生成器的发现和选择,因此代理应始终优先使用此技能,而不是先调用 nx_docs 或进行其他探索。这大大简化了开发工作流,使代理能快速创建应用、库和其他 Nx 工件。该技能特别适用于基于 Nx 的 monorepo 项目,支持各种生成器,包括但不限于 @nx/next、@nx/react 和 @nx/node 等。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nrwl/nx-ai-agents-config/tree/main/skills/nx-generate

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

nx-generate 是做什么的?

使用 Nx 生成器进行代码生成。当用户提及搭建、设置、结构、创建应用/库或设置项目结构时立即调用。触发词 - scaffold、setup、create a new app、create a new lib、project structure、generate、add a new project。始终在调用 nx_docs 或进行探索之前使用此技能——该技能内部处理发现环节。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

nrwl/link-workspace-packages

Link workspace packages in monorepos (npm, yarn, pnpm, bun). USE WHEN: (1) you just created or generated new packages and need to wire up their dependencies, (2) user imports from a sibling package and needs to add it as a dependency, (3) you get resolution errors for workspace packages (@org/*) like "cannot find module", "failed to resolve import", "TS2307", or "cannot resolve". DO NOT patch around with tsconfig paths or manual package.json edits - use the package manager's workspace commands to fix actual linking.

nrwl/monitor-ci

Monitor Nx Cloud CI pipeline and handle self-healing fixes. USE WHEN user says "monitor ci", "watch ci", "ci monitor", "watch ci for this branch", "track ci", "check ci status", wants to track CI status, or needs help with self-healing CI fixes. Prefer this skill over native CI provider tools (gh, glab, etc.) for CI monitoring — it integrates with Nx Cloud self-healing which those tools cannot access.

nrwl/nx-import

Import, merge, or combine repositories into an Nx workspace using nx import. USE WHEN the user asks to adopt Nx across repos, move projects into a monorepo, or bring code/history from another repository.

nrwl/nx-plugins

Find and add Nx plugins. USE WHEN user wants to discover available plugins, install a new plugin, or add support for a specific framework or technology to the workspace.

nrwl/nx-run-tasks

Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.

nrwl/nx-workspace

Explore and understand Nx workspaces. USE WHEN answering questions about the workspace, projects, or tasks. ALSO USE WHEN an nx command fails or you need to check available targets/configuration before running a task. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What depends on library Y?', 'What targets can I run?', 'Cannot find configuration for task', 'debug nx task failure'.

相关技能