mapbox-android-navigation-v2-to-v3-migration
БесплатноБез исполняемых скриптовНе проверенMigrate an Android app from Mapbox Navigation SDK v2 to v3 with a coding agent. Inventories v2 usage, plans the work by area with effort and blockers…
от mapbox★ 90 звёзд на GitHubОб этом скилле
Mapbox Navigation SDK v2 → v3 Migration (Android)
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 v3
For an iOS app, use mapbox-ios-navigation-v2-to-v3-migration. A project with both platforms gets two separate migrations, one per platform.
When to use
- The app depends on Navigation SDK v2 (
com.mapbox.navigation:*2.x) - The developer asks "how much work is it to move to v3?". Run steps 1 and 2 only and stop.
- The build broke after the dependency was bumped to 3.x
Not covered:
- Flutter and React Native
- Changing the map style, moving to Mapbox Standard, or turning on other data products. This includes traffic data versions, live incidents, EV routing and HD features.
- Changing route request parameters (profile, annotations, exclusions) beyond what the v3 API requires
- Token changes beyond moving the token to where v3 reads it
- Fixing app bugs that have nothing to do with the migration
- Legal or pricing advice
Rules
These rules apply to every step.
1. Migrate to the current recommended API, not a literal port
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.
2. No silent behavior change
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:
- Present it as a decision. Say what v2 did, what v3 does, and the options, including "no equivalent". Collect all applicable rows into one decision list at the end of step 2 rather than stopping once per row.
- Default to the option closest to v2 behavior if the developer doesn't answer, and say so. Exception: if the developer chose "show the v3 way" for a sample or demo app (step 1, Migration goal), default to the v3 behavior instead and still list the change.
- Record the decision in the decision log.
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):
- Drop the feature and document it. Keep the code compiling with the nearest public API, or remove the feature's code path. Leave a short comment at the call site.
- Highlight it to the developer explicitly as a change of the app's behavior, not a routine migration step. List it under "Behavior removed" at the top of the summary.
- You may suggest a workaround (for example reimplementing the feature in app code). Implement it only after the developer explicitly approves that workaround. "Closest to v2" never means writing a replacement on your own.
Migration or workaround?
- Migration (no approval needed): expressing the same app behavior through a public v3 API that the reference or the SDK documentation names as the replacement. Example:
MapboxSpeedLimitViewreplaced byMapboxSpeedInfoView. - Workaround (needs approval): rebuilding in app code a feature the SDK no longer provides, or substituting dif
Установить mapbox-android-navigation-v2-to-v3-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mapbox-android-navigation-v2-to-v3-migration?
Migrate an Android app from Mapbox Navigation SDK v2 to v3 with a coding agent. Inventories v2 usage, plans the work by area with effort and blockers, migrates one area at a time, and surfaces every behavior change (reroute control, arrival, alternatives switching) as a developer decision. Maps each v2 hook the app uses for its own telemetry to its v3 source or says it is gone. Replaces the removed Drop-in UI by copying the public v2 Drop-in sources into the app, or with the UX Framework or the v3 UI components. Covers the build toolchain upgrade. Hands map-layer changes to mapbox-android-maps-v10-to-v11-migration. Use when upgrading Navigation SDK v2 on Android, estimating a v2 to v3 migration, or fixing a build after bumping to v3.
Как установить скилл mapbox-android-navigation-v2-to-v3-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mapbox-android-navigation-v2-to-v3-migration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic