Install the skill above, then run this in your AI tool:
/link-workspace-packages <your description>
About
Add dependencies between packages in a monorepo. All package managers support workspaces but with different syntax.
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
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...
Skill instructions
Link Workspace Packages
Add dependencies between packages in a monorepo. All package managers support workspaces but with different syntax.
Detect Package Manager
Check whether there's a packageManager field in the root-level package.json.
Alternatively check lockfile in repo root:
pnpm-lock.yaml → pnpm
yarn.lock → yarn
bun.lock / bun.lockb → bun
package-lock.json → npm
Workflow
Identify consumer package (the one importing)
Identify provider package(s) (being imported)
Add dependency using package manager's workspace syntax
Verify symlinks created in consumer's node_modules/
pnpm
Uses workspace: protocol - symlinks only created when explicitly declared.
bash
# From consumer directory
pnpm add @org/ui --workspace
# Or with --filter from anywhere
pnpm add @org/ui --filter @org/app --workspace
Result in package.json:
json
{"dependencies":{"@org/ui":"workspace:*"}}
yarn (v2+/berry)
Also uses workspace: protocol.
bash
yarn workspace @org/app add @org/ui
Result in package.json:
json
{"dependencies":{"@org/ui":"workspace:^"}}
npm
No workspace: protocol. npm auto-symlinks workspace packages.
bash
npm install @org/ui --workspace @org/app
Result in package.json:
json
{"dependencies":{"@org/ui":"*"}}
npm resolves to local workspace automatically during install.
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/nrwl/link-workspace-packages/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@nrwl/link-workspace-packages@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: 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...
Run aipm add @nrwl/link-workspace-packages@1.0.0 in a project that has AIPM initialized.
Supported tools
@nrwl/link-workspace-packages@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.