link-workspace-packages

Link workspace packages in monorepos using npm, yarn, pnpm, and bun.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/guysenpai/crustacean --skill link-workspace-packages-guysenpai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/guysenpai/crustacean/tree/main/.gemini/skills/link-workspace-packages
Command: npx skills add https://github.com/guysenpai/crustacean --skill link-workspace-packages-guysenpai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of linking packages within a monorepo, resolving dependency issues that arise from creating or modifying workspace packages.

Core Features & Use Cases

  • Package Manager Agnostic Linking: Supports pnpm, yarn, npm, and bun.
  • Dependency Resolution: Fixes "cannot find module" and TS resolution errors.
  • Use Case: After generating a new UI component package (@org/ui) and a web application package (@org/app) in your monorepo, use this Skill to ensure @org/app correctly depends on and can import from @org/ui.

Quick Start

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

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 'cannot find module' errors when importing a new package in a monorepo?

To resolve TS2307 or 'cannot find module' errors in a monorepo, link the workspace packages using your package manager's specific workspace commands, which creates correct symlinks in node_modules for inter-package dependency resolution.

How do I link workspace packages in a pnpm monorepo?

You link workspace packages in pnpm by using pnpm's specific workspace commands to add a local package as a dependency, which establishes the correct symlinks in node_modules for seamless inter-package dependency management.

Does monorepo package linking work across different package managers?

Yes, monorepo package linking works across various package managers including npm, yarn, pnpm, and bun by leveraging package manager-specific workspace commands to ensure correct symlinking within node_modules.

What is the best way to resolve TS2307 errors after adding a new UI component to my monorepo?

The best way to resolve TS2307 errors after adding a new UI component is to link the new package to the consuming application package using your package manager's workspace commands, ensuring correct dependency resolution.

Why does my monorepo application fail to resolve imports from a newly generated workspace package?

Your monorepo application fails to resolve imports because the newly generated workspace package has not been properly linked, meaning the necessary symlinks within node_modules have not been established for inter-package dependency management.