Skip to main content

Antfu Upgrade Deps

Upgrade the dependencies of the current project with taze, migrate code for major versions by reading their changelogs, dedupe the lockfile, verify tests, lint, and typecheck, then open a PR. Use when asked to upgrade, update, or bump dependencies.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install antfu-antfu-upgrade-deps
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/antfu-antfu-upgrade-deps/SKILL.md

Setup guide →
0Save

Instructions

Upgrade Dependencies

Bump every dependency the project allows to its latest version with taze, migrate the code for each major version, and ship it as one reviewable PR. The bar: after the PR, the project's consumers see no change unless the user approved it.

Workflow

  1. Prepare. Start from a clean working tree on the up-to-date default branch, then create a branch (e.g. chore/upgrade-deps). Detect the package manager from the lockfile and the packageManager field. Note the check scripts in the root package.json (lint, typecheck, test, build) and what CI runs in .github/workflows.

  2. Collect the ignore list. Read pnpm-workspace.yaml for updateConfig.ignoreDependencies and update.ignoreDeps (names or globs), plus exclude in taze.config.* / .tazerc. These dependencies stay at their current versions, including in catalogs. taze@21+ applies all of them itself, along with minimumReleaseAge; with an older taze, pass each entry as -x <name>.

  3. Survey. Run npx taze@latest major -r --json (drop -r for a single-package repo). Check that no ignored dependency shows up in the output. Split the result into non-major bumps and major bumps. Treat 0.x minor bumps (0.3 to 0.4) as major. Done when every outdated dependency is in one of the two lists or the ignore list.

  4. Research each major. For every major bump, read the changelog from the current version to the target: GitHub releases, CHANGELOG.md, and the migration guide if one exists. List each breaking change, then search the repo for the affected APIs, options, and config. Done when every breaking change is marked "affects us" (with the file paths) or "does not affect us" (with the reason).

  5. Judge the user-side impact. A major is user-facing when consumers of this project would notice it:

    • It is in dependencies or peerDependencies of a published package, and its types, exports, or behavior pass through this package's public API.
    • It raises the Node.js engines floor, drops CJS or a platform, or changes the output format (build tools, bundlers).
    • Migrating it requires changing this project's own public API, options, or defaults.

    For each user-facing major, ask the user with the question tool before upgrading. Give the breaking change, who it affects, and options: upgrade and accept the breaking change, upgrade with a compatibility shim, or skip it (add to -x). Recommend one. devDependencies and internal tooling are not user-facing; upgrade them without asking.

  6. Upgrade. Write the versions with npx taze@latest major -r -w -x <skipped...>, then install. taze leaves peerDependencies alone by default (no --peer). See Peer dependencies.

  7. Migrate. Apply the code changes from step 4 for every "affects us" item, following the official migration guide over guesses. Lint rule changes from an ESLint config upgrade count: run the lint fix script, then review what it changed.

  8. Dedupe. Run the dedupe command (pnpm dedupe, yarn dedupe, or npm dedupe), then install once more so the lockfile is stable.

  9. Verify. Run every check script from step 1 (lint, typecheck, test, build). Fix the root cause of each failure; never skip tests, loosen types, or disable lint rules to pass. If a failure comes from a regression in the new version that you cannot fix, revert that one dependency, record why, and report it. Done when all checks pass on the final lockfile.

  10. Open the PR with the antfu-create-pr skill. Commit shape:

    • chore(deps): update dependencies for non-major bumps and the lockfile.
    • One commit per major that needed migration, e.g. chore(deps): update vite to v8, holding its bump and code changes together.

    In the PR body, add a table of major upgrades: package, from, to, changelog link, migration done, user-facing impact. List skipped and ignored dependencies with the reason.

Peer dependencies

Widen peer ranges; keep the old majors in them. Raising the floor drops support for users still on the old major. Only the dev copy in devDependencies moves to the new version.

When a peer releases a new major and the code works with it unchanged (all checks pass), append the new major to the range:

  "peerDependencies": {
-   "vite": "^4.0.0-0"
+   "vite": "^4.0.0-0 || ^5.0.0-0"
  }

If the code must change to support the new major, ask the user before dropping the old one. That is a breaking change for consumers.

Rules

  • Only upgrade what is listed as outdated by taze; leave pinned versions (without ^/~) alone unless the user asks (-l includes them).
  • Keep catalogs as catalogs: taze updates pnpm-workspace.yaml catalogs in place; never inline versions into package.json.
  • Do not change overrides, resolutions, or patchedDependencies silently. If a bump makes a patch or override obsolete or broken, say so in the PR and ask before removing it.
  • State what you verified. A claim like "no user-facing change" needs the evidence from step 4 and 5 behind it.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from antfu Skills

View source →

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.647 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.549 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.357 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.258 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about antfu-upgrade-deps

What does the antfu-upgrade-deps skill do?

Upgrade the dependencies of the current project with taze, migrate code for major versions by reading their changelogs, dedupe the lockfile, verify tests, lint, and typecheck, then open a PR. Use when asked to upgrade, update, or bump dependencies. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the antfu-upgrade-deps skill?

Run `npx @skills-hub-ai/cli install antfu-antfu-upgrade-deps` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/antfu-antfu-upgrade-deps/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does antfu-upgrade-deps work with?

antfu-upgrade-deps runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the antfu-upgrade-deps skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use antfu-upgrade-deps after installing it?

In Claude Code, type `/antfu-antfu-upgrade-deps` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the antfu-upgrade-deps skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.