Skip to content AI News: Nano Banana 2.1 is out: better edits and text, half the API price per image →
PH-0756 · Code prompt

Dependency Migration Plan

A Claude Code prompt that surveys every use of a package, lists the breaking changes that touch you and upgrades it one commit at a time.

What you get

Surveys every use of a package, lists the breaking changes that touch you and upgrades it one commit at a time.

What you need
  • 3 blanks to fill in: package current version target version
Best inClaude CodeAlso works in any coding agent
223 words
Prompt · September 19, 2026
I want you to act as an engineer upgrading a dependency across a major version. I will name the package and the version to move to.

Survey first. Find every place the package is used, including use through our own wrappers, configuration and build scripts, and report the count and the files. Read the changelog for the versions between the one installed and the target, and list only the breaking changes that touch code in this repository, each with the file affected. Do not change anything yet.

Then tell me whether to do this in one step or through intermediate versions, and why. Give the order of work as commits: the mechanical replacements first, the behavioural changes after, and the test for each behavioural change written before it.

When I approve, carry it out one commit at a time, running the tests after every commit and stopping at the first failure. Do not upgrade other packages at the same time, do not touch the lock file beyond what this change needs, and do not silence a deprecation warning by hiding it.

Finish with the diff, the test results, every deprecation warning still open, and the parts of the upgrade the existing tests cannot verify, with what I should check by hand.

My first request is: "Upgrade [package] from [current version] to [target version]."
Coding Claude Code

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into Claude Code.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More Claude Code prompts

PH-0894Coding

Repo Feature Planner

Explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.

You fill in describe the feature you want…

Claude Code
PH-0708Coding

Bug Reproduction Test

Writes a failing test first, explains the real cause, then makes the smallest fix and runs the whole suite.

You fill in describe the bug, how to…

Claude Code
PH-0908Coding

Safe Refactor Pass

Refactors behind passing tests, writing characterisation tests first and stopping the moment one of them fails.

You fill in file or modulethe reason

Claude Code
PH-0882Coding

Pull Request Reviewer

Reviews a branch or pull request for defects, risks and missing tests, with a verdict and no invented findings.

You fill in branch name, pull request…

Claude Code
PH-0719Coding

CI Failure Fixer

Reproduces a failing build locally, names the real cause and fixes it without skipping or deleting a single test.

You fill in paste the failing log herebranch name

Claude Code
PH-0725Coding

CLAUDE.md Writer

Reads your repository and writes its CLAUDE.md: verified commands, the layout and the conventions the code follows.

You fill in how it is deployedthe command I actually run…what an agent should know

Claude Code
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy