link-workspace-packages

Detect the package manager and wire workspace dependencies across monorepo packages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Link workspace packages across a monorepo to wire up inter-package dependencies using workspace protocols across different package managers.

Core Features & Use Cases

  • Detect and verify workspace config by inspecting root package.json and lockfiles to determine the active package manager.
  • Apply workspace linking commands across pnpm, yarn, npm, and bun to establish correct inter-package dependencies.
  • Use Case: When you add a new library @org/ui and want @org/app to depend on it using workspace:* without manual edits to package.json.

Quick Start

From the consumer package directory, run the appropriate workspace add command to link a provider package (e.g., add @org/ui as a workspace dependency to @org/app).

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 dependencies between packages in a monorepo?

To link workspace dependencies, run the workspace add command from the consumer package directory to wire a sibling package using workspace protocols. This automatically updates the package.json to establish the correct inter-package dependency.

How does monorepo package linking detect the active package manager?

Monorepo package linking detects the active package manager by inspecting the root package.json and lockfiles. This validation ensures the correct workspace commands are applied for the specific environment.

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

Yes, workspace linking supports pnpm, yarn, npm, and bun. The process applies the respective workspace linking commands across these package managers to establish correct inter-package dependencies.

What's the best way to add a new package as a workspace dependency?

The best way to add a new package is to run the appropriate workspace add command from the consumer package directory. This wires the sibling package using workspace protocols without manual package.json edits.

When do I need to wire workspace protocols for monorepo packages?

You need to wire workspace protocols when a consumer package imports a sibling package or when new packages are created. This ensures modules resolve correctly within the monorepo structure.