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.
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/pnpmRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sanity-io/next-sanity /tmp/next-sanity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/next-sanity/.agents/skills/pnpm ~/.gemini/antigravity-cli/skills/pnpmAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
