$npx skillfedfor your agent

pnpm

This skill enables agents to handle Node.js package installation and dependency management through pnpm, a performant alternative to traditional package managers. Leverage pnpm's speed and storage efficiency to streamline your project's dependency lifecycle.

pnpm is a fast, disk-space-efficient Node.js package manager that serves as a performant alternative to npm and Yarn. Unlike npm, which duplicates dependencies across projects, pnpm uses a content-addressable store and symlinks to share dependencies globally, reducing disk usage significantly. pnpm also enforces stricter dependency resolution, preventing phantom dependencies and improving supply chain security. The MIT-licensed tool is designed to streamline your project's dependency lifecycle while maintaining compatibility with the npm ecosystem.

AI-generated summary based on this skill's SKILL.md

5,665 313 MITupdated by antfu

Decision gist · record as of 2026-06-23

pnpm is a fast, disk-space-efficient Node.js package manager that serves as a performant alternative to npm and Yarn. Unlike npm, which duplicates dependencies across projects, pnpm uses a content-addressable store and symlinks to share dependencies globally, reducing disk usage significantly. pnpm also enforces stricter dependency resolution, preventing phantom dependencies and improving supply chain security. The MIT-licensed tool is designed to streamline your project's dependency lifecycle while maintaining compatibility with the npm ecosystem.

manual: git clone https://github.com/antfu/skills → cp -r skills/skills/pnpm ~/.claude/skills/pnpm
skills/pnpm/SKILL.md · version 8febc633

Use it when

  • To install pnpm, use npm or your system package manager.
  • pnpm excels at monorepo management through its workspace feature.

Verify before relying

