mcpField
P
pnpm

pnpm

github.com/sanity-ioDevelopment95735 installsUpdated 5d ago
Repository

About pnpm

A pnpm skill for coding agents working with pnpm 10.x projects. It covers command usage, configuration, workspaces, package-store behavior, and operational practices such as frozen lockfiles in CI.

Key features

  1. 01Install and workspace CLI guidance
  2. 02Configuration and project settings
  3. 03Monorepo workspace management
  4. 04Content-addressable package store
  5. 05Catalogs, overrides, patches, and hooks
  6. 06CI and migration practices

Use cases

  1. 01Installing or managing project dependencies
  2. 02Configuring a pnpm monorepo
  3. 03Preparing pnpm workflows for CI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/sanity-io/next-sanity --skill pnpm

After installing, type/pnpmin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

GENERATION.md
references/
best-practices-ci.md
best-practices-migration.md
best-practices-performance.md
core-cli.md
core-config.md
core-store.md
core-workspaces.md
features-aliases.md
features-catalogs.md
features-hooks.md
features-overrides.md
features-patches.md
features-peer-deps.md

Details

From the project README

pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, saving significant disk space. pnpm enforces strict dependency resolution by default, preventing phantom dependencies. Configuration should preferably be placed in pnpm-workspace.yaml for pnpm-specific settings.

Important: When working with pnpm projects, agents should check for pnpm-workspace.yaml and .npmrc files to understand workspace structure and configuration. Always use --frozen-lockfile in CI environments.

The skill is based on pnpm 10.x, generated at 2026-01-28.

Core

TopicDescriptionReference
CLI CommandsInstall, add, remove, update, run, exec, dlx, and workspace commandscore-cli
Configurationpnpm-workspace.yaml, .npmrc settings, and package.json fieldscore-config
WorkspacesMonorepo support with filtering, workspace protocol, and shared lockfilecore-workspaces
StoreContent-addressable storage, hard links, and disk efficiencycore-store

Features

TopicDescriptionReference
CatalogsCentralized dependency version management for workspacesfeatures-catalogs
OverridesForce specific versions of dependencies including transitivefeatures-overrides
PatchesModify third-party packages with custom fixesfeatures-patches
AliasesInstall packages under custom names using npm: protocolfeatures-aliases
HooksCustomize resolution with .pnpmfile.cjs hooksfeatures-hooks
Peer DependenciesAuto-install, strict mode, and dependency rulesfeatures-peer-deps

Best Practices

TopicDescriptionReference
CI/CD SetupGitHub Actions, GitLab CI, Docker, and caching strategiesbest-practices-ci
MigrationMigrating from npm/Yarn, handling phantom deps, monorepo migrationbest-practices-migration
PerformanceInstall optimizations, store caching, workspace parallelizationbest-practices-performance

Comments

Markdown supported