mapbox-google-maps-migration

mapbox-google-maps-migration is a skill for Claude Code, Codex from mapbox/mapbox-agent-skills. It costs 33 tokens per session (2,972 once invoked), scanned A, original, MIT.

A guide for moving map applications from Google Maps Platform to Mapbox GL JS, the JavaScript library for displaying interactive Mapbox maps. It compares equivalent APIs and explains differences in how the two systems represent map features.

In plain words
What is it for?
Use it to replace Google Maps maps, markers, polygons, styles, and updates with Mapbox GL JS sources, layers, and JSON-based styling.
Why use it?
It helps developers translate existing Google Maps code without assuming that the two platforms use the same programming model.

Skill for Claude CodeCodex

Part of the mapbox plugin — 20 skills, 3 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mapbox/mapbox-agent-skills/mapbox-google-maps-migration
Any agent
npx skills add mapbox/mapbox-agent-skills --skill mapbox-google-maps-migration
Clone the repo
git clone --depth 1 https://github.com/mapbox/mapbox-agent-skills

Made for: Claude Code, Codex.

Or install mapbox, the plugin that ships this one along with the rest of its 20 skills, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mapbox-google-maps-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/mapbox/mapbox-agent-skills/mapbox-google-maps-migration.svg)](https://agentmods.dev/skills/mapbox/mapbox-agent-skills/mapbox-google-maps-migration)
Your own site
<a href="https://agentmods.dev/skills/mapbox/mapbox-agent-skills/mapbox-google-maps-migration"><img src="https://agentmods.dev/badge/skills/mapbox/mapbox-agent-skills/mapbox-google-maps-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.02972
Opus 5 $0.00016 $0.01486
Sonnet 5 $0.00007 $0.00594
Haiku 4.5 $0.00003 $0.00297

Measured 4d ago against content hash d3cfa2f161c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mapbox-google-maps-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mapbox-google-maps-migration/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mapbox Google Maps Migration Skill

Comprehensive guidance for migrating from Google Maps Platform to Mapbox GL JS. Provides API equivalents, pattern translations, and strategies for successful migration.

Core Philosophy Differences

Google Maps: Imperative & Object-Oriented

  • Create objects (Marker, Polygon, etc.)
  • Add to map with .setMap(map)
  • Update properties with setters
  • Heavy reliance on object instances

Mapbox GL JS: Declarative & Data-Driven

  • Add data sources
  • Define layers (visual representation)
  • Style with JSON
  • Update data, not object properties

Key Insight: Mapbox treats everything as data + styling, not individual objects.

Map Initialization

Google Maps

const map = new google.maps.Map(document.getElementById('map'), {
  center: { lat: 37.7749, lng: -122.4194 },
  zoom: 12,
  mapTypeId: 'roadmap' // or 'satellite', 'hybrid', 'terrain'
});

Mapbox GL JS

mapboxgl.accessToken = 'YOUR_MAPBOX_TOKEN';
const map = new mapboxgl.Map({
  container: 'map',
  style: 'mapbox://styles/mapbox/streets-v12', // or satellite-v9, outdoors-v12
  center: [-122.4194, 37.7749], // [lng, lat] - note the order!
  zoom: 12
});

Key Differences:

  • Coordinate order: Google uses {lat, lng}, Mapbox uses [lng, lat]
  • Authentication: Google uses API key in script tag, Mapbox uses access token in code
  • Styling: Google uses map types, Mapbox uses full style URLs

API Equivalents Reference

Map Methods

Google Maps Mapbox GL JS Notes
map.setCenter(latLng) map.setCenter([lng, lat]) Coordinate order reversed
map.getCenter() map.getCenter() Returns LngLat object
map.setZoom(zoom) map.setZoom(zoom) Same behavior
map.getZoom() map.getZoom() Same behavior
map.panTo(latLng) map.panTo([lng, lat]) Animated pan
map.fitBounds(bounds) map.fitBounds([[lng,lat],[lng,lat]]) Different bound format
map.setMapTypeId(type) map.setStyle(styleUrl) Completely different approach
map.getBounds() map.getBounds() Similar

Read the full file on GitHub · 412 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 412 lines · 33 tokens per session scan A d3cfa2f161c3

Subscribe to this mod's changes

mapbox-google-maps-migration is a skill published in the GitHub repository mapbox/mapbox-agent-skills (74 stars, last pushed 9d ago), licensed MIT. It adds 33 tokens to every session and 2,972 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

planning-with-files-ar

تخطيط مستمر قائم على الملفات لعمل وكلاء الذكاء الاصطناعي متعدد الخطوات. يحتفظ بملفات taskplan.md و findings.md و progress.md على القرص، وتحقن خطافات دورة الحياة سياق التخطيط المحدد للمشروع. تقرأ الاستعادة التلقائية ملفات تخطيط المشروع فقط. يمكن للأمر الصريح session-catchup.py --metadata فحص بيانات وصفية لجلسات الوكيل…

OthmanAdi/planning-with-files · 189 tokens

kl-consistency-test

Write, calibrate, and debug the prefill-vs-decode logprob (KL) consistency tests in sglang -- the two independent conditions a zero requires (every operator batch-invariant, and the two paths computing the same function), which helper separates them, how to pick a threshold once they hold, and how to localize a…

sgl-project/sglang · 108 tokens

i18n-localization

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

vudovn/ag-kit · 27 tokens

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens