link-workspace-packages

Detect the package manager and link workspace packages with correct syntax.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Link workspace packages in a monorepo to wire internal dependencies across packages, ensuring local modules resolve correctly across npm, yarn, pnpm, and bun.

Core Features & Use Cases

  • Detects the active package manager (pnpm, yarn, npm, bun).
  • Adds dependencies using the workspace protocol to the consumer project.
  • Verifies symlinks in the consumer's node_modules and ensures correct resolution.
  • Handles cross-package imports and resolves resolution errors like "cannot find module" or "TS2307".

Quick Start

Run a workspace add command in the consumer project to link the provider 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 link workspace packages in a monorepo to fix cannot find module errors?

Link workspace packages by running a workspace add command in the consumer project, which applies the correct workspace protocol for your package manager and verifies symlinks in node_modules to resolve cannot find module errors.

Why do I get TS2307 resolution errors importing from a sibling package in a monorepo?

TS2307 resolution errors occur when sibling packages are not linked. You need to apply workspace protocol commands rather than editing tsconfig, ensuring the package manager symlinks the provider package into the consumer's node_modules.

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

Yes, workspace linking detects the active package manager across pnpm, yarn, npm, and bun. It automatically applies the correct workspace syntax for each environment to wire internal dependencies and verify symlinks.

What is the best way to wire newly created packages across a monorepo?

The best way to wire newly created packages is using workspace protocol commands in the consumer project. This detects your package manager, adds the provider package as a dependency, and verifies symlinks for correct local module resolution.

Do I need to edit tsconfig to resolve workspace package dependencies?

No, you do not need to edit tsconfig to resolve workspace package dependencies. You should use workspace commands to apply the correct protocol and verify node_modules symlinks instead of modifying TypeScript configuration.