Read SKILL.md below before installing (18 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

antfu/skills/pnpm · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is pnpm and how does it compare to npm?

pnpm is a fast, disk-space-efficient Node.js package manager that serves as a performant alternative to npm and Yarn. Unlike npm, which duplicates dependencies across projects, pnpm uses a content-addressable store and symlinks to share dependencies globally, reducing disk usage significantly. pnpm also enforces stricter dependency resolution, preventing phantom dependencies and improving supply chain security. The MIT-licensed tool is designed to streamline your project's dependency lifecycle while maintaining compatibility with the npm ecosystem.

How do you install dependencies and set up pnpm in a project?

To install pnpm, use npm or your system package manager. Once installed, pnpm install dependencies works similarly to npm: run `pnpm install` to fetch and lock dependencies based on your pnpm-lock.yaml file. pnpm leverages a global virtual store for efficient storage, meaning repeated installations across projects reuse cached packages. For CI/CD pipelines, use `pnpm ci` with a frozen lockfile to ensure reproducible builds without modifying the lock file during installation.

How do you configure pnpm workspace setup and monorepo structures?

pnpm excels at monorepo management through its workspace feature. Define your monorepo by creating a pnpm-workspace.yaml file at the root, listing workspace directories (e.g., `packages/*`). This configuration allows pnpm to treat multiple packages as a single dependency graph, enabling efficient cross-package linking and shared dependency resolution. pnpm's workspace setup reduces duplication and ensures consistent versions across your monorepo, making it ideal for complex project structures.

What are pnpm patches, overrides, and catalogs for controlling dependency versions?

pnpm provides three powerful tools for version control: patches allow you to modify dependencies without forking; overrides let you enforce specific versions across your dependency tree; and catalogs enable centralized version management for frequently used packages. These features give you fine-grained control over your dependency versions, reducing conflicts and improving maintainability. Together, they support pnpm's strict dependency resolution model while keeping your project's dependency landscape organized and predictable.

How can you migrate from npm or Yarn to pnpm?

Migrating to pnpm from npm or Yarn is straightforward: install pnpm, then run `pnpm install` in your project directory. pnpm automatically reads your existing package-lock.json or yarn.lock and generates its own pnpm-lock.yaml. For monorepos, ensure your pnpm-workspace.yaml is properly configured before migration. pnpm's strict dependency resolution may reveal phantom dependencies that npm tolerated, so you may need to add missing dependencies explicitly. The migration process typically completes quickly, and pnpm's performance gains become immediately apparent.

How does pnpm optimize performance and disk space efficiency?

pnpm achieves disk space efficiency through its content-addressable store, where each package version is stored once globally and linked into projects via symlinks. This eliminates the duplication that npm creates, often reducing disk usage by 60–80% across multiple projects. pnpm's strict dependency resolution and optimized installation algorithm also improve performance compared to traditional package managers. The global virtual store is managed automatically, and pnpm's dlx command allows running packages without installation, further reducing overhead in CI/CD environments.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, and enforces strict dependency resolution by default, preventing phantom dependencies.

Configuration model (important): pnpm settings now live in pnpm-workspace.yaml (and the global config.yaml) using camelCase keys. .npmrc is used only for authentication/registry credentials, and the pnpm field of package.json is no longer read. When working in a pnpm project, check pnpm-workspace.yaml for settings/workspace structure and .npmrc only for auth. Always use --frozen-lockfile (or pnpm ci) in CI.

> The skill is based on pnpm 10.x, generated at 2026-06-22. It also

(truncated - see the full file via the links below)

File tree — 15 files
skills/pnpm/GENERATION.md
skills/pnpm/SKILL.md
skills/pnpm/references/best-practices-ci.md
skills/pnpm/references/best-practices-migration.md
skills/pnpm/references/best-practices-performance.md
skills/pnpm/references/core-cli.md
skills/pnpm/references/core-config.md
skills/pnpm/references/core-store.md
skills/pnpm/references/core-workspaces.md
skills/pnpm/references/features-aliases.md
skills/pnpm/references/features-catalogs.md
skills/pnpm/references/features-config-dependencies.md
skills/pnpm/references/features-global-virtual-store.md
skills/pnpm/references/features-hooks.md
skills/pnpm/references/features-overrides.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Install and manage Node.js dependencies using pnpm”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

pnpm
by hairyf · hairyf/skills

pnpm is a high-performance package manager designed for Node.js projects that prioritizes speed and storage efficiency. It streamlines dependency installation and management through innovative linking strategies, making it ideal for monorepos and large-scale development environments. Integrate pnpm into your workflow to reduce disk usage and accelerate build times across your projects.

MITupdated Jun 2026
★ 24repo stars
Pnpm Workspace
by oakoss · oakoss/agent-skills

This skill teaches you how to build and manage pnpm workspaces, enabling efficient monorepo development across multiple interconnected packages. You'll master workspace configuration, dependency management, and best practices for scaling projects with pnpm's lightweight approach.

no license declared → metadata onlyupdated Mar 2026
★ 13repo stars
pnpm
by sanity-io · sanity-io/next-sanity

pnpm is a high-performance package manager that streamlines dependency installation and management for Node.js projects. It uses a content-addressable storage model to minimize disk usage while maintaining compatibility with npm and yarn ecosystems. Ideal for teams seeking faster builds and more efficient resource utilization across development environments.

MITupdated Jul 2026
★ 951repo stars
dev-dependency-management
by vasilyu1983 · vasilyu1983/AI-Agents-public

This skill automates dependency management across multiple package ecosystems, helping you keep npm, pip, cargo, and maven packages current while minimizing breaking changes. It integrates with AI agents to analyze version compatibility, flag security updates, and execute safe upgrades across your entire development stack.

MITupdated Jul 2026
★ 69repo stars
Pnpm
by onmax · onmax/nuxt-skills

This skill equips AI coding assistants with pnpm package management capabilities, enabling streamlined dependency installation and updates across Vue, Nuxt, and NuxtHub environments. Leverage pnpm's efficient workspace handling and disk-space optimization to keep your project dependencies lean and maintainable.

no license declared → metadata onlyupdated Jul 2026
★ 691repo stars
audit-and-reduce-dependencies
by grafana · grafana/skills

This skill helps you streamline your pnpm project's dependency tree by identifying and removing unnecessary packages that bloat your lockfile. It provides automated auditing capabilities to surface redundant or unused dependencies, enabling you to maintain a leaner, faster build environment with minimal manual effort.

Apache-2.0updated Jul 2026
★ 203repo stars

More skills antfu (MIT) · antfu (MIT) · check-npm (Apache-2.0) · hairy (MIT) · arch-tsdown-monorepo (MIT) · arch-tsdown (MIT)

Tags
monorepo-managementdependency-deduplicationworkspace-protocollock-file-integritypackage-patchingversion-catalogsci-cd-optimizationphantom-dependency-preventionmulti-project-store