Agent skill
pnpm
pnpm fast package manager with content-addressable storage. Use for efficient installs.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pnpm-g1joshi-agent-skills
SKILL.md
pnpm
pnpm is fast and disk-efficient. It uses a Content Addressable Store and hard links to avoid duplicating packages. v9 (2025) adds Catalogs.
When to Use
- Disk Space: Saves GBs by storing one copy of
lodashglobally. - Speed: Installation is instant if packages are already in the store.
- Monorepos: Excellent workspace support with strict isolation.
Quick Start
# Enable via Corepack
corepack enable
corepack prepare pnpm@latest --activate
pnpm add next
Core Concepts
Content Addressable Store
~/.local/share/pnpm/store. All packages live here. Projects assume node_modules structure via symlinks.
Strict Resolution
Unlike npm/yarn (classic), pnpm does not flatten node_modules. You cannot access dependency-of-dependency unless you declare it.
Catalogs (v9)
Define version groups in pnpm-workspace.yaml. e.g. catalog:react-18 ensures all packages use exact same versions.
Best Practices (2025)
Do:
- Use CI Caching: pnpm is fast, but setup
pnpm-storecaching in GitHub Actions to make it instant. - Use
pnpm -r: Run commands recursively across the monorepo. - Use
only-allow: Addpreinstallscript to force team to use pnpm.
Don't:
- Don't shame hoist: If legacy tools break with symlinks, use
shamefully-hoist=truein.npmrcas a temporary fix.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?