pnpm-workspace

Configure pnpm workspace packages and link local dependencies with workspace and catalog protocols.

14|5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/oakoss/agent-skills --skill pnpm-workspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pnpm-workspace
Source: https://github.com/oakoss/agent-skills/tree/main/skills/pnpm-workspace
Command: npx skills add https://github.com/oakoss/agent-skills --skill pnpm-workspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the management of complex pnpm monorepos, simplifying dependency handling, package linking, and command execution across multiple packages.

Core Features & Use Cases

  • Monorepo Management: Configure and manage workspace packages using pnpm-workspace.yaml.
  • Dependency Control: Utilize the workspace: protocol for local linking and catalog: for centralized version management.
  • Targeted Commands: Efficiently run scripts and commands on specific packages or groups of packages using powerful filtering options.
  • Use Case: When setting up a new project with multiple interconnected packages (e.g., a shared UI library, an API, and a web application), use this Skill to define the workspace structure, link internal dependencies, and run build commands only on the affected packages.

Quick Start

Use the pnpm-workspace skill to add a new package named 'new-package' to your monorepo.

Frequently Asked Questions about pnpm-workspace

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

FAQPage Schema
How do I set up a pnpm monorepo with linked local dependencies?

To set up a pnpm monorepo, you configure workspace packages using a pnpm-workspace.yaml file and link local dependencies using the workspace: protocol. This ensures local packages are properly connected and managed within the monorepo structure.

How do I run scripts on specific packages in a pnpm workspace?

You can run scripts on specific packages in a pnpm workspace by using filtering options. This allows you to target commands to specific packages or groups, avoiding unnecessary execution across the entire monorepo.

How does the pnpm catalog feature work for dependency versions?

The pnpm catalog feature provides centralized dependency version management for monorepos. It allows you to define package versions in one location, ensuring consistency across all workspace packages without manually updating each package.json.

Can I use Turborepo and Changesets with a pnpm workspace?

Yes, pnpm workspaces integrate with Turborepo and Changesets. Turborepo streamlines build command execution across packages, while Changesets manages versioning and release workflows for the interconnected packages in your monorepo.

What is the pnpm workspace protocol used for?

The pnpm workspace protocol is used for local dependency linking within a monorepo. It connects interconnected packages, ensuring that local packages reference each other directly rather than fetching published versions from external registries.