link-workspace-packages

Resolve monorepo dependency linking errors with pnpm, yarn, npm, or bun commands.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/AyalaKaguya/hermes-swarm --skill link-workspace-packages-ayalakaguya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/AyalaKaguya/hermes-swarm/tree/main/.opencode/skills/link-workspace-packages
Command: npx skills add https://github.com/AyalaKaguya/hermes-swarm --skill link-workspace-packages-ayalakaguya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves dependency linking issues in monorepos, such as module resolution errors or missing symlinks, by using the correct package manager commands instead of manual configuration hacks.

Core Features & Use Cases

  • Cross-Package Linking: Automatically wires up dependencies between sibling packages in a monorepo.
  • Resolution Error Fixing: Corrects common TypeScript and module resolution errors like TS2307 or failed imports.
  • Use Case: When you create a new shared UI library and need to import it into your main web application, this Skill provides the exact command to link them based on your specific package manager (pnpm, yarn, npm, or bun).

Quick Start

Use the link-workspace-packages skill to add the @org/ui package as a dependency to the @org/app workspace.

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 pnpm monorepo?

To fix module resolution errors in a pnpm monorepo, you need to properly link workspace dependencies using package manager commands instead of manual hacks. This ensures consistent dependency graph integrity and resolves missing symlink issues between sibling packages.

What's the best way to link a new shared UI library to my main app in a monorepo?

The best way to link a new shared UI library in a monorepo is to execute workspace-specific commands that wire up cross-package dependencies. This automatically creates the necessary symlinks between sibling packages to ensure correct TypeScript and module resolution.

Does this workspace dependency linking approach work with yarn and bun?

Yes, this workspace dependency linking approach works with yarn and bun, as well as pnpm and npm. It executes the appropriate workspace-specific commands for each package manager to ensure consistent dependency graph integrity across different monorepo environments.

Why does TypeScript show TS2307 errors when importing sibling packages in a monorepo?

TypeScript shows TS2307 errors when importing sibling packages because workspace dependencies are not properly linked or symlinks are broken. Resolving dependency linking with the correct package manager commands restores module resolution and fixes failed imports.