link-workspace-packages

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

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Freddy-18-18/red-salud --skill link-workspace-packages-freddy-18-18
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/Freddy-18-18/red-salud/tree/main/.github/skills/link-workspace-packages
Command: npx skills add https://github.com/Freddy-18-18/red-salud --skill link-workspace-packages-freddy-18-18

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 importing new packages.

Core Features & Use Cases

  • Automated Dependency Linking: Connects sibling packages in monorepos using the appropriate package manager commands.
  • Resolves Import Errors: Fixes issues like "cannot find module" or "TS2307" caused by unlinked workspace packages.
  • Use Case: After creating a new UI component package, use this Skill to link it to your main application package, 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 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 link workspace packages in a monorepo?

To link workspace packages in a monorepo, this Skill automates symlink creation and dependency management by applying package manager-specific workspace protocols and commands for npm, yarn, pnpm, or bun.

Why does my monorepo throw cannot find module or TS2307 errors for sibling packages?

These import errors occur when sibling workspace packages are unlinked. The Skill resolves them by automatically connecting the packages using the correct workspace dependency declarations and commands.

Does this workspace linking approach work with both pnpm and bun?

Yes, the workspace linking process works with pnpm and bun, alongside npm and yarn, by adhering to the specific workspace protocols and commands required by each package manager.

What is the best way to add a new UI component package as a dependency to my main application?

The best way to add a new package as a dependency is using this Skill to link the sibling packages, ensuring accurate symlink creation and proper module resolution across the monorepo.

What happens if package manager-specific workspace protocols are not followed during dependency linking?

Without following package manager-specific workspace protocols, automated dependency linking fails to create accurate symlinks, leading to unresolved module resolution errors and dependency declaration issues.