pnpm
Skill18 starsChanged 2 months agoApache-2.0View on GitHub
pnpm workspace and dependency management for this monorepo. Triggers on: pnpm install, pnpm add/remove/update, workspace protocol, catalogs, filtering, lockfile, hoisting, allowBuilds, minimumReleaseAge, CI install failures, and dependency version drift. Use when user or agent: adds/removes packages, scaffolds workspace packages, debugs install/hoisting issues, updates shared tool versions, or changes pnpm-workspace.yaml.
- Reads credentials
- Installs packages
13 other projects use a version of this.
Adopted by
Most recently taken up by
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- antfu/skillstheir own version, first seen Sep 30, 2026
- alint-dev/alinttheir own version, first seen Aug 17, 2026
- ElyzeSolutions/skillstheir own version, first seen Aug 6, 2026
- quatico-solutions/agent-skillstheir own version, first seen Jul 2, 2026
- hangineer/Hannah-Claude-Code-Toolkittheir own version, first seen Jun 25, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- antfu/skills★ 5.9ksame name
- JetBrains/skills★ 360same name
- Mindrally/skills★ 266same name
- alint-dev/alint★ 123same name
- skills-club/skills-live★ 13same name
- christopher-buss/skills★ 8same name
- huangzida/skills★ 2same name
- quatico-solutions/agent-skills★ 2same name
- ElyzeSolutions/skills★ 1same name
- hangineer/Hannah-Claude-Code-Toolkit★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- .cursor/rules/backend/hono-gateway.mdcCursor rule
- .cursor/rules/backend/ports.mdcCursor rule
- .cursor/rules/backend/service-bindings.mdcCursor rule
- .cursor/rules/backend/workers-cache.mdcCursor rule
- .cursor/rules/backend/workers-config.mdcCursor rule
- .cursor/rules/contracts/contracts.mdcCursor rule
- .cursor/rules/core/agent-instructions.mdcCursor rule
- .cursor/rules/core/boundaries.mdcCursor rule
- .cursor/rules/core/guardrails.mdcCursor rule
- .cursor/rules/core/turborepo.mdcCursor rule
- .cursor/rules/core/worktrees.mdcCursor rule
- .cursor/rules/frontend/react.mdcCursor rule
- .cursor/rules/frontend/tailwind.mdcCursor rule
- .cursor/rules/frontend/tanstack-query.mdcCursor rule
- .cursor/rules/frontend/tanstack-router.mdcCursor rule
- .cursor/rules/frontend/vite-config.mdcCursor rule
- .cursor/rules/ops/cd.mdcCursor rule
- .cursor/rules/ops/changesets.mdcCursor rule
- .cursor/rules/ops/ci.mdcCursor rule
- .cursor/rules/ops/previews.mdcCursor rule
- .cursor/rules/ops/quality-report.mdcCursor rule
- .cursor/rules/ops/release.mdcCursor rule
- .cursor/rules/quality/code-style.mdcCursor rule
- .cursor/rules/quality/comments.mdcCursor rule
- .cursor/rules/quality/knip.mdcCursor rule
- .cursor/rules/quality/lint-config.mdcCursor rule
- .cursor/rules/quality/markdown-style.mdcCursor rule
- .cursor/rules/quality/naming.mdcCursor rule
- .cursor/rules/quality/simplicity.mdcCursor rule
- .cursor/rules/quality/testing.mdcCursor rule
- .cursor/rules/quality/typescript-config.mdcCursor rule
- .cursor/rules/tests/front-react.mdcCursor rule
- .cursor/rules/tests/hono-workers.mdcCursor rule
- cfSkill
- changesetSkill
- front-vitestSkill
- git-commitSkill
- honoSkill
- monorepo-agent-setupSkill
- playwright-cliSkill
- react-doctorSkill
- reviewSkill
- review-stackSkill
- run-appSkill
- security-auditSkill
- skills-updateSkill
- tanstack-configSkill
- tanstack-devtoolsSkill
- tanstack-querySkill
- tanstack-routerSkill
- turborepoSkill
- ui-ux-design-best-practicesSkill
- vercel-react-best-practicesSkill
- workers-best-practicesSkill
- skills-updateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 2 are distinctive, and 16 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 23
Do not put task logic in root package.json when it belongs in packages - see the turborepo skill.
- Very specific: line 37
After adding a new app under apps/, run pnpm install before turbo commands.
- Distinctive: line 41
Always link internal packages with the workspace protocol:
- Very specific: line 55
Never duplicate a shared package version as a registry range in an app - use workspace:*.
- Very specific: line 99
Keep front-app-only utilities (e.g.
- Very specific: line 106
Run pnpm run ci after any dependency bump.
- Very specific: line 108
Do not bump the same package in multiple package.json files independently - use the catalog.
- Very specific: line 149
Prefer --filter <name> over cd apps/foo && pnpm add - keeps context at repo root.
- Very specific: line 166
When pnpm install fails on a blocked build script:
- Very specific: line 169
Add to allowBuilds in pnpm-workspace.yaml with true or false.
- Very specific: line 172
Do not disable strictDepBuilds to silence failures.
- Very specific: line 188
Always commit pnpm-lock.yaml with manifest changes.
- Very specific: line 190
Never commit .env, .dev.vars, or secrets.
- Very specific: line 208
Create directory under apps/ or packages/ with package.json ("private": true).
- Very specific: line 209
Add workspace:* deps on shared packages as needed.
- Very specific: line 210
Use catalog: for shared tools (hono, oxfmt, oxlint, vite, etc.).
- Very specific: line 212
Add a package turbo.json with "extends": ["//"] and a tags entry.
- Distinctive: line 213
Add AGENTS.md if the package has non-trivial conventions.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pnpm Skill
Fast, disk-efficient package manager for this pnpm + Turborepo monorepo. pnpm owns the dependency graph, lockfile, and supply-chain policy; Turborepo owns task orchestration (build, lint, dev, --affected).
Division of Labor
| Concern | Tool | Agent action |
| Add/remove/update deps | pnpm | pnpm add, pnpm remove, pnpm up |
| Shared version pins | pnpm catalog | Edit pnpm-workspace.yaml catalog: |
| Internal packages | pnpm workspace | "@repo/foo": "workspace:*" |
| Build/lint/dev/deploy | Turborepo | pnpm turbo run <task> or pnpm <task> |
| Affected CI | Turborepo | pnpm turbo run <task> --affected |
Do not put task logic in root package.json when it belongs in packages - see the turborepo skill.
This Repo
| Setting | Value |
| pnpm version | 12.6.0 (pinned via devEngines.packageManager in root package.json; resolved version and integrity in pnpm-lock.yaml packageManagerDependencies) |
| Workspace globs | apps/*, packages/* in pnpm-workspace.yaml |
| Install (local) | pnpm install |
| Install (CI) | pnpm install --frozen-lockfile |
| Update all deps | pnpm run update → pnpm update --recursive --latest (bumps catalog entries in pnpm-workspace.yaml) |
| Lockfile | Single pnpm-lock.yaml (pnpm workspace default) |
| Policy location | pnpm-workspace.yaml only - project .npmrc is auth-only under pnpm 11 |
After adding a new app under apps/, run pnpm install before turbo commands.
Workspace Protocol
Always link internal packages with the workspace protocol:
{
"dependencies": {
"@repo/dtos-common": "workspace:*",
"@repo/enums-common": "workspace:*"
}
}workspace:*- always use the local workspace version (preferred).- On publish, pnpm rewrites
workspace:to semver ranges automatically.
Never duplicate a shared package version as a registry range in an app - use workspace:*.
Catalogs (Shared Tool Versions)
Shared versions live in the default catalog in pnpm-workspace.yaml with catalogMode: prefer (prefer catalog on pnpm add when listed; one-off deps still allowed):
catalog:
'@cloudflare/vite-plugin': 2.0.0-beta.sha-ad79608dd
'@tailwindcss/vite': ^4.3.3
'@vitejs/plugin-react': ^6.0.5
babel-plugin-react-compiler: ^1.0.0
cf: 1.0.0-beta.5
hono: ^4.13.0
oxfmt: ^0.62.0
oxlint: ^1.77.0
oxlint-tsgolint: ^7.0.2001
react: ^19.2.8
react-dom: ^19.2.8
tailwindcss: ^4.3.3
typescript: ^7.0.2
vite: ^8.2.0
wrangler: ^4.143.0
zod: ^4.5.2cf and @cloudflare/vite-plugin are exact beta pins: cf accepts only plugin versions >=2.0.0-0 <3, and the plugin ships a snapshot per push. Bump the two deliberately and together, and re-check both pins after pnpm run update (pnpm update --recursive --latest).
TanStack packages (@tanstack/*) and @types/* are also in the catalog - see pnpm-workspace.yaml for the full list.
Reference in any package.json:
{
"dependencies": {
"hono": "catalog:"
},
"devDependencies": {
"oxfmt": "catalog:",
"oxlint": "catalog:"
}
}Keep front-app-only utilities (e.g. rollup-plugin-visualizer) out of the catalog. Escalate catalogMode to strict only after catalog coverage is complete.
Workflow for bumping a shared tool:
- All catalog + non-catalog deps:
pnpm run update- runspnpm update --recursive --latest, which rewrites catalog ranges inpnpm-workspace.yamland keeps"catalog:"in manifests. - One catalog-managed package:
pnpm update --recursive --latest <pkg>(e.g.oxfmt). - Manual pin: edit
pnpm-workspace.yamlcatalog:, thenpnpm install. - Run
pnpm run ciafter any dependency bump.
Do not bump the same package in multiple package.json files independently - use the catalog.
Workspace-level overrides (e.g. @types/node) stay in pnpm-workspace.yaml, not in individual manifests.
Agent Command Cheat Sheet
# Add runtime dep to an app
pnpm add <pkg> --filter front-app
# Add dev dep to an app
pnpm add -D <pkg> --filter worker-api
# Add tooling dep to workspace root
pnpm add -D <pkg> -w
# Remove from one package
pnpm remove <pkg> --filter front-app
# Run command in one package + its deps
pnpm --filter worker-api... <cmd>
# Run command in one package only
pnpm --filter front-app <cmd>
# Update all deps (including catalog entries in pnpm-workspace.yaml)
pnpm run update
# Update one catalog-managed package to latest
pnpm up -r -L oxfmt
# Update within existing ranges only (no catalog bump)
pnpm up -r
# Inspect why a package is installed
pnpm why <pkg>
# Reproducible CI install
pnpm install --frozen-lockfilePrefer --filter <name> over cd apps/foo && pnpm add - keeps context at repo root.
Package names: front-app, worker-api, @repo/dtos-common, @repo/enums-common, @repo/typescript-config.
Security Settings
Configured in pnpm-workspace.yaml:
| Setting | Purpose |
strictDepBuilds: true | Block lifecycle scripts unless explicitly allowed |
allowBuilds | Map of packages allowed (true) or denied (false) to run install scripts |
trustPolicy: no-downgrade | Reject installs that would downgrade package trust/provenance |
blockExoticSubdeps: true | Block exotic (non-registry) transitive dependencies |
minimumReleaseAge (unset) | pnpm's default 24-hour cooldown on newly published versions |
minimumReleaseAgeExclude | Hotfix exceptions (@cloudflare/*, cf, wrangler, miniflare, typescript) |
When pnpm install fails on a blocked build script:
- Decide if the script is necessary (e.g.
esbuild,workerd) or optional. - Add to
allowBuildsinpnpm-workspace.yamlwithtrueorfalse. - Re-run
pnpm install.
Do not disable strictDepBuilds to silence failures.
Hoisting Policy
Use pnpm strict linking defaults. This repository has no hoisting override: workspace dependencies use workspace:*, shared versions use catalog:, and each package declares every dependency it imports. pnpm 11 ignores non-auth project .npmrc settings, so package-manager policy belongs in pnpm-workspace.yaml. Fix a phantom dependency by declaring it in the owning package; do not add broad hoisting.
CI
GitHub Actions uses:
pnpm/setup(pnpm v11+ successor topnpm/action-setup) withruntime: node@24andinstall: false(default install is not frozen); the store cache isactions/cachekeyed onpnpm-lock.yamlinci.ymlonly, sincepnpm/setup'scache: truesaves a new entry on every runpnpm install --frozen-lockfile(version comes from rootpackage.jsondevEngines.packageManager)pnpm turbo run <task> --affected
Rules:
- Always commit
pnpm-lock.yamlwith manifest changes. - CI uses
--frozen-lockfile- lockfile must be in sync. - Never commit
.env,.dev.vars, or secrets.
Common Mistakes
| Mistake | Correct approach |
Duplicate root-owned tools in each package.json | Keep OXC, Turbo, cf, and Wrangler tooling at the narrowest actual owner |
pnpm add foo at root without -w | Use -w for root deps, --filter for packages |
Registry version for @repo/* | Use workspace:* |
| Registry version for a catalogued package | Use catalog: |
Put install policy in .npmrc | Put it in pnpm-workspace.yaml |
| Hoist a missing package to mask a phantom dependency | Declare it in the importing package |
Disable strictDepBuilds | Add entry to allowBuilds |
Run pnpm build for app tasks | Use pnpm turbo run build or pnpm build |
Hand-edit pnpm-lock.yaml | Run pnpm install to regenerate |
Scaffolding a New Workspace Package
- Create directory under
apps/orpackages/withpackage.json("private": true). - Add
workspace:*deps on shared packages as needed. - Use
catalog:for shared tools (hono,oxfmt,oxlint,vite, etc.). - Run
pnpm install. - Add a package
turbo.jsonwith"extends": ["//"]and atagsentry. - Add
AGENTS.mdif the package has non-trivial conventions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

