mcpField
P
pnpm

pnpm

github.com/onmaxDevelopment7231.9k installsUpdated 2d ago
Repository

About pnpm

A pnpm skill for JavaScript project development, covering package management, monorepo workspaces, dependency overrides, and CI configuration with task-specific references.

Key features

  1. 01Installing and managing npm packages
  2. 02Monorepo workspace configuration
  3. 03Centralized versions with catalogs
  4. 04Dependency overrides and patches
  5. 05CI/CD and security configuration

Use cases

  1. 01Installing or adding project dependencies
  2. 02Setting up workspaces and catalogs
  3. 03Patching third-party packages
  4. 04Configuring CI for pnpm projects

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/onmax/nuxt-skills --skill pnpm

After installing, type/pnpmin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
ci.md
cli.md
features.md
workspaces.md

Details

From the project README

pnpm

Content-addressable store, strict deps, workspace protocol, catalogs.

When to Use

  • Installing/managing npm packages
  • Monorepo workspace setup with catalogs
  • Overriding transitive dependencies
  • Patching third-party packages
  • CI/CD configuration for pnpm projects
  • Supply chain security hardening

Quick Start

pnpm install                      # Install deps
pnpm add <pkg>                    # Add dep
pnpm add -D <pkg>                 # Dev dep
pnpm -r run build                 # Run in all packages
pnpm --filter @myorg/app build    # Run in specific package

Workspace Setup

# pnpm-workspace.yaml
packages:
  - 'packages/*'
  - 'apps/*'

# Catalogs for centralized version management
catalog:
  react: ^18.2.0
  typescript: ~5.3.0
// package.json - Use workspace protocol and catalogs
{
  "packageManager": "[email protected]",
  "dependencies": {
    "@myorg/utils": "workspace:^",
    "react": "catalog:"
  }
}

Reference Files

TaskFile
Commands, scripts, filteringcli.md
Workspaces, catalogs, configworkspaces.md
Overrides, patches, hooks, storefeatures.md
CI/CD, Docker, migrationci.md

Loading Files

Consider loading these reference files based on your task:

DO NOT load all files at once. Load only what's relevant to your current task.

Verify Setup

After configuring a workspace, verify it works:

pnpm install          # Install all deps
pnpm ls --depth 0     # Verify workspace links
pnpm -r run build     # Build all packages

Cross-Skill References

  • TypeScript libs → Use ts-library skill for library patterns
  • Build tooling → Use tsdown or vite skills

Comments

Markdown supported