link-workspace-packages

Automate linking workspace packages across npm, yarn, pnpm, and bun monorepos.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/pertrai1/open-forge --skill link-workspace-packages-pertrai1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/pertrai1/open-forge/tree/main/.cursor/skills/link-workspace-packages
Command: npx skills add https://github.com/pertrai1/open-forge --skill link-workspace-packages-pertrai1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of linking workspace packages in monorepos, ensuring that dependencies are correctly set up and resolving common package resolution errors.

Core Features & Use Cases

  • Automated Dependency Linking: Automatically link dependencies between packages in a monorepo for all package managers (npm, yarn, pnpm, bun).
  • Resolution Error Fixing: Handles common resolution errors like "cannot find module" or "failed to resolve import".
  • Avoid Manual Edits: Recommends against manual package.json edits and encourages the use of package manager workspace commands for actual linking.
  • Supports Multiple Package Managers: Offers specific instructions for pnpm, yarn, npm, and bun.

Quick Start

Run the 'link-workspace-packages' skill to automatically link the 'ui' package to the 'app' package in your monorepo.

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 without manually editing package.json?

Automating workspace package linking resolves dependency resolution errors and avoids manual package.json edits. It uses package manager workspace commands for npm, yarn, pnpm, and bun to ensure seamless monorepo dependency management.

Why does my monorepo fail to resolve imports between local packages?

Monorepos fail to resolve imports when workspace packages are not properly linked. This Skill fixes common resolution errors like "cannot find module" by automating package linking across npm, yarn, pnpm, and bun environments.

Does this package linking automation support yarn and pnpm workspaces?

Yes, this package linking automation supports yarn and pnpm workspaces. It provides specific instructions and automated linking commands for npm, yarn, pnpm, and bun to resolve dependencies in various monorepo contexts.

What is the best way to manage local dependencies in a monorepo?

The best way to manage local dependencies in a monorepo is using package manager workspace commands rather than manual edits. This Skill automates that exact process, resolving dependency resolution errors seamlessly across npm, yarn, pnpm, and bun.

Can I use this to fix "cannot find module" errors in my monorepo?

Yes, you can use this to fix "cannot find module" errors in your monorepo. The Skill specifically handles common package resolution errors by correctly linking workspace packages and setting up dependencies automatically.