Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pnpm

Skill by sanity-io

Guides AI assistants through pnpm, a Node.js package manager with strict dependency resolution. It covers commands, workspaces, catalogs, patches and overrides.

  • Score 86
  • 955 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pnpm

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sanity-io/next-sanity /tmp/next-sanity && mkdir -p ~/.claude/skills && cp -r /tmp/next-sanity/.agents/skills/pnpm ~/.claude/skills/pnpm

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pnpm in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an AI assistant reference material for pnpm, a fast and disk space efficient Node.js package manager. The source says pnpm uses a content-addressable store to deduplicate packages across all projects on a machine. It enforces strict dependency resolution by default, which prevents phantom dependencies.

The skill covers CLI commands, pnpm-workspace.yaml and .npmrc configuration, and workspaces. It also covers catalogs, overrides, patches, aliases, hooks and peer dependencies, plus CI/CD setup, migration from npm or Yarn, and performance. It is aimed at developers and agents working on pnpm projects. It tells agents to check pnpm-workspace.yaml and .npmrc files and to use --frozen-lockfile in CI environments.

Written from the project's SKILL.md and checked against it.

What it can do

  • CLI commandsCovers install, add, remove, update, run, exec, dlx and workspace commands.
  • ConfigurationExplains pnpm-workspace.yaml, .npmrc settings and package.json fields.
  • WorkspacesCovers monorepo support with filtering, workspace protocol and a shared lockfile.
  • CatalogsCentralizes dependency version management for workspaces.
  • OverridesForces specific versions of dependencies, including transitive ones.
  • PatchesModifies third-party packages with custom fixes.
  • AliasesInstalls packages under custom names using the npm: protocol.
  • HooksCustomizes resolution with .pnpmfile.cjs hooks.
  • Peer dependenciesCovers auto-install, strict mode and dependency rules.
  • CI/CD setupCovers GitHub Actions, GitLab CI, Docker and caching strategies.

What you need

  • Node.js

Try asking

  • Set up a pnpm workspace with shared catalog versions for my packages
  • Add a patch to a third-party package using pnpm
  • Migrate this npm project to pnpm and handle phantom dependencies

Good to know

  • The skill is based on pnpm 10.x, generated at 2026-01-28.
  • The source is generated from the pnpm repository and scripts in another repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/pnpm/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • GENERATION.md134 B
  • SKILL.md4 KB
  • references/best-practices-ci.md5 KB
  • references/best-practices-migration.md5 KB
  • references/best-practices-performance.md5 KB
Show all 15 files
  • references/core-cli.md4 KB
  • references/core-config.md4 KB
  • references/core-store.md4 KB
  • references/core-workspaces.md4 KB
  • references/features-aliases.md3 KB
  • references/features-catalogs.md3 KB
  • references/features-hooks.md4 KB
  • references/features-overrides.md3 KB
  • references/features-patches.md4 KB
  • references/features-peer-deps.md4 KB

Alternatives to pnpm

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

pnpm: common questions

Does pnpm enforce strict dependency resolution?

Yes. The source says pnpm enforces strict dependency resolution by default, which prevents phantom dependencies.

Where should pnpm settings be placed?

The source says configuration should preferably go in pnpm-workspace.yaml for pnpm-specific settings. Agents should also check .npmrc files.

How does pnpm save disk space?

pnpm uses a content-addressable store to deduplicate packages across all projects on a machine, using hard links.

How do I install pnpm?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pnpm free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pnpm safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pnpm?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

Add to stack

Loading.