link-workspace-packages
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
Skill by whimzyLive
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/whimzylive-link-workspace-packages
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
link-workspace-packages- Description
- 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.
- License
- MIT
- Instructions
- 124 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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
1. Identify consumer package (the one importing)
2. Identify provider package(s) (being imported)
3. Add dependency using package manager's workspace syntax
4. 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.
---
## bun
Supports `workspace:` protocol (pnpm-compatible).
```bash
cd packages/app && bun add @org/ui
```
Result in `package.json`:
```json
{ "dependencies": { "@org/ui": "workspace:*" } }
```
---
## Examples
**Example 1: pnpm - link ui lib to app**
```bash
pnpm add @org/ui --filter @org/app --workspace
```
**Example 2: npm - link multiple packages**
```bash
npm install @org/data-access @org/ui --workspace @org/dashboard
```
**Example 3: Debug "Cannot find module"**
1. Check if dependency is declared in consumer's `package.json`
2. If not, add it using appropriate command above
3. Run install (`pnpm install`, `npm install`, etc.)
## Notes
- Symlinks appear in `<consumer>/node_modules/@org/<package>`
- **Hoisting differs by manager:**
- npm/bun: hoist shared deps to root `node_modules`From whimzyLive/nightshift-ai, MIT.
More from whimzyLive/nightshift-ai
- 0.609score
tailwind-design-system
whimzyLive
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
nightshift-design
whimzyLive
Use when designing, building, writing, OR validating any nightshift interface, marketing page, doc, slide, mock, prototype, or brand asset — covers the…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
motion-dev-animations
Motion Dev Standards
Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects.
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
payload
whimzyLive
Use when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API).
SkillAFreshness: A★ 3Claude Code +9 - 0.421score
vercel-react-best-practices
vercel
React and Next.js performance optimization guidelines from Vercel Engineering.
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Jul 9, 2026 (3 months ago)
- Last release
- Oct 23, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/whimzyLive/nightshift-ai
- Website
- withnightshift.com/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.475score
link-workspace-packages
nrwl
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: D★ 29Claude Code +9 - 0.362score
link-workspace-packages
whimzyLive
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillAFreshness: A★ 3Claude Code +9 - 0.362score
link-workspace-packages
storm-software
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillAFreshness: A★ 3Claude Code +9 - 0.358score
link-workspace-packages
storm-software
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillAFreshness: A★ 2Claude Code +9 - 0.285score
link-workspace-packages
nrwl
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: D★ 29Claude Code +9 - 0.285score
link-workspace-packages
nrwl
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: D★ 29Claude Code +9 - 0.285score
link-workspace-packages
nrwl
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: D★ 29Claude Code +9 - 0.243score
link-workspace-packages
johnnystefan
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: DClaude Code +9
More from whimzyLive
- 0.609score
tailwind-design-system
whimzyLive
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
nightshift-design
whimzyLive
Use when designing, building, writing, OR validating any nightshift interface, marketing page, doc, slide, mock, prototype, or brand asset — covers the…
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
payload
whimzyLive
Use when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API).
SkillAFreshness: A★ 3Claude Code +9
Cite this page
link-workspace-packages skill. Agent Mart. https://agentmart.dev/skills/whimzylive-link-workspace-packages (last updated 2026-10-24)