npx skills add https://github.com/antfu/skills --skill pnpmpnpm 是一个快速、节省磁盘空间的包管理器。它使用内容寻址存储来去重机器上所有项目中的包,从而显著节省磁盘空间。pnpm 默认强制执行严格的依赖解析,防止幽灵依赖。对于 pnpm 特定的配置,建议将配置放在 pnpm-workspace.yaml 中。
重要提示: 在处理 pnpm 项目时,代理应检查 pnpm-workspace.yaml 和 .npmrc 文件以了解工作区结构和配置。在 CI 环境中始终使用 --frozen-lockfile。
此技能基于 pnpm 10.x,生成于 2026-01-28。
| 主题 | 描述 | 参考链接 |
|---|---|---|
| CLI 命令 | install、add、remove、update、run、exec、dlx 以及工作区命令 | core-cli |
| 配置 | pnpm-workspace.yaml、.npmrc 设置以及 package.json 字段 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| core-config |
| 工作区 | 支持单仓库,包含过滤、工作区协议和共享锁文件 | core-workspaces |
| 存储 | 内容寻址存储、硬链接和磁盘效率 | core-store |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 目录 | 为工作区集中管理依赖版本 | features-catalogs |
| 覆盖 | 强制指定依赖(包括传递依赖)的特定版本 | features-overrides |
| 补丁 | 使用自定义修复修改第三方包 | features-patches |
| 别名 | 使用 npm: 协议以自定义名称安装包 | features-aliases |
| 钩子 | 使用 .pnpmfile.cjs 钩子自定义解析过程 | features-hooks |
| 对等依赖 | 自动安装、严格模式及依赖规则 | features-peer-deps |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| CI/CD 设置 | GitHub Actions、GitLab CI、Docker 及缓存策略 | best-practices-ci |
| 迁移 | 从 npm/Yarn 迁移、处理幽灵依赖、单仓库迁移 | best-practices-migration |
| 性能 | 安装优化、存储缓存、工作区并行化 | best-practices-performance |
每周安装量
7.2K
代码仓库
GitHub 星标数
4.3K
首次出现
2026年1月28日
安全审计
已安装于
opencode5.6K
codex5.5K
gemini-cli5.3K
github-copilot5.2K
cursor5.0K
kimi-cli4.7K
pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, saving significant disk space. pnpm enforces strict dependency resolution by default, preventing phantom dependencies. Configuration should preferably be placed in pnpm-workspace.yaml for pnpm-specific settings.
Important: When working with pnpm projects, agents should check for pnpm-workspace.yaml and .npmrc files to understand workspace structure and configuration. Always use --frozen-lockfile in CI environments.
The skill is based on pnpm 10.x, generated at 2026-01-28.
| Topic | Description | Reference |
|---|---|---|
| CLI Commands | Install, add, remove, update, run, exec, dlx, and workspace commands | core-cli |
| Configuration | pnpm-workspace.yaml, .npmrc settings, and package.json fields | core-config |
| Workspaces | Monorepo support with filtering, workspace protocol, and shared lockfile | core-workspaces |
| Store | Content-addressable storage, hard links, and disk efficiency | core-store |
| Topic | Description | Reference |
|---|---|---|
| Catalogs | Centralized dependency version management for workspaces | features-catalogs |
| Overrides | Force specific versions of dependencies including transitive | features-overrides |
| Patches | Modify third-party packages with custom fixes | features-patches |
| Aliases | Install packages under custom names using npm: protocol | features-aliases |
| Hooks | Customize resolution with .pnpmfile.cjs hooks | features-hooks |
| Peer Dependencies | Auto-install, strict mode, and dependency rules |
| Topic | Description | Reference |
|---|---|---|
| CI/CD Setup | GitHub Actions, GitLab CI, Docker, and caching strategies | best-practices-ci |
| Migration | Migrating from npm/Yarn, handling phantom deps, monorepo migration | best-practices-migration |
| Performance | Install optimizations, store caching, workspace parallelization | best-practices-performance |
Weekly Installs
7.2K
Repository
GitHub Stars
4.3K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode5.6K
codex5.5K
gemini-cli5.3K
github-copilot5.2K
cursor5.0K
kimi-cli4.7K
99,500 周安装
| features-peer-deps |