/dev-flow:rn-upgradefrom dev-flow
Upgrades an existing Expo + React Native project to a newer Expo SDK by bumping expo, running npx expo install --fix, running npx expo-doctor diagnostics, clearing caches, and walking a breaking-changes checklist. Skips native rebuild for CNG projects. Does not advance phase.
Ships in dev-flow. 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.
See references/contracts.md (vendored from dev-flow). Key facts:
<project-root>/.workflow/meta.json#stack.framework — must be "expo-rn".meta.json#phase ≥ "scaffolded" (there must be a real app to upgrade — this skill never scaffolds).phase. It only appends a history entry recording the SDK versions before/after.expo is already at the target version (still worth running expo-doctor to catch drift).scaffolded or later (an Expo app already exists at the project root).npx expo-doctor failures, or dependency drift after manual npm install.dev-flow does not route here automatically as part of the phase pipeline — this is invoked ad hoc, whenever the user wants to upgrade an already-running project.rn-fundamentals/SKILL.md — the 4 non-negotiables (Expo managed, latest SDK, TypeScript, npm) this skill is restoring/advancing.rn-bootstrap/references/stack-defaults.md — the pinned baseline versions used at scaffold time; the diff target for this upgrade.rn-eas-build-submit-update/references/eas-json.md — runtimeVersion policy must be re-verified after an SDK bump (a new SDK usually means a new runtime version, which affects EAS Update compatibility).rn-module-add/SKILL.md + rn-backend/references/* — if a wired module depends on a module being deprecated (e.g. expo-av used for audio/video in a wired feature), the breaking-changes step touches that code.Expo SDKs ship roughly every quarter and change command surface, deprecations, and config shape release to release. This skill's workflow shape is stable; the exact command flags and package names are not. Before executing anything marked [VERIFY]:
https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/ (200 on 2026-08-26) and the changelog at https://expo.dev/changelog, per-SDK at https://expo.dev/changelog/sdk-57.
⚠️ Not docs.expo.dev/changelog — that 404s, and this skill pointed at it in five places until 2026-08-26. A source-of-truth link is worth a curl -o /dev/null -w '%{http_code}' now and then; a dead one sends the reader to guess exactly where you meant them not to.https://mcp.expo.dev/mcp) for the current upgrade guidance and API status — it is more current than any static doc snapshot.expo/skills repo's expo-upgrade skill if installed/available — this skill is modeled on it but does not vendor its per-SDK specifics, since those go stale.Never silently apply a [VERIFY] command from memory across a major SDK boundary — confirm it against one of the three sources above first.
Read .workflow/meta.json. Abort if stack.framework != "expo-rn" or phase < "scaffolded".
Read package.json to record the current expo version (this is from_sdk for the history entry). Read app.json/app.config.* for expo.sdkVersion if pinned there too.
Check for ios/ and android/ directories at the project root:
expo prebuild at build time. expo prebuild --clean is not required as part of the upgrade — the next expo run:ios / eas build regenerates them fresh from app.json + config plugins. Skip Step 6 native-rebuild commands entirely.See references/native-rebuild.md for the exact per-mode commands and rationale.
npx expo install expo@latest
npx expo install --check # dry run: which packages are on invalid versions
npx expo install --fix # actually re-resolve them
expo install --fix re-resolves every Expo-adjacent package (react-native, react, expo-router, react-native-reanimated, etc.) to the versions the newly-installed SDK expects — this is the step that actually fixes the dependency graph, not just the expo package itself.
Confirmed at @expo/[email protected], and again at 58.1.11 (the CLI [email protected] depends on, 2026-10-17) (npm pack, then the command's own help text): --check — "Check which installed packages need to be updated" — and --fix — "Automatically update any invalid package versions" — both exist. Run --check first on a project you don't own: it tells you the size of the blast radius before you take it.
[VERIFY] on a different SDK major: this flag surface has moved historically (--fix vs interactive-prompt-only), so confirm against the live docs for the target SDK rather than against this line.
npx expo-doctor
Walk every flagged issue. Common categories: mismatched dependency versions, invalid app.json config plugin entries, native folders out of sync with config (bare only). Do not proceed to Step 5 with unresolved expo-doctor errors — fix them first, re-run until clean (warnings can be triaged, errors cannot).
rm -rf node_modules .expo
watchman watch-del-all 2>/dev/null || true
npm install
npx expo install --fix
Stale Metro/Watchman state is a common source of "upgrade worked but the app still crashes" reports — never skip this even if expo-doctor is clean.
Only if Step 2 detected ios//android/ folders present:
npx expo prebuild --clean
cd ios && pod install --repo-update && cd ..
cd android && ./gradlew clean && cd ..
--repo-update on pod install matters after an SDK bump — the CocoaPods spec repo needs the latest podspecs for the new native module versions. Skipping it is the most common cause of "pod install succeeded but build fails" after an upgrade.
For CNG projects: do nothing here. If the user insists on regenerating native folders locally for debugging, that is a separate, explicit ask — not part of this upgrade flow.
Full rationale + exact per-mode commands: references/native-rebuild.md.
Walk references/breaking-changes.md: removed APIs, moved imports, deprecated native modules for the SDK range being crossed — including §SDK 58, whose crossing is bigger than most (iOS 27's scene life cycle and resizable apps, React Native's Strict TypeScript API, the expo-router core rework, R8 on by default). The most common one to check every upgrade: expo-av → expo-audio + expo-video (the AV module was deprecated and split into two focused packages). If the project uses expo-av for camera-adjacent audio/video, migrate before considering the upgrade done.
After migrating any deprecated module, manually test:
If the user wants to target a not-yet-stable SDK:
npm view expo dist-tags # ALWAYS first — see below
npx expo install expo@<tag> --fix
@next does not mean anything fixed — read it. On 2026-08-26 next and latest were the
same version (57.0.16), so expo install expo@next installed stable. On 2026-09-22 next is
58.0.0-preview.5, so the same command installs a beta; on 2026-10-17 next is 58.0.11, behind latest 58.0.14, so it would downgrade. canary / canary-sdk-NN are the
nightlies, -preview.N versions appear during a cycle, and sdk-NN pins an SDK line. Read the tags,
then name the version you propose — [VERIFY] against npm view expo dist-tags and
https://expo.dev/changelog.https://exp.host/--/api/v2/versions (live, 200 on 2026-08-26) when diagnosing beta-channel compatibility issues.Full walkthrough (version checks, reverting, third-party compatibility caveats): references/beta-preview.md.
Read the target SDK's entry on https://expo.dev/changelog (per-SDK pages: https://expo.dev/changelog/sdk-57) end to end — not just the breaking-changes section, since deprecation notices for the next upgrade often appear early. If the project's own docs (.workflow/DESIGN.md, README, code comments) link to version-pinned Expo docs URLs (e.g. docs.expo.dev/versions/v53.0.0/...), update them to the new SDK's version path.
npx tsc --noEmit
Must pass. Run the app (npx expo start, or a dev build for bare) and manually smoke-test the flows touched in Step 7, plus core navigation.
Update meta.json:
stack_config.expo_sdk: set to the new SDK version (add this key if not already present).phase: unchanged — this is maintenance, never advance the pipeline phase for an upgrade.history: append { skill: "rn-upgrade", ran_at: <iso>, inputs: { from_sdk, to_sdk }, outputs: ["package.json", "app.json", ...], phase_before: <phase>, phase_after: <same phase> }.Commit: chore(deps): upgrade Expo SDK <from> → <to>.
expo without immediately running expo install --fix — leaves the dependency graph half-upgraded.expo-doctor "because the app still runs" — it catches config-plugin drift that only surfaces at build time.expo prebuild --clean on a CNG project as a matter of habit — unnecessary churn, and can accidentally commit generated native folders that shouldn't be tracked.pod install --repo-update — stale CocoaPods specs silently break the build.meta.json#phase as part of this skill — an upgrade is not scaffolding, a new screen, or a module; the phase must stay exactly where it was.@next SDK without explicit user confirmation.[VERIFY] sources first.When this skill modifies state (history appended — no phase change), use the canonical script when available:
# Wherever dev-flow is installed (e.g. ~/.claude/skills/dev-flow/), invoke:
python3 .../dev-flow/scripts/update_meta.py <project-root> append-history \
--skill 'rn-upgrade' --inputs '{"from_sdk":"<x>","to_sdk":"<y>"}' \
--outputs '["package.json","app.json"]' --phase-after <same-phase-as-before>
Note there is deliberately no set-phase call in this skill's usage of the script — phase-after in the history entry must equal phase-before. Fall back to direct JSON editing only if the script is not on PATH (and warn the user), preserving every other field verbatim.
expo-upgrade skill from the expo/skills repo (consult it directly for per-SDK specifics — not vendored here since it goes stale).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lukedj78/dev-flow --plugin dev-flow57 skills in this plugin
/animated-iconsAdd a Motion-animated icon to a Next.js app from a shadcn registry instead of hand-animating an SVG. Two registries, picked from the project's icon set: **heroicons-animated** (316 icons, `shadcn add @heroicons-animated/<name>`) and **hugeicons-animated** (165 icons, `shadcn add @hugeicons-animated/<name>`, which also installs a shared `lib/use-icon-animation.ts`). Both MIT, both on the `motion` runtime, both copied into your repo as source. This skill owns the install plus the two things the raw components lack: a `prefers-reduced-motion` guard and timing aligned to the project motion tokens (`lib/motion/`). Use when the user says "animated icon", "animate this icon", "make the bell/heart/menu icon animate on hover", "aggiungi un'icona animata", or wants an icon micro-interaction. Refuses outside Next.js web — for React Native use `rn-animations-gestures`. Not for: static icons, a whole motion system (`transitions`), or installing the runtime itself (`module-add motion`)./app-securityCheck whether an app's own code can be attacked before it ships — vulnerable dependencies, secrets in the code and in git history, Next.js authorization gaps (Server Actions and route handlers without a session check, queries by id with no owner filter — IDOR), data over-exposure, secrets in public env vars, raw SQL — then read the flagged code against an OWASP checklist, with an opt-in dynamic level (Strix) that proves exploits against the app running locally. The fifth pre-deploy gate, beside compliance-audit, vercel-doctor, shadscan and launch-audit; reports and routes, never blocks. Triggers: "security review", "è sicura l'app?", "controllo di sicurezza prima del deploy", "IDOR", "secrets in the repo", "pentest". Not for: GDPR and legal (compliance-audit), UI quality (shadscan), cost (vercel-doctor), launch readiness (launch-audit), a review of one branch diff (Claude Code's /security-review), third-party registry code (registry-intake).