pnpm-dependency-upgrade-audit
Skill1 starsChanged 5 months agoMITView on GitHub
Audit outdated direct dependencies in pnpm monorepos across the root and every workspace package, checking release age, engines, peer dependencies, semver ranges, changelogs, toolchain compatibility, and code usage before recommending safe upgrade batches. Use when asked to run pnpm outdated, assess dependency upgrades, or investigate whether latest versions are safe without modifying manifests or lockfiles.
In this repository8 other files it gives its agents.
- babysitSkill
- create-pull-requestSkill
- git-commit-generatorSkill
- git-squash-rebaseSkill
- marp-presentationsSkill
- plan-visualizerSkill
- react-useeffect-guideSkill
- split-to-prsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
every workspace package.json for direct dependencies, scripts, and package-specific engines.
- Distinctive: line 40
Run the command separately from the root and each workspace package.
- Very specific: line 42
Use absolute paths or a subshell for each directory so the working directory cannot drift between iterations.
- Very specific: line 62
Read minimumReleaseAge from pnpm-workspace.yaml.
- Distinctive: line 66
Do not recommend a version that is still inside the release-age window.
- Very specific: line 85
Run pnpm peers check as a baseline.
- Distinctive: line 87
Use this risk heuristic:
- Very specific: line 97
Search the repository with rg for APIs and configuration affected by the release.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pnpm Dependency Upgrade Audit
Scope
Perform a read-only investigation by default. Do not run pnpm update, pnpm install, corepack use, or edit manifests and lockfiles unless the user separately authorizes implementation. Use pnpm for package-manager commands; do not substitute npm or yarn.
Produce an evidence-based report that distinguishes:
- candidates suitable for a focused upgrade batch;
- candidates requiring targeted tests or migration work;
- candidates that should be deferred because of release-age, engine, peer, or toolchain constraints.
Workflow
1. Discover the workspace and constraints
Inspect:
- root
package.jsonforpackageManager, scripts, engines, catalogs, and dependency ranges; pnpm-workspace.yamlfor workspace globs,minimumReleaseAge,nodeVersionFile, catalogs, overrides, and build policies;- the referenced Node version file and CI workflow Node versions;
- every workspace
package.jsonfor direct dependencies, scripts, and package-specific engines.
Resolve workspace directories from the workspace globs rather than assuming a fixed apps/* or packages/* layout.
2. Run pnpm outdated in every project context
Run the command separately from the root and each workspace package. A root invocation does not reliably provide the same direct-dependency view as invoking it from a member package.
Use absolute paths or a subshell for each directory so the working directory cannot drift between iterations. In zsh, do not store the command result in a variable named status; zsh reserves that name. Treat exit code 1 as expected when outdated dependencies are found.
Example pattern:
set +e
repo_dir="$(pwd)"
for workspace_dir in . apps/example packages/example; do
printf '\n[%s]\n' "$workspace_dir"
(cd "$repo_dir/$workspace_dir" && pnpm outdated)
rc=$?
printf 'exit code: %s\n' "$rc"
done
exit 0Record package, current version, reported latest version, and workspace for every result. Deduplicate packages for compatibility analysis, but retain all workspace occurrences in the report.
3. Check release-age policy
Read minimumReleaseAge from pnpm-workspace.yaml; its unit is minutes. Capture the current UTC time with date -u.
Treat pnpm outdated as potentially policy-filtered. For each candidate, compare the registry’s actual latest version with the reported version using pnpm view and inspect the candidate’s publish timestamp. A newer registry version may be intentionally absent from pnpm outdated because it has not aged past the configured threshold.
Do not recommend a version that is still inside the release-age window. Call out the exact eligibility time when it matters, especially when the newer release fixes a regression in the older policy-eligible result.
4. Validate package compatibility
For each unique candidate, inspect concise registry metadata:
pnpm view "$package@$version" version engines peerDependencies --jsonCompare:
- package engine requirements with the project engine floor and the pinned development/CI Node version;
- peer requirements with installed peers and
pnpm peers checkoutput; - manifest ranges with the reported target—
pnpm updatewithout--latestwill not cross a range boundary; - catalog entries and workspace-wide consumers;
- coupled packages that must move together, such as a plugin and its linter;
- ESM/CommonJS changes, native binaries, formatter output, generated artifacts, and runtime behavior.
Run pnpm peers check as a baseline. Separate pre-existing peer failures from regressions that a proposed upgrade introduces.
Use this risk heuristic:
- patch or same-major minor update with compatible engines and peers: lower risk, still validate;
- major update,
0.xminor update, ESM-only transition, native package, formatter, linter, compiler, or runtime: focused review required; - engine mismatch, unresolved peer conflict, known regression, or unsupported toolchain integration: defer or block.
5. Review primary release information and repository usage
For major or behavior-sensitive candidates, browse the package’s official release notes, migration guide, changelog, or repository. Prefer primary sources such as the maintainer’s repository, official documentation, and official release pages.
Search the repository with rg for APIs and configuration affected by the release. Inspect the relevant source, test, and build usage rather than judging compatibility from package versions alone. Pay special attention to:
- parser/token APIs where whitespace or token boundaries feed source maps;
- Vue, Volar, or
vue-tscintegrations when changing TypeScript; - store libraries that add or change devtools peers;
- ESM-only command runners in package scripts;
- Electron IPC, window, security, download, and native-image behavior;
- lint rules, boundaries configuration, formatter output, and autofixes;
- jsdom/browser behavior used by tests.
6. Classify and report
Report the raw pnpm outdated results grouped by workspace, then a unique-package risk assessment. For every nontrivial recommendation include:
- current and candidate versions;
- release-age status;
- engine and peer compatibility;
- relevant breaking or behavioral changes;
- repository usage that increases or reduces risk;
- the smallest validation suite needed.
Recommend focused batches, not one bulk upgrade. Keep independent migrations separate—for example, compiler/toolchain changes, runtime changes, parser behavior changes, and lint/format tooling changes should not be mixed without a reason.
End by stating clearly whether files were changed. A read-only audit should leave manifests, lockfiles, source, and generated files untouched.
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.

