A migration guide when your API changes: a Cursor + Claude stack

The struggle: You shipped a breaking API change, the release note says improved endpoints, and your customers' integrations broke overnight.

What you end up with: A customer migration guide: what changed, who is affected, before and after code samples and a timeline, checked by a developer.

Cursor Plan Mode compares the two release tags and lists every breaking change with file references, without editing code. Claude then writes the customer guide from that list. A developer checks each change and the team confirms dates and versions.

Tools: Cursor, Claude. Level: Free to start. Time: 2 hours.

Use it if

  • You changed or removed endpoints, fields or auth
  • Customers keep asking what exactly broke
  • You have a tagged old and new version in git

Skip it if

  • The change is not released or not final yet
  • You want an agent to edit the code or write the new version for you

The method

  1. List the breaking changes, read-only (Cursor: Plan Mode)

    Open the repository in Cursor, press Shift+Tab in the chat input to switch to Plan Mode and paste the prompt with your two tags. Plan Mode researches the code, asks questions and writes no code. Read the plan file; do not click build.

    Prompt to copy:

    Compare git tags [old tag] and [new tag]. Do not edit any file. List every breaking change to our public API: removed or renamed endpoints, changed parameters, response fields, status codes, auth and rate limits. For each give old behaviour, new behaviour and the file path. Separate certain changes from ones you inferred, and list what you could not determine.

    You get: A list of breaking changes with the files behind each.

    Tip: Run it on the public surface only, such as routes and schemas, so internal refactors do not drown the list.

  2. Have a developer verify each change (Cursor: Plan Mode)

    Ask a developer to check each line against the code or run a call against the old and new versions. Mark each change confirmed, wrong or unclear in the plan file, and answer Cursor's clarifying questions before you move on.

    You get: A verified list that you trust more than the agent's first read.

    Tip: Test two or three changes against a sandbox; a plan can miss behaviour that sits outside the code diff.

  3. Write the customer migration guide (Claude: Claude Docs)

    In Claude, select Output in the message box and choose Docs. Paste the verified list and ask for the guide. Include the cutover and old-version end dates your team confirmed, and give example requests from your own docs.

    Prompt to copy:

    Write a migration guide for customers of our API from [old version] to [new version], from the verified change list below. Sections: who is affected, what changed (one table), step-by-step migration, before and after code samples for the top 3 changes, timeline with the dates I give, and how to get help. Use only the list; do not invent behaviour or dates. Put [CONFIRM] on anything missing. List: [paste]

    You get: A customer guide with who is affected, before and after samples and dates.

    Tip: Open with who is affected and what to do first; most readers stop after the first screen.

  4. Review as a customer and as the developer (Claude: Chat)

    Ask Claude to read the guide as a customer's developer and list the questions it still raises. Then give the guide to your own developer to run each code sample. Publish and email customers yourself only after both checks.

    Prompt to copy:

    Read this guide as a developer at a customer who must migrate by [date]. List what you cannot tell from it: unclear steps, missing edge cases, unanswered questions on errors and rollback. Rank them by how likely they are to block someone.

    You get: A guide that survives a reader and a test run.

    Tip: Run every code sample; one broken sample costs more trust than a missing one.

Where this goes wrong

  • The agent reads code; it does not know your intent. A developer must confirm each listed change.
  • Plan Mode writes no code, but keep the repo on a clean branch and discard any edits you did not ask for.
  • Dates, versions and deprecation promises must come from your team, not from the model.
  • Check that code samples run. Have a qualified person check this before you sign, file or send it. If a contract or SLA is affected, have your legal contact check the notice.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.