/react-native-upgrader:react-native-upgraderfrom react-native-upgrader
Orchestrates React Native upgrades: analyzes current/target versions, fetches release notes, applies diffs via rn-diff-purge, and runs cleanup. Use for version bumps or migration.
Ships in react-native-upgrader. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Orchestrates React Native upgrades in two phases: Analysis then optional Execution. Uses subagents for token-heavy work (release notes, diff parsing).
react-native upgrade or version migration| Step | Phase | Who | What |
|---|---|---|---|
| 1 | Analysis | You | Detect current & target versions from package.json |
| 2 | Analysis | You | Generate & validate diff URL (rn-diff-purge) |
| 3 | Analysis | Subagent | Fetch release notes for all intermediate versions |
| 4 | Analysis | You | Present summary + complexity assessment, ask user to proceed |
| 5 | Execution | Subagent | Apply diff (deps → config → Android → iOS), run cleanup |
| 6 | Execution | You | Summarize results, list manual steps & verification |
expo upgrade or npx expo install insteadpackage.json (dependencies["react-native"])^, ~, >=, etc.) to get the bare version (e.g., ^0.73.6 → 0.73.6)0.79.2, 1.0.0)The raw diff URL format (this is NOT the web UI):
https://raw.githubusercontent.com/react-native-community/rn-diff-purge/diffs/diffs/{CURRENT}..{TARGET}.diff
Example: https://raw.githubusercontent.com/react-native-community/rn-diff-purge/diffs/diffs/0.73.6..0.75.4.diff
Validate the diff exists by fetching the URL:
digraph diff_validation {
"Fetch diff URL" [shape=box];
"Got 200?" [shape=diamond];
"Proceed to Step 3" [shape=box, style=filled, fillcolor=lightgreen];
"Check release exists" [shape=box];
"Release exists?" [shape=diamond];
"Tell user: version invalid.\nAsk for valid target." [shape=box, style=filled, fillcolor=lightyellow];
"Tell user: diff unavailable.\nLink to rn-diff-purge.\nAsk for closest match." [shape=box, style=filled, fillcolor=lightyellow];
"Fetch diff URL" -> "Got 200?";
"Got 200?" -> "Proceed to Step 3" [label="yes"];
"Got 200?" -> "Check release exists" [label="404"];
"Check release exists" -> "Release exists?";
"Release exists?" -> "Tell user: diff unavailable.\nLink to rn-diff-purge.\nAsk for closest match." [label="yes"];
"Release exists?" -> "Tell user: version invalid.\nAsk for valid target." [label="no"];
}
Check release existence with: gh api repos/facebook/react-native/releases/tags/v{TARGET} (200 = exists, 404 = invalid version)
Do NOT proceed to Phase 2 without a valid, fetchable diff.
Dispatch a general-purpose subagent (subagent_type: "general-purpose", max_turns: 15) using the prompt template in analysis-prompt.md (in this skill directory). Read that file to get the full prompt, then fill in the bracketed values.
Pass it:
Determining intermediate versions: List only the .0 minor releases between current and target (e.g., 0.74.0, 0.75.0), plus the exact target version. Do NOT guess patch versions — the subagent will fetch each release page and skip any that return 404. This keeps the version list short and deterministic.
The subagent fetches release notes for each intermediate version and returns a summary with complexity assessment.
Show the user:
Ask: "Want to proceed with the upgrade execution?"
Dispatch a general-purpose subagent (subagent_type: "general-purpose", max_turns: 30) using the prompt template in execution-prompt.md (in this skill directory). Read that file to get the full prompt, then fill in the bracketed values.
Pass it:
The execution subagent handles: fetching the diff, classifying files, applying changes with the skip strategy, and running post-upgrade tasks.
After the execution subagent completes, summarize:
| Failure | Action |
|---|---|
| Analysis subagent fails/times out | Re-dispatch once. If it fails again, manually fetch the target version's release notes and present a simplified analysis. |
| Diff URL returns 404 | Follow the validation flow in Step 2. Do NOT proceed without a valid diff. |
| Execution subagent fails mid-upgrade | Report what was completed and what remains. The user can re-run execution for remaining phases. |
| Execution subagent reports dependency install failure | Do NOT re-dispatch. Present the error to the user — dependency conflicts need human judgment. |
| Mistake | Fix |
|---|---|
| Using the web UI URL instead of raw diff | Use raw.githubusercontent.com/react-native-community/rn-diff-purge/diffs/diffs/ format |
| Skipping intermediate release notes | Fetch ALL versions between current and target |
| Modifying App.tsx / user source code | Follow the skip strategy in execution-prompt.md |
| Running everything in main context | Dispatch subagents — release notes and diff parsing are token-heavy |
| Not cleaning caches post-upgrade | Always clean Metro cache, reinstall pods, clean Gradle |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub webartdesign/react-native-upgrader --plugin react-native-upgrader