link-workspace-packages

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

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/glacy/course-dashboard --skill link-workspace-packages-glacy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/glacy/course-dashboard/tree/main/.opencode/skills/link-workspace-packages
Command: npx skills add https://github.com/glacy/course-dashboard --skill link-workspace-packages-glacy

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 from creating or modifying interconnected packages.

Core Features & Use Cases

  • Automated Dependency Linking: Connects sibling packages in monorepos using the appropriate commands for npm, yarn, pnpm, and bun.
  • Resolves Import Errors: Fixes issues like "cannot find module" or "TS2307" by ensuring correct workspace package linking.
  • Use Case: After adding a new UI component package to your monorepo, use this Skill to link it to your main application package, ensuring all internal imports work 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?

Fixing "cannot find module" errors in a monorepo requires correctly linking workspace packages. This Skill resolves these import errors by applying package manager-specific workspace commands to ensure proper symlinking for inter-package dependencies.

How do I link packages in a monorepo using pnpm, yarn, npm, or bun?

Linking packages in a monorepo across npm, yarn, pnpm, or bun involves leveraging each package manager's specific workspace commands. This process automates symlinking and PnP configuration to connect sibling packages seamlessly.

Why does TypeScript show TS2307 errors for workspace imports after adding a new package?

TypeScript TS2307 errors for workspace imports occur when sibling packages are not properly linked. Using this Skill to configure workspace dependencies ensures correct package resolution and resolves these module finding issues.

Does this workspace linking approach work across different package managers?

Yes, this workspace linking approach supports npm, yarn, pnpm, and bun. It addresses common dependency resolution errors by applying the correct package manager-specific commands for symlinking or PnP configuration.

What is the best way to add an internal UI component package as a dependency to my main application?

The best way to add an internal UI component package as a dependency is by linking it as a workspace package. This ensures all internal imports between the main application and the new component work correctly.

When should I not use automated workspace package linking for monorepo dependencies?

Automated workspace package linking is not suitable for standalone projects lacking a monorepo structure. It specifically addresses inter-package dependency resolution errors and symlinking needs within interconnected monorepo workspaces.