Update minor deps

From makeup/makeup-js · View interactive version

Update minor deps is an AI agent skill from the GitHub repository makeup/makeup-js. Perform non-breaking (patch and minor) devDependency updates as a single batched group, then build, test, and create one signed commit

How to use this skill

Skill file

You are performing non-breaking version updates of devDependencies in this monorepo — everything below the next major (patch and minor). Because semver promises these are backward-compatible, you apply them together as a single batch, build, test, and — only when green — create one signed commit. You never push; the user pushes themselves.

For major (breaking) updates, use /update-major-deps instead — that skill isolates each group with its own risk assessment and commit.

Input

Core principles


Process

1. Preflight

2. Detect available patch/minor updates

Run a dry check scoped to non-breaking versions:

npx --yes npm-check-updates --dep dev --target minor

--target minor reports the highest patch/minor for each dependency while holding the major fixed. List what will move so the user can see the batch.

3. Apply the batch

Bump the ranges and install in one pass:

npx --yes npm-check-updates -u --dep dev --target minor
npm install

For a single-package scope, restrict it: npx --yes npm-check-updates -u --dep dev --target minor <package-name>.

Keep the lockfile in place — npm install updates it incrementally. Do not rm -rf node_modules package-lock.json; a lockfile-free resolve can float unrelated deps to a version your registry/security proxy blocks.

4. Handle a blocked or platform-rejected version

A patch/minor bump can still land on a release the registry refuses (e.g. a 403 Forbidden on prettier@3.9.0 even though 3.8.4 was fine), or one that fails an engine/platform check. These blocks are typically a corporate supply-chain policy (e.g. Netskope enforcing an approved-version allowlist), not a network or certificate fault — the symptom is a clean HTTP 403 with a policy message, not a TLS error. A new CA cert will not fix it.

Crucially, the block is usually version-specific, so don't assume you must abandon the update. If npm install errors with a 403:

```

npm view <pkg> dist-tags # find latest

cd /tmp && npm pack <pkg>@<ver> # 403 = blocked; downloads = approved

```

If a higher approved version exists, target it explicitly (e.g. ^3.9.3) and re-run npm install.

Do not force past a policy block with --force, a clean reinstall, or by stripping auth/routing around the proxy — that bypasses a security control.

5. Build and test

npm run build
npm test

6. Commit (signed, commit-only)

Stage exactly what changed: package.json, package-lock.json, and any legitimately regenerated build artifacts (a @babel/* patch can regenerate docs/**/*.min.js(.map) and packages/**/dist/cjs/index.js). Review with git status --short first, stage explicit paths, and never git add -A (it would sweep in unrelated working-tree files such as .claude/ or CLAUDE.md).

Use a single Conventional Commits message (the repo enforces commitlint + a husky commit-msg hook):

build(deps-dev): bump patch and minor versions

Commits are GPG-signed automatically (commit.gpgsign=true). Verify with:

git log -1 --format='%h %G? %an <%ae>'

%G? should print G (good signature). Do not push.

7. Report

Summarize the batch — what was bumped, anything excluded (and why), and the resulting commit:

| Package | Old | New |

| ------- | ------- | ------- |

| <pkg> | <old> | <new> |

Note any packages held back (blocked version, engine/platform mismatch, or test failure) and recommend follow-up.


Safety reminders

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.