pnpm

Manage JavaScript/TypeScript dependencies with pnpm workspaces and strict resolution.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/hakushun/ai-dev-starter --skill pnpm-hakushun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pnpm
Source: https://github.com/hakushun/ai-dev-starter/tree/main/.cursor/skills/pnpm
Command: npx skills add https://github.com/hakushun/ai-dev-starter --skill pnpm-hakushun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables robust dependency management for JavaScript/TypeScript projects using pnpm, enforcing strict resolution and workspace-aware behavior.

Core Features & Use Cases

  • Monorepo-friendly: manage multiple packages with consistent dependency versions via pnpm-workspace.yaml and workspaces.
  • Catalogs, Overrides, Patches: centralize version management and apply patches or overrides across the workspace.
  • Fast, efficient installs: content-addressable store and hoisting modes reduce disk usage and install times.

Quick Start

  • pnpm install
  • pnpm add lodash
  • pnpm -w run build

Frequently Asked Questions about pnpm

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

FAQPage Schema
How do I manage dependencies in a monorepo using pnpm workspaces?

Manage monorepo dependencies in pnpm workspaces by defining multiple packages in pnpm-workspace.yaml to ensure consistent dependency versions and strict resolution across the workspace. This structure enables centralized version management and fast, efficient installs using a content-addressable store.

What is the best way to centralize version management for JavaScript dependencies?

Centralize JavaScript dependency version management by utilizing pnpm catalogs and overrides within your pnpm-workspace.yaml configuration. This approach enforces strict resolution across all workspace packages, preventing version drift and ensuring consistent installations throughout the monorepo.

How do I apply patches to Node packages in a pnpm workspace?

Apply patches to Node packages in a pnpm workspace by using the core pnpm patch command. This skill supports applying patches and overrides across the workspace, allowing you to modify dependency behavior locally while maintaining strict resolution rules.

Does pnpm support workspace filtering for running scripts across multiple packages?

pnpm supports workspace filtering to run scripts across multiple packages within a monorepo. You can execute commands like build or test on specific workspace subsets using filtering syntax, streamlining development workflows in pnpm-workspace.yaml configured environments.

Why use pnpm for dependency management instead of other category-level package managers?

Use pnpm for dependency management to leverage its content-addressable store and specific hoisting modes, which significantly reduce disk usage and install times. Unlike standard category-level package managers, pnpm enforces strict resolution and provides native workspace awareness for monorepos.