link-workspace-packages

Links workspace packages in monorepos using npm, yarn, pnpm, or bun.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/TheSpiciestDev/com-userevals --skill link-workspace-packages-thespiciestdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/TheSpiciestDev/com-userevals/tree/main/.cursor/skills/link-workspace-packages
Command: npx skills add https://github.com/TheSpiciestDev/com-userevals --skill link-workspace-packages-thespiciestdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies dependency management within monorepos by correctly linking sibling packages, resolving module resolution errors and ensuring your project's internal dependencies are properly wired.

Core Features & Use Cases

  • Cross-Package Linking: Automatically adds dependencies between packages in a monorepo using the correct syntax for npm, yarn, pnpm, and bun.
  • Error Resolution: Fixes common issues like "cannot find module" or "TS2307" that arise from unlinked workspace packages.
  • Use Case: After creating a new UI component package and a dashboard package that needs to use it, run this Skill to link the UI package to the dashboard, ensuring all imports work correctly.

Quick Start

Use the link-workspace-packages skill to add the @org/ui package as a dependency to the @org/app package.

Frequently Asked Questions about link-workspace-packages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix module resolution errors for unlinked packages in a monorepo?

To fix module resolution errors like "cannot find module" in a monorepo, you need to correctly link sibling workspace packages using your package manager's specific protocol or symlinking mechanism. This ensures internal dependencies are properly wired and imports resolve correctly.

Does this workspace linking approach support multiple package managers like pnpm and bun?

Yes, this workspace linking approach supports multiple package managers including npm, yarn, pnpm, and bun. It utilizes package manager-specific commands to establish the correct workspace protocol or automatic symlinking for seamless integration across these environments.

What is the best way to add an internal UI component package as a dependency to another monorepo app?

The best way to add an internal package as a dependency in a monorepo is by linking the workspace packages. This automatically establishes the correct dependency syntax between your packages, ensuring that sibling packages like a UI component are properly imported by your dashboard app.

Why does TypeScript throw TS2307 errors for local packages in my monorepo?

TypeScript throws TS2307 errors for local packages in a monorepo because the workspace packages are not correctly linked. Establishing proper inter-package dependencies through package manager-specific symlinking resolves these module resolution errors by ensuring your project's internal dependencies are properly wired.

How to link monorepo packages across different workspaces without manual symlinking?

To link monorepo packages without manual symlinking, use your package manager's built-in workspace capabilities. This process automatically adds dependencies between packages using the correct syntax for npm, yarn, pnpm, or bun, establishing seamless integration for your internal packages.