Community生产力与协作github.com

nrwl/nx-workspace

探索和了解 Nx 工作区。在回答有关工作区、项目或任务的问题时使用。另外,当 nx 命令失败或需要在运行任务前检查可用目标/配置时,也应使用此技能。例如:“此工作区中有哪些项目?”、“项目 X 是如何配置的?”、“哪些内容依赖库 Y?”、“我可以运行哪些目标?”、“找不到任务的配置”、“调试 nx 任务失败”。

nx-workspace 是什么?

此 AI 技能专为使用 Nx 构建系统(特别是用于管理单体仓库或项目依赖关系的开发环境)的开发者设计。其核心功能是帮助用户快速理解和导航 Nx 工作区的结构,包括列出项目、查看项目配置、分析依赖关系以及检查可运行的构建、测试或部署目标。该技能通过解析 `workspace.json`、`project.json` 和 `nx.json` 等配置文件,提供结构化的查询接口。它支持主流的 AI 编码助手,如 Claude Code 和 Cursor,并与 `@nrwl/nx` 工具链深度集成。当 `nx run` 或 `nx build` 等命令因配置错误或目标缺失而失败时,该技能非常擅长诊断问题并建议正确的目标或配置路径。它还能帮助开发者理解复杂的项目依赖图,识别循环依赖或未使用的库。简而言之,此技能将 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.

相关技能