/mapbox:mapbox-android-navigation-v2-to-v3-migrationfrom mapbox
Migrates an Android app from Mapbox Navigation SDK v2 to v3, covering configuration, route requests, trip session, observers, rerouting, arrival, voice, UI, and build toolchain. Surfaces behavior changes as developer decisions.
Ships in mapbox. 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.
Moves an Android app from Navigation SDK v2 to the latest Navigation SDK v3 release. The agent does most of the work. The developer makes the decisions.
Navigation SDK v3 requires Maps SDK v11. Every app on Navigation v2 is also on Maps v10, so this migration includes a Maps v10 → v11 migration. Use the mapbox-android-maps-v10-to-v11-migration skill for the map layer (map view, style, annotations, camera APIs, gestures). This skill covers what the Navigation SDK owns: configuration, route requests, the trip session, observers and events, rerouting, arrival, voice, the navigation UI, route line and navigation camera.
Reference files:
references/migration-workflow.md: templates for the inventory, plan, decision log, telemetry map and migration summaryreferences/android.md: v2 → v3 mappings for Android (Kotlin, Java)references/android-drop-in-port.md: how to copy the public v2 Drop-in UI sources into the app and adapt it to v3For an iOS app, use mapbox-ios-navigation-v2-to-v3-migration. A project with both platforms gets two separate migrations, one per platform.
com.mapbox.navigation:* 2.x)Not covered:
These rules apply to every step.
Read the official Migrate to Navigation SDK v3 guide first. It describes the new structure: MapboxNavigation is owned by MapboxNavigationApp, and artifacts move to com.mapbox.navigationcore.
references/android.md doesn't copy the guide. It adds what it leaves out: callbacks apps actually use that the guide doesn't map, behavior changes, telemetry, and mappings where the guide is out of date. When the guide and the reference disagree, the reference wins. If you can't fetch the guide, work from the reference alone and say so in the report.
The map layer follows the Maps skill's rule: move tap handling to Featureset Interactions and selection highlighting to Feature State, not a literal port.
Navigation v3 removed or changed several hooks that let the app decide something, such as plugging in a custom reroute controller or router, and changed runtime defaults, such as automatic alternatives switching. references/android.md has a Behavior changes table and a New in v3 and on by default table. For every row that applies to the app:
For New in v3 and on by default rows, the default is to turn the feature off, so the migrated app behaves like v2. List each one in the report as available to turn on later. When the developer reports one of these after migrating ("the route line looks different"), go through the whole table.
When v3 has no equivalent (the feature can't be kept with public v3 API):
Migration or workaround?
MapboxSpeedLimitView replaced by MapboxSpeedInfoView.setRerouteEnabled(false) and the app's own off-route handling.Apps often send analytics from Navigation SDK callbacks: reroute events, off-route, route progress, arrival, the raw directions response. In step 1, list every v2 hook the app reads data from, including data that only feeds logging. Map each to its v3 source using the App telemetry hooks table in references/android.md, and say per hook whether it is same (the v2 API still works), changed (new API or payload, same data) or reduced / gone (less data, or no v3 equivalent). Do this in step 2 for an effort estimate, and confirm it in step 3. When v3 has no equivalent, or reports less (for example no raw response object), say so in the telemetry map. Don't drop the log call silently, and don't invent fields.
Keep the app's map style, traffic data, and route request options exactly as they are. v3 changes some defaults. When a default changes something the app relied on, set the v2 value explicitly and log it as a decision. Moving to Standard, newer traffic data, or new routing features is a separate, opt-in recommendation for the report.
v2 Drop-in UI (NavigationView) isn't shipped in v3. Present the choice as a decision, with these options:
references/android-drop-in-port.md.ui-components, ui-maps), in Views or ComposeInventory every Drop-in customization so it can be checked against the option chosen. Option 1 needs the developer's explicit yes. In the question, link the v2 LICENSE.md and state its terms: it requires an active Mapbox account, allows use and modification only with Mapbox products, and doesn't grant unrestricted rights to redistribute or sublicense the code, and modifications that change or interfere with marked portions related to billing, accounting or data collection are not authorized. If the developer doesn't answer, don't copy: migrate everything else and report Drop-in as an open decision.
If the developer asks for their own UI instead, build it on the v3 core APIs and the route line and camera components, and list what the Drop-in UI did that the app now owns.
Only use v3 symbols that appear in references/android.md, the official migration guide, or the SDK source and docs for the version you're targeting. If you're unsure whether a symbol exists or has the stated signature, don't invent one. Write the closest match, add a // [VERIFY WITH MAPBOX] comment, and list it in the report. The build is the final check.
SDK internal packages are not public API. Classes under a …internal… package of a Mapbox module are public in Kotlin but not part of the supported API, and can change in any release.
internal package. The one exception is an approved Drop-in copy (rule 5, option 1): the developer accepts that dependency by saying yes, and the port lists it.Use the latest stable 3.x unless the developer pins a version. The v3 API changed during the 3.x line. Check each Target entry's minimum version when the developer pins an older 3.x. Pair it with the Maps SDK v11 version from the release notes.
If the developer asks you to proceed without stopping, or can't answer: write the plan and decision log as usual, take the rule-2 defaults, and continue. Don't implement any workaround that needs approval (rule 2), and don't copy the Drop-in sources (rule 5). Start the summary with a Needs developer review list: every decision taken by default, every behavior removed, every workaround suggested but not implemented.
Run the five steps in order. Don't edit code before step 2 is done and shown to the developer (or, per rule 8, written to the plan file when the developer asked you not to stop).
Run two inventories:
references/android.mdmapbox-android-maps-v10-to-v11-migration's reference. If that skill isn't installed, list Maps SDK symbols by area and mark the map layer [VERIFY WITH MAPBOX] in the plan.Output the inventory and the telemetry hook list (templates in references/migration-workflow.md). Flag:
internal packages (for example flowLocationMatcherResult or ifNonNull). Report them as pre-existing risks (rule 6).If the app can run on an emulator, offer to take before screenshots on v2 of the main navigation screens: route preview, active guidance with a maneuver banner, and arrival. Use route simulation so the after screenshots in step 4 can repeat the same route and position.
Group the work by area, in this order:
For each area, give the call-site count, effort (S < 1h, M = half a day, L = 1-2 days, XL = more, or blocked), and blockers. List every behavior change and every telemetry hook that loses data as a decision. Use the plan template in references/migration-workflow.md.
The plan on its own answers "how much work is this?". If that was the question, stop here.
Bump Navigation v3 and Maps v11 together, since Navigation v3 pulls in Maps v11. The whole app stops compiling, and it won't compile again until every area, including the map layer, is migrated. Fixing one area doesn't make the build green, so don't wait for a passing build between areas. Instead:
references/android.md). Build once with ./gradlew assembleDebug (or the app's variant) and save the full error list as the baseline. Toolchain errors come first; fix them before counting SDK errors.references/android.md using the Target column. For the map layer, apply the Maps skill's mappings. The area is done when none of the remaining errors are in its files or symbols. Rebuild to refresh the list. New errors can appear as earlier ones clear. In a single-module app the compiler often stops at the first batch of failing files, so the baseline isn't the total: read each file in the area and migrate it, and use the build to confirm.If the app already has navigation behind its own interface (see Staged rollout), migrating and building one module at a time is possible. Say so in the plan.
internal packages outside an approved Drop-in copy (rule 6)[VERIFY WITH MAPBOX] tag is listed in the reportIf you can run the app with route simulation, check:
A successful build doesn't cover these. If you can't run the app, say so in the report, list these checks as not done, and don't claim they were checked.
Write the migration summary from references/migration-workflow.md:
[VERIFY WITH MAPBOX] itemsMapboxMap composable from the Mapbox Compose extension, and Google's migrate XML views to Jetpack Compose skill covers the rest of the screen. Navigation SDK v3 has no Compose UI components: its ui-components (maneuver, trip progress, speed info, buttons) are Views, hosted in AndroidView or rebuilt in Compose. Don't do it as part of this migration. If the app copied the v2 Drop-in UI (rule 5, option 1), the copied screens are the starting point for that follow-up. If the developer chose the app's own UI, building that UI in Compose is a reasonable choice.The summary should be short enough for a PM to read: areas, effort, blockers, decisions, telemetry gaps.
If the developer needs v2 and v3 side by side (A/B test, fast rollback), don't try to link both SDK generations into one binary. Put navigation and map code behind app-level interfaces (for example NavigationEngine and MapProvider) with a v2 implementation and a v3 implementation. Then select the implementation per build flavor. Keep the app's telemetry events identical across both implementations, so the A/B comparison measures the SDK and not a logging change. Whether both generations can coexist in a single binary is unconfirmed; mark any such suggestion [VERIFY WITH MAPBOX].
| Area | v2 → v3 |
|---|---|
| Maps SDK | v10 → v11 (separate migration) |
| Distribution | Maven, as in v2; artifacts move to com.mapbox.navigationcore |
| Configuration | NavigationOptions stays; token and location engine move out |
| Entry point | MapboxNavigationApp / MapboxNavigationProvider stay |
| Events | Observers mostly stay; some alternatives observers removed |
| Route objects | NavigationRoute only from requestRoutes / requestMapMatching; building routes from JSON is removed |
| Raw response | NavigationRoute.directionsResponse removed |
| Reroute | No custom reroute controller; turn rerouting off with setRerouteEnabled(false) |
| Leg advancing | ArrivalController / navigateNextRouteLeg: see the reference |
| Custom routing | Custom router → removed; built-in hybrid router |
| Drop-in UI | Drop-in NavigationView → copy of the v2 Drop-in sources, UX Framework (beta) or the app's own UI |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mapbox/mapbox-agent-skills --plugin mapbox27 skills in this plugin
/mapbox-android-compose-migrationMove Android Mapbox map and navigation screens from the View system (XML MapView, AndroidView-wrapped MapView, fragments) to Jetpack Compose with a coding agent. Covers the Mapbox parts of the screen (MapboxMap composable, viewport state, style and annotation composables, MapEffect, lifecycle, Navigation SDK v3 wiring) and leaves the rest of the screen to Google's XML-to-Compose skill. Keeps the map looking and behaving the same, one screen at a time. Use when migrating a Mapbox screen to Compose, planning that work, or fixing a map that broke after moving to Compose./mapbox-android-maps-v10-to-v11-migrationMigrate an Android app from Mapbox Maps SDK v10 to v11 with a coding agent. Inventories v10 usage, plans the work by area with effort and blockers, migrates one area at a time to the current recommended v11 APIs (Featureset Interactions, Feature State, typed events), surfaces behavior changes as developer decisions, keeps the app's style, and reports what changed. Covers Kotlin, Java, Views and Jetpack Compose. Use when upgrading Maps SDK v10 on Android, estimating a v10 to v11 migration, or fixing a build after bumping to v11./mapbox-android-patternsOfficial integration patterns for Mapbox Maps SDK on Android. Covers installation, adding markers, user location, custom data, styles, camera control, and featureset interactions. Based on official Mapbox documentation.Other plugins' skills for the same job