link-workspace-packages

Detect the active package manager and link workspace dependencies in monorepos.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/G9000/animaOS-SWARM --skill link-workspace-packages-g9000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/G9000/animaOS-SWARM/tree/main/.agents/skills/link-workspace-packages
Command: npx skills add https://github.com/G9000/animaOS-SWARM --skill link-workspace-packages-g9000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Link workspace packages in monorepos (npm, yarn, pnpm, bun) to wire dependencies when new packages are created, when a consumer imports from a sibling package, or when you encounter resolution errors for workspace packages.

Core Features & Use Cases

  • Detect the active package manager and identify consumer/provider packages.
  • Add workspace dependencies using the appropriate workspace syntax.
  • Verify symlinks in consumer/node_modules and surface common workspace-related issues.

Quick Start

Link a consumer package to a provider package using the workspace commands of your package manager.

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, you must identify consumer and provider packages, add dependencies using the correct workspace syntax, and verify symlinks in the consumer node_modules directory to ensure proper resolution.

Why does my monorepo get a cannot find module error for a sibling package?

A cannot find module error for a sibling package usually occurs when workspace dependencies are not properly linked. You must apply the correct workspace syntax for your package manager and verify symlinks in the consumer node_modules to resolve the issue.

Does this workspace linking approach work with pnpm and bun?

Yes, this workspace linking approach works with pnpm and bun. It validates the active package manager across npm, yarn, pnpm, and bun, applying the correct workspace command syntax to wire dependencies and verify symlinks.

When do I need to wire dependencies between packages in a monorepo?

You need to wire dependencies between packages in a monorepo when you have newly added or updated packages, when a consumer imports from a sibling package, or when you encounter resolution errors for workspace packages across different package managers.

What is the best way to fix failed resolution errors for workspace packages?

The best way to fix failed resolution errors for workspace packages is to validate the active package manager, apply the appropriate workspace command syntax to link the dependencies, and verify symlinks in the consumer node_modules directory.