/mapbox:mapbox-android-maps-v10-to-v11-migrationfrom mapbox
Migrates Android apps from Mapbox Maps SDK v10 to v11. Inventories v10 usage, plans migration by area, converts to v11 APIs (Featureset Interactions, Feature State, typed events), and reports changes. Use when upgrading Maps SDK v10 or fixing v11 build breaks.
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 Maps SDK v10 to the latest Maps SDK v11 release. The agent does most of the work. The developer makes the decisions.
Reference files:
references/migration-workflow.md: templates for the inventory, plan, decision log and migration summaryreferences/android.md: v10 → v11 mappings for Android (Kotlin, Java, Jetpack Compose)For an iOS app, use mapbox-ios-maps-v10-to-v11-migration. A project with both platforms gets two separate migrations, one per platform.
com.mapbox.maps:android 10.x)Not covered:
mapbox-android-navigation-v2-to-v3-migration).These rules apply to every step.
The official v11 migration guide was written when v11 first shipped and lists what changed between v10 and 11.0. Since then v11 has gained APIs that replace patterns the guide still shows. For example, the guide keeps addOnMapClickListener plus queryRenderedFeatures for tap handling. That is now discouraged in favor of Featureset Interactions.
Use the migration guide to find what breaks. Use the "Target" column in references/android.md to decide what the code becomes. When the two disagree, the reference wins.
Two limits:
queryRenderedFeatures and querySourceFeatures are still correct for non-interactive queries ("what is inside this rectangle?"). Replace them only when they implement a tap or long-press handler.Some v11 changes alter what the app does at runtime even though the code compiles. Examples: the default style, default puck bearing, map loading errors. references/android.md has a Behavior changes table. For every row that applies to the app:
references/migration-workflow.md).Keep the app's style URL or style JSON exactly as it is. Don't switch to Standard, add style imports, or change tilesets or traffic data. v11 changed the default style to Standard. If the app relied on the v10 default (it never set a style), set the style explicitly to the one v10 loaded. v11 also points some built-in style constants (for example Style.MAPBOX_STREETS) at newer style versions. Keeping the constant can still change the map, so pin the literal style URI the v10 SDK resolved to. See references/android.md.
Moving to Standard is a separate, opt-in recommendation. List it in the final report if relevant. Never do it as part of the migration.
Only use v11 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 at the call site, and list it in the report. The build is the final check. A symbol that doesn't compile is a grounding failure, not something to patch around with a guess.
Use the latest stable 11.x unless the developer pins a version. Several target APIs need a minimum v11 minor version (for example, Featureset Interactions are stable from 11.13). If the developer pins an older 11.x, check each Target entry's minimum version and fall back to the entry's "older 11.x" alternative.
Run the five steps in order. Don't edit code before step 2 is done and shown to the developer.
Find every v10 symbol the app uses, by file, with call counts. Use the inventory search list in references/android.md. It lists the symbols and patterns to search for, grouped by area.
Output the inventory table from references/migration-workflow.md. Also flag:
If the app can run on an emulator, offer to take before screenshots of the main map screens now, on v10, for comparison in step 4. Note the device, camera position and app state for each, so the after screenshot can repeat it.
Group the work by area, in this order:
For each area, give the call-site count, an effort estimate (S < 1h, M = half a day, L = 1-2 days, XL = more, or blocked), and blockers. List every behavior change that applies, as a decision the developer needs to make. 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.
Bumping the dependency breaks the whole build at once, and the app won't compile again until every area is migrated. Don't expect a green build after each area. Instead:
./gradlew assembleDebug (or the app's variant) and save the full error list. This is the baseline.references/android.md, using the Target column. Use the error list as the to-do list for that area: the area is done when none of the remaining errors are in its files or symbols. Rebuild to refresh the list. Expect new errors to appear as earlier ones clear, since the compiler stops at some errors.If the app already isolates map code behind its own interface (see Staged rollout), migrating and building one module at a time is possible. Say so in the plan.
[VERIFY WITH MAPBOX] tag is listed in the reportIf you can run the app on an emulator, check the map renders, taps on interactive features still work, and the location puck shows. If you can't, say so in the report. Don't claim the app was checked.
Write the migration summary from references/migration-workflow.md:
[VERIFY WITH MAPBOX] itemsmapbox-android-patterns), point the developer to it.MapboxMap composable from the Mapbox Compose extension (com.mapbox.extension:maps-compose), and Google's migrate XML views to Jetpack Compose skill covers the rest of the screen. Don't do it as part of this migration.The summary should be short enough for a PM to read: areas, effort spent, blockers, decisions.
If the developer needs v10 and v11 builds side by side (A/B test, fast rollback), don't try to link both SDK versions into one binary. Put map code behind one app-level interface (for example MapProvider) with a v10 implementation and a v11 implementation. Then select the implementation per build flavor. Whether both versions can coexist in a single binary is unconfirmed; mark any such suggestion [VERIFY WITH MAPBOX].
| Area | v10 | v11 target |
|---|---|---|
| Access token | ResourceOptions / ResourceOptionsManager | MapboxOptions.accessToken, or the mapbox_access_token string resource |
| Default style | Streets | Standard. Pin the app's style explicitly. |
| Events | String-typed observers | Typed events, keeping the subscription |
| Tap handling | addOnMapClickListener + queryRenderedFeatures | Featureset Interactions (ClickInteraction) |
| Selection highlight | Rewriting the source with a selected property | Feature State + feature-state expression |
| Small data changes | Replacing the whole GeoJSON source | Partial GeoJSON updates (add, update, remove features by id) |
| Style access | getStyle {} | mapboxMap.style property |
| View annotations | View-keyed options API | annotatedFeature options updated with updateViewAnnotation |
| Offline | Legacy OfflineRegionManager | TileStore + OfflineManager. Legacy still exists with renamed error types. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-navigation-v2-to-v3-migrationMigrate 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.Other plugins' skills for the same job