pnpm
Skill by antfu
Explains and guides use of the pnpm Node.js package manager, with strict dependency resolution. It is for developers running pnpm commands, configuring workspaces, and managing dependencies.
Install pnpm
Built from the published package, never by AI.
git clone --depth 1 https://github.com/antfu/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/pnpm ~/.claude/skills/pnpmRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/antfu/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/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 skill gives an AI assistant guidance on pnpm, a fast, disk space efficient Node.js package manager. 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 explains where settings belong. pnpm settings live in pnpm-workspace.yaml and the global config.yaml using camelCase keys. The .npmrc file is used only for authentication and registry credentials. The skill also covers workspaces, catalogs, patches, overrides, config dependencies, and the global virtual store. It is written for developers who work in pnpm projects and monorepos, and it notes that CI should use --frozen-lockfile or pnpm ci.
Written from the project's SKILL.md and checked against it.
What it can do
- CLI commandsCovers install, add, remove, update, run, dlx, workspace, and publishing commands.
- ConfigurationExplains pnpm-workspace.yaml settings, global config.yaml, and auth in .npmrc.
- WorkspacesCovers monorepo filtering, the workspace protocol, and a shared lockfile.
- CatalogsCentralizes dependency versions across a workspace using catalogs.
- OverridesForces dependency versions, including transitive and peer dependencies.
- PatchesModifies third-party packages through patchedDependencies in pnpm-workspace.yaml.
- Config dependenciesShares hooks, settings, catalogs, and patches across repositories.
- Global virtual storeCovers the shared node_modules setup and isolated global packages.
- Supply-chain securityCovers build approval with allowBuilds, minimumReleaseAge, and lockfile integrity.
- CI and migrationCovers CI setup with frozen lockfiles and upgrades from npm, Yarn, and older pnpm versions.
What you need
- Node.js
Try asking
- Set up a pnpm workspace with a shared catalog of dependency versions
- Add a patch to a third-party package using pnpm patches
- Explain why my pnpm install reports a phantom dependency error
Good to know
- The skill is based on pnpm 12.18, generated on 2026-11-05.
- The pnpm field in package.json is no longer read.
- Python and Cargo dependency support is experimental.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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.md5 KB -
references/best-practices-ci.md10 KB -
references/best-practices-migration.md10 KB -
references/best-practices-performance.md6 KB
Show all 21 files
-
references/core-cli.md11 KB -
references/core-config.md13 KB -
references/core-store.md11 KB -
references/core-workspaces.md7 KB -
references/features-aliases.md4 KB -
references/features-catalogs.md5 KB -
references/features-config-dependencies.md4 KB -
references/features-global-virtual-store.md10 KB -
references/features-hooks.md9 KB -
references/features-multi-ecosystem.md6 KB -
references/features-overrides.md5 KB -
references/features-patches.md5 KB -
references/features-peer-deps.md6 KB -
references/features-supply-chain-security.md8 KB -
references/features-task-orchestration.md7 KB -
references/features-versioning.md5 KB
Alternatives to pnpm
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pnpm: common questions
What is strict dependency resolution in pnpm?
pnpm enforces strict dependency resolution by default. This prevents phantom dependencies, which are packages a project can import without declaring them.
Where should pnpm settings be configured?
Settings belong in pnpm-workspace.yaml and the global config.yaml, using camelCase keys. The .npmrc file is used only for authentication and registry credentials.
Does this skill cover pnpm v12?
Yes. The source says pnpm v12 is a Rust rewrite of v11 that keeps v11's commands, flags, settings, and lockfile format. It notes a few behavior differences.
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 94 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: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
