mapbox-odp-maps

mapbox-odp-maps is a skill for Claude Code, Codex from joevstaas/awesome-claude-skills. It costs 42 tokens per session (7,292 once invoked), scanned C, original, MIT.

A guide for displaying Ocean Data Platform geodata as interactive maps in a Next.js application. It explains how to connect Mapbox GL JS, a browser map-rendering library, with ODP data and convert geographic formats into map-ready data.

In plain words
What is it for?
Use it to build or debug Next.js maps that show ODP data, manage map layers, load Arrow tabular data, and convert WKT or WKB shapes to GeoJSON.
Why use it?
It addresses setup details that commonly cause maps to fail, including browser/server boundaries, CSS, data conversion, and environment variables.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or debug Next.js maps that show ODP data, manage map layers, load Arrow tabular data, and convert WKT or WKB shapes to GeoJSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joevstaas/awesome-claude-skills/mapbox-odp-maps
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.

Any agent
npx skills add joevstaas/awesome-claude-skills --skill mapbox-odp-maps
Clone the repo
git clone --depth 1 https://github.com/joevstaas/awesome-claude-skills

Made for: Claude Code, Codex.

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-odp-maps

README.md
[![agentmods](https://agentmods.dev/badge/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps/github.svg)](https://agentmods.dev/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps)
Your own site
<a href="https://agentmods.dev/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps"><img src="https://agentmods.dev/badge/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mapbox-odp-maps

Your own site · 80×15
<a href="https://agentmods.dev/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps"><img src="https://agentmods.dev/badge/skills/joevstaas/awesome-claude-skills/mapbox-odp-maps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,292 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00042 $0.07292
Opus 5 $0.00021 $0.03646
Sonnet 5 $0.00008 $0.01458
Haiku 4.5 $0.00004 $0.00729

Measured 11d ago against content hash 486f5f2f9424, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

mapbox-odp-maps scanned grade C with 1 finding 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

3. **Stale Turbopack cache**: When changing layout.tsx or env vars, always `rm -rf .next` and restart the dev server. Turbopack caches aggressively.
skills/mapbox-odp-maps/SKILL.md · 782 lines

How it starts

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

Mapbox GL + ODP Maps Skill

Use this skill when the user wants to build or debug interactive maps that display geodata from the Ocean Data Platform (ODP) using Mapbox GL JS in a Next.js application.

Prerequisites

npm Dependencies

npm install mapbox-gl wkx apache-arrow
npm install -D @types/geojson
Package Purpose
mapbox-gl Map rendering engine
wkx Convert WKT/WKB geometry (from ODP) to GeoJSON
apache-arrow Parse Arrow IPC binary format from ODP tabular API

Environment Variables

NEXT_PUBLIC_MAPBOX_TOKEN=pk.your_token_here
ODP_API_KEY=sk_your_key_here

NEXT_PUBLIC_MAPBOX_TOKEN is client-side (public). ODP_API_KEY is server-side only.

Next.js Setup — Critical Steps

1. next.config.ts

Mapbox GL and Apache Arrow need special configuration:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  transpilePackages: ["mapbox-gl"],
  serverExternalPackages: ["apache-arrow"],
};
  • transpilePackages: ["mapbox-gl"] — required because mapbox-gl ships untranspiled ESM
  • serverExternalPackages: ["apache-arrow"] — Apache Arrow has native bindings that break in bundling

2. Mapbox GL CSS — Import in the map component

Load CSS via a direct import inside the map component file:

// components/map/map-view.tsx
"use client";
import mapboxgl from "mapbox-gl";
import "mapbox-gl/dist/mapbox-gl.css";

This works reliably with the manual client-only import pattern (see step 3). Do NOT add a <head> tag to layout.tsx — Next.js 16 with Turbopack can error with "Missing <html> and <body> tags" if you add <head> manually in the root layout.

3. Client-Only Import Pattern — Do NOT use next/dynamic

IMPORTANT (Next.js 16 / Turbopack): Do NOT use next/dynamic with ssr: false for the map component. In Next.js 16 with Turbopack, dynamic() with ssr: false triggers a false-positive runtime error: "Missing <html> and <body> tags in the root layout." This is caused by the SSR bailout mechanism confusing the Turbopack dev overlay.

Read the full file on GitHub · 782 lines

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. 11d ago First seen · 782 lines · 42 tokens per session scan C 486f5f2f9424

Subscribe to this mod's changes

mapbox-odp-maps is a skill published in the GitHub repository joevstaas/awesome-claude-skills (6 stars, last pushed 14d ago), licensed MIT. It adds 42 tokens to every session and 7,292 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

menu-transitions-rtl

Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens