link-workspace-packages

Automate workspace package linking across npm, yarn, pnpm, and bun.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/ViewableGravy/better-ecs --skill link-workspace-packages-viewablegravy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/ViewableGravy/better-ecs/tree/main/.github/skills/link-workspace-packages
Command: npx skills add https://github.com/ViewableGravy/better-ecs --skill link-workspace-packages-viewablegravy

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 when creating or modifying sibling packages.

Core Features & Use Cases

  • Cross-Package Dependency Management: Ensures that packages within a monorepo can correctly import and utilize each other's code.
  • Package Manager Agnostic: Provides instructions for npm, yarn, pnpm, and bun.
  • Use Case: After creating a new UI component library (@org/ui) and a web application (@org/app) in your monorepo, use this Skill to link @org/ui as a dependency to @org/app, resolving any "cannot find module" errors.

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 sibling packages in a monorepo?

To fix 'cannot find module' errors in a monorepo, link workspace packages using native package manager commands to resolve dependency declarations and create symlinks for sibling packages.

What is the best way to link monorepo packages using pnpm or yarn?

The best way to link monorepo packages is using native workspace commands in package managers like pnpm, yarn, npm, or bun to automate symlink creation and resolve sibling package dependencies.

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

Yes, this workspace linking approach works with npm, yarn, pnpm, and bun, providing package manager agnostic instructions to automate cross-package dependency management and module resolution.

Why does TypeScript show TS2307 errors for local monorepo packages?

TypeScript shows TS2307 errors for local monorepo packages because module resolution fails when dependencies are unlinked; configuring workspace package linking resolves these sibling import errors.

How do I add a local UI component library as a dependency to my web app in a monorepo?

To add a local UI component library as a dependency to a web app in a monorepo, use workspace package linking to declare the sibling package and generate the necessary symlinks.