link-workspace-packages 是做什麼的?
在 monorepo 中連結工作區套件(支援 npm、yarn、pnpm、bun)。使用時機:
- 你剛建立或產生新套件,需要連接其依賴關係。
- 使用者從兄弟套件匯入,但需要將其新增為依賴。
- 你遇到工作區套件(@org/*)的解析錯誤,例如「找不到模組」、「解析匯入失敗」、「TS2307」或「無法解析」。
請勿透過 tsconfig 路徑或手動編輯 package.json 來修補——應使用套件管理員的工作區指令來修正實際連結。
在 monorepo 中連結工作區套件(支援 npm、yarn、pnpm、bun)。用於:剛建立或產生新套件需連結依賴、從兄弟套件匯入需新增依賴、或遇到工作區套件解析錯誤(如找不到模組、TS2307)。請勿透過 tsconfig 路徑或手動編輯 package.json 修補,應使用套件管理員的工作區指令解決實際連結。
此技能「nrwl/link-workspace-packages」專為 monorepo 開發環境設計,協助自動連結工作區內套件之間的依賴關係。它支援 npm、yarn、pnpm 與 bun 等主流套件管理員。當開發者剛建立或產生新套件、需要從兄弟套件匯入模組卻未正確新增依賴,或遇到工作區套件(如 @org/*)的解析錯誤(例如「找不到模組」、「解析匯入失敗」、「TS2307:找不到模組」)時,此技能能自動偵測並執行對應的套件管理員工作區指令(如 `npm install`、`yarn workspaces focus`、`pnpm install`、`bun install`),從而修正實際連結。它特別強調不應使用 tsconfig 路徑映射或手動修改 package.json 來繞過問題,因為這樣會破壞 monorepo 的正確依賴管理。此技能支援 Claude Code、Cursor、Codex 等 AI 代理工具,並提供明確的觸發條件與使用指南,幫助開發者維持工作區的健康狀態。
npx skills add https://github.com/nrwl/nx-ai-agents-config/tree/main/skills/link-workspace-packagesInstalled? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →
在 monorepo 中連結工作區套件(支援 npm、yarn、pnpm、bun)。使用時機:
請勿透過 tsconfig 路徑或手動編輯 package.json 來修補——應使用套件管理員的工作區指令來修正實際連結。
This repo contains 6 individual skills — each has its own dedicated page.
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.
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.
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.
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.
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.
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'.
Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing.
Fetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.
Create, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
Search, install, update, sync, or publish agent skills with the ClawHub CLI and registry.
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
List, configure, authenticate, call, and inspect MCP servers/tools with mcporter over HTTP or stdio.