link-workspace-packages

Link workspace packages in monorepos using npm, yarn, pnpm, or bun.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of connecting different packages within a monorepo, ensuring that dependencies between them are correctly established and resolvable.

Core Features & Use Cases

  • Automated Dependency Linking: Adds sibling packages as dependencies in monorepos using the appropriate package manager syntax.
  • Resolves Module Not Found Errors: Fixes common issues like "cannot find module" or "TS2307" that arise from unlinked workspace packages.
  • Use Case: After creating a new UI component package and a new application package that needs to use it, this Skill will automatically link them so the application can import components from the UI package without errors.

Quick Start

Use the link-workspace-packages skill to add the '@org/ui' package as a dependency to the '@org/app' package using pnpm.

Frequently Asked Questions about link-workspace-packages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix "cannot find module" errors for sibling packages in a monorepo?

To fix "cannot find module" errors in a monorepo, you must correctly link workspace packages so sibling dependencies are resolvable. This Skill adds sibling packages as dependencies using package manager-specific syntax to ensure correct symlinking and seamless inter-package communication.

How to add a workspace package as a dependency using pnpm?

Adding a workspace package as a dependency using pnpm requires specific workspace protocol syntax. This Skill leverages package manager-specific commands to automatically declare the sibling package dependency and establish the correct symlink for your monorepo architecture.

Does this workspace linking approach work with bun and yarn?

Yes, this workspace linking approach works with bun and yarn, alongside npm and pnpm. It leverages package manager-specific workspace commands to ensure correct symlinking and dependency declaration across your monorepo environment.

What is the best way to link a new UI component package to an application in a monorepo?

The best way to link a new UI component package to an application in a monorepo is to use automated workspace linking. This Skill establishes the correct dependency declaration and symlinking, allowing the application to import components from the UI package without errors.

Why are my TypeScript monorepo packages not resolving their sibling dependencies?

TypeScript monorepo packages fail to resolve sibling dependencies when workspace packages are not properly linked or declared. This Skill resolves these errors by adding sibling packages as dependencies using the appropriate package manager syntax and ensuring correct symlinking.