pnpm

pnpm is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 31 tokens per session (3,044 once invoked), scanned C, original, MIT.

A guide to pnpm, a package manager for JavaScript and Node.js projects. It covers installing dependencies, managing workspaces, and configuring pnpm.

In plain words
What is it for?
Use it for pnpm commands, dependency management, workspace or monorepo setup, package filtering, security checks, and changing dependency code.
Why use it?
It helps developers install and manage project dependencies while avoiding undeclared packages and reducing repeated copies of the same files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for pnpm commands, dependency management, workspace or monorepo setup, package filtering, security checks, and changing dependency code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/pnpm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill pnpm
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pnpm

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/pnpm/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/pnpm)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/pnpm"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/pnpm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pnpm

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/pnpm"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/pnpm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.03044
Opus 5 $0.00015 $0.01522
Sonnet 5 $0.00006 $0.00609
Haiku 4.5 $0.00003 $0.00304

Measured 10d ago against content hash 55b71ebb1d44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

pnpm scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://get.pnpm.io/install.sh | sh -

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://get.pnpm.io/install.sh | sh -
skills/pnpm/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pnpm Documentation Skill

Overview

pnpm is a fast, disk-efficient package manager for JavaScript and Node.js. It uses a content-addressable store to share dependencies across projects, saving disk space and boosting installation speed. pnpm creates a non-flat node_modules directory structure that prevents phantom dependencies, and has built-in support for workspaces (monorepos), catalogs, patching, filtering, and more.

Key Benefits

  • Disk efficient — content-addressable store with hard links; shared dependencies across projects
  • Fast installations — three-stage installation: resolution, directory structure calculation, linking
  • Strict node_modules — non-flat structure prevents access to undeclared dependencies
  • Workspace support — built-in monorepo support with pnpm-workspace.yaml, workspace protocol
  • Catalogs — reusable dependency version constants across workspace packages
  • Filtering — rich --filter selector syntax for targeting packages by name, relation, or changes
  • Security — build script approval, trust policies, minimum release age, audit, SBOM generation
  • Patching — first-class pnpm patch command for modifying dependencies
  • Runtime management — built-in Node.js/Deno/Bun runtime installation via devEngines
  • CLI aliasespn shorthand for pnpm, pnx for pnpm dlx

File Index

