pnpm

pnpm is a skill for Claude Code, Codex from sanity-io/next-sanity. It costs 35 tokens per session (699 once invoked), scanned A, original, MIT.

A collection of performance guidelines for React and Next.js, tools for building web interfaces and applications with JavaScript.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring React components and Next.js pages, especially for data loading, bundle size, server work, browser updates, and rendering.
Why use it?
It helps find patterns that can slow pages down, such as waiting for work one step at a time, shipping unnecessary code, or causing avoidable browser updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when writing, reviewing, or refactoring React components and Next.js pages, especially for data loading, bundle size, server work, browser updates, and rendering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanity-io/next-sanity/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 sanity-io/next-sanity --skill pnpm
Clone the repo
git clone --depth 1 https://github.com/sanity-io/next-sanity

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/sanity-io/next-sanity/pnpm/github.svg)](https://agentmods.dev/skills/sanity-io/next-sanity/pnpm)
Your own site
<a href="https://agentmods.dev/skills/sanity-io/next-sanity/pnpm"><img src="https://agentmods.dev/badge/skills/sanity-io/next-sanity/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/sanity-io/next-sanity/pnpm"><img src="https://agentmods.dev/badge/skills/sanity-io/next-sanity/pnpm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 12
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 21
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00035 $0.00699
Opus 5 $0.00017 $0.00349
Sonnet 5 $0.00007 $0.00140
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

pnpm scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

  • pnpm — 100% identical, 40 lines differ
  • pnpm — 100% identical, 40 lines differ
  • pnpm — 100% identical, 40 lines differ
  • pnpm — 100% identical, 40 lines differ
  • pnpm — 100% identical, 23 lines differ
.agents/skills/pnpm/SKILL.md · 43 lines

How it starts

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

pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, saving significant disk space. pnpm enforces strict dependency resolution by default, preventing phantom dependencies. Configuration should preferably be placed in pnpm-workspace.yaml for pnpm-specific settings.

Important: When working with pnpm projects, agents should check for pnpm-workspace.yaml and .npmrc files to understand workspace structure and configuration. Always use --frozen-lockfile in CI environments.

The skill is based on pnpm 10.x, generated at 2026-01-28.

Core

Topic Description Reference
CLI Commands Install, add, remove, update, run, exec, dlx, and workspace commands core-cli
Configuration pnpm-workspace.yaml, .npmrc settings, and package.json fields core-config
Workspaces Monorepo support with filtering, workspace protocol, and shared lockfile core-workspaces
Store Content-addressable storage, hard links, and disk efficiency core-store

Features

Topic Description Reference
Catalogs Centralized dependency version management for workspaces features-catalogs
Overrides Force specific versions of dependencies including transitive features-overrides
Patches Modify third-party packages with custom fixes features-patches
Aliases Install packages under custom names using npm: protocol features-aliases
Hooks Customize resolution with .pnpmfile.cjs hooks features-hooks
Peer Dependencies Auto-install, strict mode, and dependency rules features-peer-deps

Read the full file on GitHub · 43 lines

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 · 43 lines · 35 tokens per session scan A d58bdfa07358

Subscribe to this mod's changes

pnpm is a skill published in the GitHub repository sanity-io/next-sanity (949 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 699 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

new-block

Scaffold a new page builder block for Turbo Start Sanity end-to-end — Sanity schema, GROQ projection, styled React component, Markdown serializer, tests, and all registrations. Use when asked to add, create, or scaffold a new page builder block, section, or content module (e.g. "add a testimonials block", "create a…

robotostudio/turbo-start-sanity · 83 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

robotostudio/turbo-start-sanity · 58 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

robotostudio/turbo-start-sanity · 67 tokens

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API ( component, addTransitionType, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components…

robotostudio/turbo-start-sanity · 127 tokens

next-best-practices

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling.

robotostudio/turbo-start-sanity · 38 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens