link-workspace-packages

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

Updated Oct 13, 2025
One-click install
npx skills add https://github.com/effinrich/rh-nx-monorepo --skill link-workspace-packages-effinrich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/effinrich/rh-nx-monorepo/tree/main/.cursor/skills/link-workspace-packages
Command: npx skills add https://github.com/effinrich/rh-nx-monorepo --skill link-workspace-packages-effinrich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill resolves dependency issues and ensures proper linking between packages within a monorepo, preventing module resolution errors.

Core Features & Use Cases

  • Automated Dependency Linking: Manages workspace package dependencies across npm, yarn, pnpm, and bun.
  • Error Resolution: Fixes "cannot find module" and "failed to resolve import" errors caused by unlinked workspace packages.
  • Use Case: After creating a new shared UI component library, use this Skill to easily link it as a dependency to your main application package.

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 monorepo packages to fix 'cannot find module' errors?

Link monorepo packages by declaring correct inter-package dependencies and symlinking sibling packages using native package manager commands. This ensures proper module resolution and fixes errors like 'cannot find module' and 'TS2307'.

Does this workspace package linking approach support both pnpm and bun?

Yes, workspace package linking supports pnpm and bun, alongside npm and yarn. It utilizes native package manager commands to automate dependency wiring and symlink creation across these environments.

What's the best way to add a shared UI library as a dependency to my main application in a monorepo?

The best way to add a shared UI library as a dependency to your main application is by automating workspace package linking. This symlinks the sibling package correctly, preventing module resolution errors during monorepo development.

Why does TypeScript show TS2307 errors for local workspace packages?

TypeScript shows TS2307 errors for local workspace packages because inter-package dependencies are not properly declared or symlinked. Linking the workspace packages ensures correct module resolution and resolves the error.

How do I automate dependency wiring for sibling packages in a monorepo?

Automate dependency wiring for sibling packages by using native package manager commands to link workspace packages. This establishes correct inter-package dependencies and creates the necessary symlinks for seamless monorepo development.