link-workspace-packages

Link workspace packages in monorepos using package manager-specific commands.

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

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 packages.

Core Features & Use Cases

  • Automated Dependency Linking: Connects sibling packages in monorepos using the appropriate package manager commands.
  • Resolves Import Errors: Fixes "cannot find module" and similar errors caused by unlinked workspace packages.
  • Use Case: After creating a new UI component package and importing it into your application package, use this Skill to ensure the application correctly recognizes and links to the new component.

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

To link workspace packages in a monorepo, identify the consumer and provider packages and use package manager-specific workspace commands to create symlinks for internal dependencies.

Why does my monorepo application say it cannot find module for a sibling package?

The "cannot find module" error occurs because workspace packages are unlinked. You must link the internal package dependencies using your package manager's workspace symlink commands.

Does this workspace linking approach work with pnpm and yarn?

Yes, this workspace linking approach works with pnpm and yarn, alongside npm and bun, utilizing each package manager's specific commands to resolve internal package dependencies.

What is the best way to add a new UI component as a dependency to my application in a monorepo?

The best way to add a new UI component as a dependency in a monorepo is to use workspace linking, ensuring the application package correctly recognizes and symlinks the new component package.

What do I need to identify before linking monorepo packages?

Before linking monorepo packages, you must correctly identify the consumer package requiring the dependency and the provider package being imported to ensure accurate symlink creation.