
pnpm
Skillpnpm 包管理器的参考:命令行、pnpm-workspace.yaml 配置、monorepo 工作区、内容寻址存储、catalogs、overrides、patches、构建审批等供应链安全设置与任务编排,以及 CI 配置和从 npm、Yarn 或旧版本迁移。基于 pnpm 12,由 Anthony Fu 从官方文档生成。
name: pnpm
description: Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspace.yaml, or managing dependencies with catalogs, patches, overrides, config dependencies, or the global virtual store.
metadata:
author: Anthony Fu
version: "2026.9.25"
source: Generated from https://github.com/pnpm/pnpm, scripts located at https://github.com/antfu/skills
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.
pnpm v12 is a Rust rewrite of v11: stable, and keeps v11's commands, flags, settings, and lockfile format — so most guidance here applies to both. A handful of v12 behaviors differ (git deps resolve via HTTPS, project-aware global bins, other package managers, packageImportMethod: auto hardlinks first on Linux, --resolution-only removed) — see best-practices-migration.
Configuration model (important): pnpm settings 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 12.x, generated at 2026-09-25. It covers v11+v12 behavior (config split, isolated global packages,
allowBuilds,pmOnFail, global virtual store, native release management, workspace task orchestration, and experimental Python/Cargo support) where current docs describe them.
Core
| Topic | Description | Reference |
|---|---|---|
| CLI Commands | install/add/remove/update, run, dlx/pnx, workspace, runtime, publishing (version, view, sbom, stage) | core-cli |
| Configuration | pnpm-workspace.yaml settings (camelCase), global config.yaml, packageConfigs, .npmrc auth | core-config |
| Workspaces | Monorepo support: filtering, workspace protocol, shared lockfile, packageConfigs | core-workspaces |
| Store | Content-addressable store, virtual store, node linker modes, frozen/read-only store | core-store |
Features
| Topic | Description | Reference |
|---|---|---|
| Catalogs | Centralized dependency versions; catalogMode, catalog: in overrides | features-catalogs |
| Overrides | Force versions (incl. transitive & peer deps); packageExtensions | features-overrides |
| Patches | Modify third-party packages; patchedDependencies in pnpm-workspace.yaml | features-patches |
| Aliases | Install under custom names (npm:) and registry aliases (namedRegistries) | features-aliases |
| Hooks | .pnpmfile.mjs hooks (readPackage, updateConfig, beforePacking), finders, resolvers/fetchers | features-hooks |
| Peer Dependencies | Auto-install, strict mode, rules, dedupePeers, peers check | features-peer-deps |
| Config Dependencies | Share hooks/settings/catalogs/patches across repos via configDependencies | features-config-dependencies |
| Global Virtual Store & Shims | Shared node_modules, git-worktree multi-agent setups, isolated global packages, project-aware bins, other package managers | features-global-virtual-store |
| Supply-Chain Security | Build approval (allowBuilds), minimumReleaseAge, trustPolicy, lockfile integrity | features-supply-chain-security |
| Task Orchestration | Cross-project task graphs (tasks/dependsOn), concurrency groups, priority, pnpm pipeline | features-task-orchestration |
| Release Management | Native versioning: pnpm change/version -r/lane, lanes, epics, fixed groups | features-versioning |
| Multi-Ecosystem | Python (pypi:) and Cargo (crate:) dependencies alongside npm (experimental) | features-multi-ecosystem |
Best Practices
| Topic | Description | Reference |
|---|---|---|
| CI/CD Setup | GitHub Actions, GitLab, Docker, pnpm ci, store caching, frozen lockfiles | best-practices-ci |
| Migration | npm/Yarn → pnpm, phantom deps, and pnpm v10 → v11 → v12 upgrade notes | best-practices-migration |
| Performance | Install optimizations, allowBuilds, global virtual store, workspace parallelization | best-practices-performance |
相關資源

Antfu Conventions
SkillAnthony Fu 对 JavaScript / TypeScript 项目的约定与工具偏好:代码组织、显式导入、Vitest 测试写法,以及 @antfu/ni、开启 antislop 的 @antfu/eslint-config、Knip、tsdown 和统一的 ci 脚本,新建项目时参照 antfu/starter-ts 模板。
antfu/skills6k
Bun
CLI一体化的 JavaScript/TypeScript 工具链:单个 bun 可执行文件同时是 Node.js 兼容运行时、包管理器、测试运行器与脚本运行器,安装依赖与跑测明显更快。
oven-sh/bun96.3k
JavaScript TypeScript
PluginJS/TS 开发插件:内置 javascript-pro、typescript-pro 两个子代理和 TypeScript 项目脚手架命令,外加现代 JS 写法、TS 高级类型、Node.js 后端、JS 测试 4 个技能。收录在 wshobson/agents 插件市场。
wshobson/agents41k
mkcert
CLI一条命令创建本地 CA,并生成系统和浏览器都信任的开发用 HTTPS 证书,支持 localhost、IP 和通配符域名,不需要额外配置。第一次使用要先运行 mkcert -install,把根证书装进信任库。
FiloSottile/mkcert59.7k
Vercel CLI
CLIVercel 官方命令行,一条命令把前端与全栈项目部署上线,并管理预览环境、环境变量、域名与日志。官方维护,需要 Vercel 账号(有免费档)。
vercel/vercel16.4k
Claude Skills (Fullstack Dev Skills)
Plugin把 60 多个全栈专家技能打包成一个插件:Python、TypeScript、Go、Rust、Java 等 12 种语言专家,以及 React、Django、Spring Boot 等框架专家,按请求自动激活;另含对接 Jira / Confluence 的项目工作流命令(需 Atlassian MCP)。
Jeffallan/claude-skills11.9k