link-workspace-packages

Link workspace dependencies between monorepo packages using the detected package manager.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/RomerX64/flow --skill link-workspace-packages-romerx64
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/RomerX64/flow/tree/main/.github/skills/link-workspace-packages
Command: npx skills add https://github.com/RomerX64/flow --skill link-workspace-packages-romerx64

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Linking workspace dependencies between monorepo packages across npm, yarn, pnpm, and bun to wire dependencies and avoid manual edits when packages are added or updated.

Core Features & Use Cases

  • Automatic workspace linking: Wire dependencies between consumer and provider packages using the package manager's workspace features.
  • Resolution-focused: Addresses issues like "cannot find module", "failed to resolve import", TS2307 by leveraging workspace linking.
  • Guided workflow: Encourages using workspace commands rather than patching tsconfig paths or package.json manually.

Quick Start

Identify the consumer and provider packages and run the package manager's workspace add command to wire dependencies.

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 monorepo packages?

To link workspace dependencies, identify the consumer and provider packages, inspect the root package.json and lockfile, then run the package manager's workspace add command to wire sibling packages together automatically.

Why does my monorepo fail to resolve imports from a sibling package?

Monorepo imports fail when workspace dependencies are missing or misresolved between sibling packages. Apply workspace linking to resolve inter-package references and fix errors like cannot find module or failed to resolve import.

What is the best way to wire new packages into an existing monorepo?

The best way to wire new packages is using your package manager's workspace linking commands rather than manually patching tsconfig paths or package.json files to ensure proper dependency resolution.

Does workspace linking work across different package managers like npm, yarn, pnpm, and bun?

Yes, workspace linking works across npm, yarn, pnpm, and bun. The process detects the active package manager by inspecting the root package.json and lockfiles, then executes the appropriate workspace command for that environment.

How do I fix TS2307 errors caused by missing workspace links in a monorepo?

Fix TS2307 errors by running workspace linking commands to wire dependencies between the consumer and provider packages, resolving missing module references without needing manual tsconfig path patches.

When should I avoid manually patching tsconfig paths for monorepo package resolution?

Avoid manually patching tsconfig paths whenever sibling package imports fail. Instead, use the package manager's workspace add command to establish proper workspace links and resolve inter-package dependencies directly.