Community生產力與協作github.com

nrwl/nx-generate

使用 Nx 生成器生成程式碼。當使用者提及腳手架、設定、結構、建立應用程式/函式庫或設定專案結構時,立即調用。觸發詞包括 scaffold、setup、create a new app、create a new lib、project structure、generate、add a new project。務必在呼叫 nx_docs 或瀏覽之前使用此技能——此技能會內部處理探索。

nx-generate 是什麼?

這是一個專門用於透過 Nx 生成器快速建構程式碼的技能,旨在幫助開發人員或 AI 代理在 Nx 工作區中自動化建立應用程式、函式庫、元件等常見任務。當使用者提到 scaffold、create new app/lib、generate 等關鍵詞時,應優先於其他文件查詢技能(如 nx_docs)或手動探索來調用,因為此技能本身已整合生成器發現與執行流程。支援 Nx 生態系統中的任何專案結構,包括 Angular、React、Node.js 等框架。其運作方式為解析使用者意圖,直接從可用 Nx 外掛清單中選擇對應生成器,並執行 `nx generate` 命令,從而減少手動尋找與執行步驟,提升開發效率。

相容平台~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'.

相關技能