link-workspace-packages

Link workspace packages across pnpm, yarn, npm, and bun monorepos.

Updated Jul 4, 2026
One-click install
npx skills add https://github.com/kimen-dev/kimen --skill link-workspace-packages-kimen-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/kimen-dev/kimen/tree/main/.agents/skills/link-workspace-packages
Command: npx skills add https://github.com/kimen-dev/kimen --skill link-workspace-packages-kimen-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves common monorepo dependency issues, such as missing modules or failed imports, by correctly linking workspace packages using the appropriate package manager commands.

Core Features & Use Cases

  • Workspace Linking: Automatically detects the package manager (pnpm, yarn, npm, bun) and applies the correct workspace protocol to link sibling packages.
  • Resolution Troubleshooting: Fixes TS2307 errors and module resolution failures by ensuring proper symlinking within the monorepo structure.
  • Use Case: When you add a new internal library package and your main application fails to import it, use this skill to establish the correct workspace dependency link.

Quick Start

Use the link-workspace-packages skill to link the ui library to the main application package.

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 module resolution errors in a monorepo?

To fix module resolution errors in a monorepo, you need to correctly link workspace packages using your package manager's specific protocol to symlink internal packages. This resolves missing module errors by ensuring proper symlinking within the workspace structure.

Why does my monorepo application fail to import a newly added internal library?

Your monorepo application fails to import a newly added internal library because the consumer and provider packages are not properly linked. Applying the correct workspace protocol command establishes the necessary symlink to resolve the import failure.

How do I link workspace packages using pnpm, yarn, npm, or bun?

To link workspace packages using pnpm, yarn, npm, or bun, you must execute the package-manager-specific linking command. This requires identifying the consumer and provider packages to apply the correct workspace protocol and symlink them.

Can I use this approach to fix TS2307 errors in monorepo workspaces?

Yes, you can fix TS2307 errors in monorepo workspaces by configuring workspace dependencies. Executing the correct package-manager-specific linking command ensures proper symlinking of internal packages to resolve module resolution failures.

What is the best way to configure workspace dependencies for internal packages?

The best way to configure workspace dependencies for internal packages is to automatically detect the package manager and apply the correct workspace protocol. This targets the specific environment to symlink sibling packages and resolve dependency issues.