pnpm

pnpm is a cursor rule for Cursor from kleosr/kleosrules. It costs 230 tokens per session, scanned B, original, MIT.

A rule that makes pnpm the only package manager for JavaScript and TypeScript projects. A package manager installs, updates, runs, and audits project dependencies.

In plain words
What is it for?
Use it when installing, updating, running, or auditing JavaScript and TypeScript dependencies, while keeping the repository's existing lockfile when needed.
Why use it?
It prevents different package managers from creating conflicting lockfiles or inconsistent dependency setups.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when installing, updating, running, or auditing JavaScript and TypeScript dependencies, while keeping the repository's existing lockfile when needed.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kleosr/kleosrules/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.

Clone the repo
git clone --depth 1 https://github.com/kleosr/kleosrules

Made for: Cursor.

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/rules/kleosr/kleosrules/pnpm/github.svg)](https://agentmods.dev/rules/kleosr/kleosrules/pnpm)
Your own site
<a href="https://agentmods.dev/rules/kleosr/kleosrules/pnpm"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/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/rules/kleosr/kleosrules/pnpm"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/pnpm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 230 This file is loaded in full into every session.
When invoked 230 The same file — it is already loaded in full.
Security scan B 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.00230 $0.00230
Opus 5.5 $0.00092 $0.00092
Sonnet 5.5 $0.00046 $0.00046
Haiku 4.5 $0.00023 $0.00023

Measured 2mo ago against content hash 6f75d561b153, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

pnpm scanned grade B 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 2mo 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 codemediumSupply chain

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

- Do not run `curl | sh` or an unknown package `postinstall`. Honor `onlyBuiltDependencies` / `strictDepBuilds` when the repo sets them.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

- Do not run `curl | sh` or an unknown package `postinstall`. Honor `onlyBuiltDependencies` / `strictDepBuilds` when the repo sets them.
shared/rules/pnpm.mdc · 17 lines

What it actually says

pnpm

For new JS, use pnpm for add/update/run/audit. Respect an existing manager; migration needs approval.

  • New JS: pnpm-lock.yaml only. Existing non-pnpm lockfile: keep it; convert only on explicit request.
  • New packages must lose to stdlib, the framework, and already-installed deps first.
  • Audit with the repo manager (pnpm audit on pnpm).
  • Do not run curl | sh or an unknown package postinstall. Honor onlyBuiltDependencies / strictDepBuilds when the repo sets them.
  • packageManager, when you touch it on new JS, names pnpm.
  • Before changing pnpm security keys or adding a JS dependency, read SECURITY.md.
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. 2mo ago Changed · +1 lines · +25 tokens per session 6f75d561b153
  2. 2mo ago Changed · -21 tokens per session scan C → B ceb93d8c14b3
  3. 3mo ago First seen · 16 lines · 226 tokens per session scan C 4c67eba5fb94

Subscribe to this mod's changes

pnpm is a cursor rule published in the GitHub repository kleosr/kleosrules (0 stars, last pushed 2mo ago), licensed MIT. It adds 230 tokens to every session, about $0.0009 per session on Opus 5.5. A static security scan graded it B 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

pnpm compared with cursor rules from other repositories

pnpm next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pnpmkleosr/kleosrulesCursor rule02mo agoMITB230Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
ultraworkJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
autopilotJkudjo/oh-my-cursorCursor rule117d agoMITA12Cursor
ask-firstjaansokk/cursor_toolsCursor rule110d agoMITA42Cursor