File Topics
getting-started.md Motivation (disk space, speed, non-flat node_modules), feature comparison vs npm/Yarn, installation (standalone script, Corepack, npm, Homebrew, winget, Scoop, Choco, Docker), pnpm CLI overview (short aliases, differences vs npm, options, commands, environment variables), npm-to-pnpm migration, supported package sources (trusted: npm registry/JSR/workspace/local file system, exotic: remote tarball/git repository with semver/subdirectory/provider shorthand), aliases (npm: protocol for package aliasing), config dependencies (configDependencies, platform-specific binaries, usage in hooks/updateConfig/patch files), continuous integration (GitHub Actions, GitLab CI, CircleCI, Azure Pipelines, Bitbucket, Jenkins, Semaphore, AppVeyor, Travis, CI best practices)
configuration.md Settings in pnpm-workspace.yaml: dependency resolution (overrides, packageExtensions, allowedDeprecatedVersions, supportedArchitectures, minimumReleaseAge, trustPolicy, registries), hoisting (hoist, hoistPattern, publicHoistPattern, shamefullyHoist, hoistingLimits), node-modules (modulesDir, nodeLinker, symlink, virtualStoreDir, packageImportMethod, modulesCacheMaxAge), store (storeDir, verifyStoreIntegrity), network (proxy, maxsockets, strictSsl), lockfile (lockfile, preferFrozenLockfile, gitBranchLockfile), peer dependencies (autoInstallPeers, dedupePeerDependents, strictPeerDependencies), CLI settings (color, loglevel, engineStrict, pmOnFail), build settings (ignoreScripts, childConcurrency, sideEffectsCache, verifyDepsBeforeRun, strictDepBuilds, allowBuilds), Node.js settings (nodeVersion, runtimeOnFail, nodeDownloadMirrors), versioning settings, other settings (savePrefix, tag, globalDir, cacheDir, resolutionMode, extendNodePath, dedupeDirectDeps, optimisticRepeatInstall, enablePrePostScripts, scriptShell), package.json fields (engines, devEngines, dependenciesMeta, peerDependenciesMeta, publishConfig), .npmrc auth
workspaces.md Workspace setup (pnpm-workspace.yaml), workspace protocol (workspace:), aliases, relative paths, publishing workspace packages, release workflow (changesets, Rush), troubleshooting (cyclic dependencies), workspace configuration (linkWorkspacePackages, injectWorkspacePackages, dedupeInjectedDeps, syncInjectedDepsAfterScripts, preferWorkspacePackages, sharedWorkspaceLockfile, saveWorkspaceProtocol, includeWorkspaceRoot, ignoreWorkspaceCycles, disallowWorkspaceCycles, failIfNoMatch), catalogs (catalog: protocol, default catalog, named catalogs, advantages, publishing, settings), filtering (--filter syntax: by name, dependencies, dependents, glob, changed files, excluding, multiplicity, --filter-prod, --test-pattern), .pnpmfile.mjs hooks (readPackage, updateConfig, afterAllResolved, beforePacking, preResolution, importPackage, fetchers, custom resolvers, custom fetchers, related configuration)
cli-commands.md Full CLI command reference: pnpm install (options: --force, --offline, --prefer-offline, --no-lockfile, --lockfile-only, --dry-run, --fix-lockfile, --update-checksums, --frozen-lockfile, --reporter, --shamefully-hoist, --ignore-scripts, --filter, --resolution-only, --prod, --dev, --no-optional), pnpm add (sources: npm, JSR, workspace, local, remote, git; options: --save-prod, --save-dev, --save-optional, --save-exact, --save-peer, --save-catalog, --global, --workspace, --allow-build, --filter), pnpm update (--recursive, --latest, --global, --workspace, --prod, --dev, --interactive, --no-save, --filter), pnpm remove (--recursive, --global, --filter), pnpm run (--recursive, --if-present, --no-bail, --parallel, --sequential, --stream, --aggregate-output, --resume-from, --report-summary, --filter; regex script matching; environment variables), pnpm exec (--recursive, --parallel, --shell-mode, --report-summary, --filter), pnx/dlx (--package, --allow-build, --shell-mode, --silent; security and trust policies), pnpm publish (--recursive, --json, --tag, --access, --no-git-checks, --publish-branch, --force, --batch, --provenance, --dry-run, --otp, --filter; life cycle scripts), pnpm patch (--edit-dir, --ignore-existing; patchedDependencies, allowUnusedPatches), pnpm audit (--audit-level, --fix, --fix=update, --interactive, --json, --dev, --prod, --ignore, --ignore-unfixable; signatures), pnpm config (set, get, delete, list; --global, --location, --json), pnpm store (status, add, prune, path), pnpm list/ls (--recursive, --json, --long, --parseable, --global, --depth, --prod, --dev, --filter), pnpm why (--recursive, --json, --long, --parseable, --global, --depth, --filter), pnpm import (from npm/Yarn lockfiles), pnpm setup, pnpm root, pnpm sbom, pnpm licenses, pnpm create, pnpm runtime, pnpm with, pnpm recursive, pnpm link/ln (symlink local package, use cases, pnpm link vs file: protocol), pnpm unlink, pnpm rebuild/rb (--recursive, --filter), pnpm pack (--recursive, --out, --pack-destination, --pack-gzip-level, --json, --filter, --dry-run, --skip-manifest-obfuscation; life cycle scripts), pnpm deploy (--dev, --no-optional, --prod, --filter, --legacy; forceLegacyDeploy), pnpm doctor (health checks: versions/install method/global bin/cache/store/filesystem/registry connectivity/install smoke test; --offline, --benchmark, --json), pnpm test (shorthand for pnpm run test)

Read the full file on GitHub · 255 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 255 lines · 31 tokens per session scan C 55b71ebb1d44

Subscribe to this mod's changes

pnpm is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 3,044 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

npm-security

Prevent JavaScript/TypeScript projects from supply-chain attacks across package managers like npm, pnpm, yarn, bun, and deno. Use whenever planning, installing, updating packages or configuring package managers.

bodadotsh/npm-security-best-practices · 43 tokens

javascript-expert

Expert-level JavaScript development with modern ES2024+ features, Node.js, npm ecosystem, and best practices. Use when the user mentions ECMAScript, ES2024, Node.js, npm, or web, or when the task involves Modern JavaScript, Node.js Development, Modern Tooling, or Functional Programming.

personamanagmentlayer/pcl · 69 tokens

upgrade-packages-js

Safely upgrade JavaScript packages with breaking change detection, migration guidance, and automated code migrations (npm/pnpm/yarn). Cross-platform with git safety branch enforcement.

georgekhananaev/claude-skills-vault · 38 tokens

turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines…

vercel/turborepo · 111 tokens

crossposting

Crosspost Wasp blog articles (MDX) to DEV.to and Medium.

wasp-lang/wasp · 19 tokens

notion-to-blog

Transfer a blog post from Notion to the Wasp blog. Fetches content, downloads and optimizes images, and creates a properly formatted MDX file.

wasp-lang/wasp · 37 tokens