package-upgrade
Skill2 starsChanged 4 months agoMITView on GitHub
Batch package upgrades across multiple repos: pnpm up --latest, version caps, Expo mobile, branch+PR workflow.
- Deletes or force-pushes
- Installs packages
- Commits and pushes
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
All repos use pnpm as package manager
- Distinctive: line 41
Leave the stash on the old branch — the user can pop it when they return.
- Distinctive: line 43
NEVER modify main directly: Always create a feature branch and open a PR.
- Distinctive: line 55
After upgrade, check and revert these packages if they were bumped beyond the allowed range:
- Very specific: line 72
Run this after the general pnpm up -r --latest and version cap enforcement, but before pnpm install.
- Distinctive: line 84
Run the project's verification suite to confirm nothing broke.
- Distinctive: line 92
If any step fails, fix immediately before committing.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Package Upgrade Workflow
Batch-upgrade npm packages across multiple repos using pnpm.
Prerequisites
- All repos use pnpm as package manager
- GitHub CLI (
gh) or API access for opening PRs - Repos live under
~/projects/
Workflow (MANDATORY ORDER)
For each repo:
1. Prepare branch
cd ~/projects/<repo>
git checkout main
git pull
git checkout -b feat/john/update-packages-YYYYMMDDIf git checkout main fails due to uncommitted changes, stash first:
git stash
git checkout main
git pull
git checkout -b feat/john/update-packages-YYYYMMDDLeave the stash on the old branch — the user can pop it when they return.
NEVER modify main directly. Always create a feature branch and open a PR.
2. Run upgrade
pnpm up -r --latestIf the upgrade fails (e.g. a package's latest version has a broken transitive dep), see the "Handling broken upstream deps" section in Pitfalls below.
3. Enforce version caps
After upgrade, check and revert these packages if they were bumped beyond the allowed range:
| Package | Cap | Where |
@types/node | latest 24.x.x (e.g. ^24.13.2, not ^24.0.0) | package.json or pnpm-workspace.yaml (catalog) |
@typescript/native-preview | "beta" — do NOT upgrade | package.json or pnpm-workspace.yaml (catalog) |
Revert with sed or manual edit, then confirm with grep.
4. Expo mobile (turborepo-starter-kit only)
For turborepo-starter-kit, the apps/mobile workspace uses Expo and requires a separate upgrade step:
pnpm mobile:expo:upgradeRun this after the general pnpm up -r --latest and version cap enforcement, but before pnpm install.
5. Install
pnpm installThis regenerates the lockfile after any manual version reverts.
6. Verify
Run the project's verification suite to confirm nothing broke. Read the project's AGENTS.md for the exact commands; the standard set is:
pnpm lint
pnpm build
pnpm checkIf any step fails, fix immediately before committing. Common issues: version incompatibilities between upgraded packages, deprecated API usage surfaced by stricter types.
7. Commit, push, open PR
git add -A
git commit -m "chore(deps): update all packages to latest versions"
git push -u origin feat/john/update-packages-YYYYMMDDThen open a PR via gh pr create or the GitHub API.
Pitfalls
Never modify main. All changes go through a feature branch + PR. User reviews before merge. If you accidentally commit to main (e.g. while fixing a subagent's missed step), recover:
git reset --soft HEAD~1 && git stash && git checkout <feature-branch> && git stash pop, then force-push main back:git checkout main && git reset --hard origin/main && git push --force origin main.
@types/node cap is strict.
pnpm up --latestwill bump it to 26.x or higher. Always check and revert — use the latest 24.x.x version (e.g.^24.13.2), not^24.0.0.
@typescript/native-preview stays at "beta". Never upgrade this package.
turborepo-starter-kit has two upgrade phases. General upgrade first, then
pnpm mobile:expo:upgradefor the Expo mobile app. Don't skip the Expo step.
Subagent delegation pitfall (turborepo-starter-kit). When delegating to subagents, the
pnpm mobile:expo:upgradestep often gets skipped even when listed in the prompt. Subagents treatpnpm up -r --latestas "done" and move on. Mitigation: Either (a) run turborepo-starter-kit manually (not delegated), or (b) verify the subagent ran the command by checkinggit logfor an expo-specific commit before approving. If missing, run it yourself on the feature branch and amend.
pnpm install is last. Run it after all version reverts are done so the lockfile reflects the correct versions.
Transient registry errors on
pnpm up. Newly published package versions may not propagate to all registry mirrors immediately. Ifpnpm up -r --latestfails withERR_PNPM_NO_MATCHING_VERSIONfor a package that should exist (e.g.@vitest/spy@4.1.10), wait a few seconds and retry. Check availability withpnpm view <pkg> versions --json | tailbefore concluding the version doesn't exist.
Branch naming convention:
feat/john/update-packages-YYYYMMDD(date-based).
Handling broken upstream deps. Sometimes
pnpm up -r --latestfails because a package's latest version has a missing transitive dependency (e.g. vitest 4.1.10 → @vitest/pretty-format@4.1.10 which doesn't exist). Workaround:
- Pin the broken package to its last working exact version (no caret) in whichever file declares it (root
package.jsonorpnpm-workspace.yamlcatalog)- Run
pnpm up -r --latest— it skips the pinned package and upgrades everything else. Note: pnpm preserves the range style — no caret stays no caret.- Re-add the caret manually if the original had one (e.g.
"4.1.10"→"^4.1.10")- Check
git diff— if the broken version was written back, manually revert to the last working version with caret- Run
pnpm install, then caps enforcement, then verify (lint/build/check)Race condition note: The missing transitive dep may appear within minutes (npm publish is eventually consistent). After the workaround succeeds, check with
pnpm view <pkg> versions --json | tail— if the missing version now exists, you can safely upgrade to it.
Monorepo sequential upgrade with --filter. If
pnpm up -r --latestfails at the root level, you can upgrade sub-packages first:pnpm up --latest --filter '!.'then handle the root separately. Useful when the failure is root-specific (e.g. vitest in root but not in sub-packages).
Project-Specific Notes
See references/projects.md for the list of repos and their specific configurations.
In this repository74 other files it gives its agents.
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- claude-codeSkill
- codexSkill
- hermes-agentSkill
- opencodeSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- caveman-statsSkill
- computer-useSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-infographicSkill
- claude-designSkill
- comfyuiSkill
- design-mdSkill
- excalidrawSkill
- humanizerSkill
- manim-videoSkill
- p5jsSkill
- popular-web-designsSkill
- pretextSkill
- sketchSkill
- songwriting-and-ai-musicSkill
- touchdesigner-mcpSkill
- jupyter-live-kernelSkill
- hermes-config-backupSkill
- dogfoodSkill
- himalayaSkill
- codebase-inspectionSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-pr-workflowSkill
- github-repo-managementSkill
- gif-searchSkill
- heartmulaSkill
- songseeSkill
- youtube-contentSkill
- huggingface-hubSkill
- obsidianSkill
- airtableSkill
- google-workspaceSkill
- mapsSkill
- nano-pdfSkill
- notionSkill
- ocr-and-documentsSkill
- petdexSkill
- powerpointSkill
- teams-meeting-pipelineSkill
- arxivSkill
- blogwatcherSkill
- llm-wikiSkill
- The first 60 shown.
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.

