Skills Explorer Add Skills

pnpm

An agent skill by antfu, from antfu/skills. Tags: cli, dependencies, monorepo, setup, workflow.

What it does

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.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add antfu/skills --skill pnpm

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/antfu/skills
cp -r skills/skills/pnpm ~/.claude/skills/pnpm

Safety box score

Grade D, elevated risk: 56 of 100 risk points, rated 2026-10-21. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This is a documentation-only skill for pnpm, but it covers installation, workspace config, dependency editing, global installs, and release/publish workflows. The main risks are shelling out to remote bootstrap code, modifying user-level pnpm/auth state, deleting workspace files, and publishing or unpublishing packages.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)The docs explicitly recommend shell execution such as `curl -fsSL https://get.pnpm.io/install.sh | sh -`, and the skill also centers on commands like `pnpm install`, `pnpm run`, and `pnpm exec` that can execute project scripts.
Network access2 (moderate)It routinely fetches packages and metadata from registries and external sources, including configurable `registries`/`namedRegistries` and experimental `pypi:`/`crate:` sources, so dependency data and artifacts leave the machine.
Filesystem reach2 (moderate)The references include destructive workspace commands like `rm -rf node_modules package-lock.json`, `rm -rf node_modules yarn.lock`, `pnpm clean`, and `pnpm --filter "./packages/**" exec rm -rf dist`, plus user-level paths such as `~/.config/pnpm/config.yaml` and `~/.local/share/pnpm/store`.
Secrets & credentials2 (moderate)The config guidance explicitly handles registry credentials in `.npmrc` and global auth files, with examples like `//registry.npmjs.org/:_authToken=${NPM_TOKEN}` and `pnpm_config__auth`, so it can touch secrets and auth state.
Privilege & persistence2 (moderate)It supports global/user-wide changes such as `pnpm add -g`, `pnpm add -g .`, `pnpm runtime set node 22 -g`, and `pnpm setup`, which install software and modify the user’s shell/environment.
Instruction hijack surface0 (none)There is no prompt-injection content, hidden instruction text, or guidance to ignore policies; the files are plain markdown documentation.
Irreversible actions3 (high)The skill includes release actions that affect external registries, including `pnpm publish -r --no-git-checks`, `pnpm unpublish`, `pnpm deprecate`, and `pnpm version -r`, which are inherently high-blast-radius operations.
Transparency0 (none)The shipped skill is readable markdown only; there are no binaries, base64 blobs, or decoded-at-runtime payloads.

Before installing

Rated 2026-10-21 by an automated review of 21 files from the skill's repository.

Source

Repository
antfu/skills (all skills from this repository)
Path
skills/pnpm/SKILL.md
Branch
main
Updated
2026-09-22