link-workspace-packages

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

3|2|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/ngx-signal-forms/ngx-signal-forms --skill link-workspace-packages-ngx-signal-forms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/ngx-signal-forms/ngx-signal-forms/tree/main/.github/skills/link-workspace-packages
Command: npx skills add https://github.com/ngx-signal-forms/ngx-signal-forms --skill link-workspace-packages-ngx-signal-forms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Link workspace packages in monorepos to wire dependencies between consumer and provider packages, avoiding manual edits to tsconfig, path mappings, or package.json rewrites.

Core Features & Use Cases

  • Detect the active workspace manager from root package.json or lockfile and apply the correct workspace syntax.
  • Identify consumer and provider packages and update their manifests to establish a dependency.
  • Verify that symlinks or hoists are created so imports resolve across the workspace, across pnpm, yarn, npm, and bun.

Quick Start

From the consumer project, link a provider package using your package manager’s workspace syntax to create a dependency.

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, configure dependencies between consumer and provider packages using your active package manager's workspace syntax. This updates package manifests and creates node_modules symlinks to ensure imports resolve correctly.

Why do workspace package imports fail to resolve across different package managers?

Workspace package imports fail when dependencies use incorrect workspace syntax or lack proper symlinks. You must detect the active package manager from the root lockfile and apply the correct workspace protocol to verify node_modules resolution.

Can I use workspace linking for npm, yarn, pnpm, and bun monorepos?

Yes, you can use workspace linking for npm, yarn, pnpm, and bun monorepos. The linking process detects the active workspace manager from the root package.json or lockfile and applies the specific syntax required by each tool.

What is the best way to add new packages to a monorepo without manual tsconfig edits?

The best way to add new packages is to use workspace commands that automatically update package manifests to establish dependencies. This wires consumer and provider packages directly, avoiding manual tsconfig path mappings or package.json rewrites.

How does a workspace manager verify that monorepo dependencies are linked correctly?

A workspace manager verifies dependencies are linked by checking that node_modules symlinks or hoists are created successfully. This ensures that imports resolve correctly across the workspace after applying the correct package manager syntax.