Agent Skills

upgrade-react-navigation

Upgrade React Navigation to a new major version (6.x to 7.x or 7.x to 8.x), applying the required breaking changes — peer-dependency and tooling bumps, and renamed or removed navigate, linking, theme, navigator, and screen-option APIs — while preserving navigation behavior.

Install

npx skills add https://github.com/react-navigation/skills --skill upgrade-react-navigation
SKILL.md

Upgrade React Navigation

Goal

Upgrade React Navigation to the next major version and handle all required breaking changes while preserving existing navigation behavior.

When to use

You are upgrading React Navigation major version (6.x -> 7.x or 7.x -> 8.x).

Adaptation policy

Treat the patterns in this skill as canonical starting points, not an exhaustive list. The absence of an exact matching example is not a blocker.

  • Map local code to the closest pattern here and adapt it; infer an equivalent when the structure differs.
  • Prefer the simplest upgrade that preserves behavior.
  • Keep changes minimal and upgrade only the affected code.

When to ask for clarification

Inspect the local code first.

If, after reading the relevant navigator and the upgrade reference, you cannot determine with high confidence whether an API changed or how to update it, pause and ask the user before editing code.

Ask for clarification when:

  • A navigator uses APIs that are not covered in the official documentation or the upgrade reference.
  • The upgrade would require assumptions about which behavior changes are acceptable.

References

Check @react-navigation/native in package.json first.

Load exactly one reference file unless explicitly comparing versions.

Verification

After upgrading:

  • Determine the package manager from package.json or the lockfile.
  • Run the existing type checker, linter, and relevant tests when scripts are available.
  • Work through the "Automated checks" and "Manual checks" in the loaded reference. If a step cannot run, report why.

Related skills

vercel-react-best-practicesvercel-labs751KReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.vercel-composition-patternsvercel-labs361KReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.vercel-react-view-transitionsvercel-labs135KGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions viewpick-ui-libraryemilkowalski124KPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers