Community生產力與協作github.com

nrwl/nx-workspace

探索並理解 Nx 工作區。在回答關於工作區、專案或任務的問題時使用。也請在 nx 指令失敗,或需要檢查可用目標/設定再執行任務時使用。範例:'這個工作區有哪些專案?'、'專案 X 是如何設定的?'、'哪些東西依賴於函式庫 Y?'、'我可以執行哪些目標?'、'找不到任務設定'、'除錯 nx 任務失敗'。

nx-workspace 是什麼?

這個技能讓 AI 代理程式能夠探索並深入理解 Nx 工作區,包括其中的專案、目標(targets)和設定。對於回答開發者關於工作區結構的問題(例如「有哪些專案?」、「專案 X 是如何設定的?」或「哪些專案依賴於函式庫 Y?」)非常有用。它也適用於除錯情境,例如當執行 `nx` 指令失敗時,可以協助檢查可用的目標或設定是否正確,以找出錯誤根源。此技能在多數支援自訂技能的 AI 代理平台(如 Claude Code、Cursor、Codex)上均可使用,透過讀取 workspace.json、project.json 或根層級的專案結構來提供資訊。它幫助開發者與 AI 代理更有效率地協作,避免在複雜的 Nx 設定中迷失,並能快速定位任務失敗的原因。

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

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

nx-workspace 是做什麼的?

探索並理解 Nx 工作區。在回答關於工作區、專案或任務的問題時使用。也請在 nx 指令失敗,或需要檢查可用目標/設定再執行任務時使用。範例:'這個工作區有哪些專案?'、'專案 X 是如何設定的?'、'哪些東西依賴於函式庫 Y?'、'我可以執行哪些目標?'、'找不到任務設定'、'除錯 nx 任務失敗'。

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-generate

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.

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.

相關技能