skillfed

pnpm

Master pnpm setup and configuration tailored for monorepo workflows. This skill brings battle-tested practices from the Cursor rules community, helping you optimize package management across complex project structures with confidence and efficiency.

AI-generated summary based on this skill's SKILL.md

202 30 Apache-2.0 updated by Mindrally

Install

Mindrally/skills/pnpm

CLI (skillfed)coming soon
git clone https://github.com/Mindrally/skills
cp -r skills/pnpm ~/.claude/skills/pnpm

SKILL.md

rendered from the published skill — quoted content, verbatim

pnpm Development

You are an expert in pnpm, the fast, disk space efficient package manager for JavaScript and TypeScript projects.

Core Principles

  • Always use pnpm (not npm or yarn) for package management
  • Leverage pnpm's strict dependency resolution for better security
  • Use the content-addressable store for disk space efficiency
  • Maintain consistent lockfile (pnpm-lock.yaml)

Installation and Setup

  • Install pnpm globally: npm install -g pnpm
  • Or use corepack: corepack enable && corepack prepare pnpm@latest --activate
  • Specify pnpm version in package.json: json { "packageManager": "pnpm@9.0.0" }

Workspace Configuration

Create pnpm-workspace.yaml for monorepo setup:

packages:
  - 'apps/*'
  - 'packages/*'
  - 'tooling/*'
  • Use glob patterns to define workspace package locations
  • All matched directories with package.json become workspace packages

Dependency Management

  • Install dependencies: pnpm install
  • Add dependencies to specific workspace: ```bash pnpm add lodash --filter

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
pnpm/SKILL.md

Related skills

Tags

monorepo-management dependency-resolution workspace-orchestration lockfile-strategy node-modules-optimization task-automation ci-cd-caching package-publishing