link-workspace-packages

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Package Linking: Connects packages in monorepos using their respective package manager's workspace commands.
  • Dependency Resolution: Fixes errors like "cannot find module" or "failed to resolve import" for workspace packages.
  • Use Case: After creating a new UI component package and a dashboard package that uses it, this Skill can be used to establish the dependency between them, ensuring the dashboard can import the UI components 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 fix "cannot find module" errors for sibling packages in a monorepo?

Resolving "cannot find module" errors in a monorepo requires correctly symlinking sibling packages and declaring them as dependencies in package.json files, which establishes proper module resolution for inter-package communication.

How do I link workspace packages using different package managers?

Linking workspace packages is achieved by utilizing your specific package manager's workspace commands. This process connects interdependent packages within npm, yarn, pnpm, or bun environments to ensure correct dependency resolution.

Why does TypeScript show TS2307 errors when importing workspace packages?

TypeScript TS2307 errors occur when workspace packages are not properly linked or declared as dependencies. Establishing correct symlinks and updating package.json dependency declarations for sibling packages resolves this import failure.

Does this approach work with bun, pnpm, yarn, and npm workspaces?

Yes, linking workspace packages is fully compatible with bun, pnpm, yarn, and npm. It applies the respective package manager's workspace commands to automate symlinking and dependency declaration across monorepos.

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

The best way to add a local UI component package to an app package is by linking them as workspace dependencies. This automatically configures symlinks and updates package.json declarations for seamless local imports.