Agent skill

Maplibre V6 Migration

by maplibre in maplibre/maplibre-agent-skills

Upgrading a MapLibre GL JS app from v5 to v6 — the ESM-only build, the removed default export, CommonJS require() breakage, the styleimagemissing/setMissingStyleImageResolver change, the removal of…

Custom licenceAuto-check passedDevelopment

Install Maplibre V6 Migration

skills CLI
$ npx skills add maplibre/maplibre-agent-skills --skill maplibre-v6-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install maplibre/maplibre-agent-skills maplibre-v6-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/maplibre/maplibre-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/maplibre-v6-migration .claude/skills/maplibre-v6-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
maplibre-v6-migration
GitHub stars
151
Token cost
~2.5k tokens
SKILL.md length
874 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Custom licence

At a glance

Upgrading a MapLibre GL JS app from v5 to v6 — the ESM-only build, the removed default export, CommonJS require() breakage, the styleimagemissing/setMissingStyleImageResolver change, the removal of…

  • Works in 7 steps: CDN script tag: ESM-only now → No default export — named or namespace… → No CommonJS — require('maplibre-gl')… → …
  • A v5 app breaks after upgrading to v6
  • SKILL.md covers When to Use This Skill, 1. CDN script tag: ESM-only now, 2. No default export — named… and 3. No CommonJS —…, plus 5 more sections
  • Reaches unpkg.com

What it does

Maplibre V6 Migration is an agent skill from maplibre/maplibre-agent-skills. Upgrading a MapLibre GL JS app from v5 to v6 — the ESM-only build, the removed default export, CommonJS require() breakage, the styleimagemissing/setMissingStyleImageResolver change, the removal of the internal map.transform, the MapDataEvent → MapSourceDataEvent/MapStyleDataEvent split, and the bundler-only setWorkerUrl() requirement. Use when a v5 app breaks after upgrading to v6, or before pinning a v6 install.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Community-maintained agent skills for MapLibre GL JS — helping AI coding assistants write better mapping code.

When your agent uses it

  • A v5 app breaks after upgrading to v6
  • Before pinning a v6 install

Example prompts

  • “/maplibre-v6-migration”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. CDN script tag: ESM-only now
  2. No default export — named or namespace import only
  3. No CommonJS — require('maplibre-gl') throws
  4. styleimagemissing no longer resolves the request — use setMissingStyleImageResolver
  5. map.transform is gone — use the public Camera API
  6. MapDataEvent removed — use MapSourceDataEvent / MapStyleDataEvent
  7. Bundled builds still need setWorkerUrl() — CDN ESM does not

What it can do on your machine

Read from SKILL.md and the folder at commit 99f8774. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript, typescript and html).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • unpkg.com

    Also links to:

    • maplibre.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Maplibre V6 Migration loads about 2.5k tokens when it runs. Until then it costs about 110 tokens; SKILL.md has 874 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 874 words (~2,460 tokens).

“MapLibre GL JS v6 (released 2026-07-22) removed several things v5 code relied on: the UMD/CSP browser bundles, the default export, CommonJS support, the internal map.transform, and the MapDataEvent type. Most models' training data predates v6. So the natural-sounding answer to…”

— opening of SKILL.md by maplibre, Custom licence
name
maplibre-v6-migration
status
verified

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/maplibre-v6-migration of maplibre/maplibre-agent-skills.

Open the folder on GitHubat commit 99f8774

Compare with similar skills

Maplibre V6 Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Maplibre V6 Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Maplibre V6 Migration this skillmaplibre/maplibre-agent-skills151—~2.5kAutomated safety check: PassCustom licence
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from maplibre/maplibre-agent-skills

All 10 skills in this repo
  • Maplibre Cartography

    maplibre/maplibre-agent-skills

    Cartographic principles for MapLibre GL JS — label and symbol legibility on imagery vs.

    151 GitHub stars~4.8k tokensUpdated yesterday
    Auto-check passed
  • Maplibre Fonts Glyphs

    maplibre/maplibre-agent-skills

    Configuring fonts and glyphs for MapLibre GL JS and MapLibre Native — the style's glyphs URL, self-hosting or generating font PBFs, the GL JS local-font fallback (omitted glyphs or a failed glyph…

    151 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Maplibre Mapbox Migration

    maplibre/maplibre-agent-skills

    Migrating from Mapbox GL JS to MapLibre GL JS — package and import changes, removing the access token, choosing tile sources, plugin equivalents, and what you gain or give up.

    151 GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • Maplibre Pmtiles Patterns

    maplibre/maplibre-agent-skills

    Serverless vector and raster tiles with PMTiles for MapLibre GL JS — single-file format, HTTP range requests, hosting on S3/R2/GitHub Pages, generating with Planetiler or tippecanoe, and the pmtiles…

    151 GitHub stars~4.6k tokensUpdated yesterday
    Auto-check passed
  • Maplibre Running Evals

    maplibre/maplibre-agent-skills

    The step-by-step procedure for running this repo's Promptfoo evals with a generator and a judge over provider APIs.

    151 GitHub stars~3.3k tokensUpdated yesterday
    Auto-check passed
  • Maplibre Source Wiring

    maplibre/maplibre-agent-skills

    Getting a MapLibre GL JS source to actually render — TileJSON url versus hand-wired tiles templates, matching source-layer names to the tile schema, layer order and inserting below labels, promoteId…

    151 GitHub stars~3.8k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Maplibre V6 Migration

What does Maplibre V6 Migration do?

Upgrading a MapLibre GL JS app from v5 to v6 — the ESM-only build, the removed default export, CommonJS require() breakage, the styleimagemissing/setMissingStyleImageResolver change, the removal of…. Maplibre V6 Migration is an agent skill from maplibre/maplibre-agent-skills.transform, the MapDataEvent → MapSourceDataEvent/MapStyleDataEvent split, and the bundler-only setWorkerUrl() requirement.

When should I use Maplibre V6 Migration?

Maplibre V6 Migration fits situations like: A v5 app breaks after upgrading to v6; before pinning a v6 install.

How do I install Maplibre V6 Migration in Claude Code?

Run `npx skills add maplibre/maplibre-agent-skills --skill maplibre-v6-migration -a claude-code`. Or copy the skill folder (skills/maplibre-v6-migration in maplibre/maplibre-agent-skills) into .claude/skills/maplibre-v6-migration in your project. Claude Code loads it when a task matches its description.

How do I install Maplibre V6 Migration in Codex?

Run `npx skills add maplibre/maplibre-agent-skills --skill maplibre-v6-migration -a codex`. Or copy the skill folder (skills/maplibre-v6-migration in maplibre/maplibre-agent-skills) into .agents/skills/maplibre-v6-migration in your project. Codex loads it when a task matches its description.

Can I use Maplibre V6 Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maplibre/maplibre-agent-skills --skill maplibre-v6-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/maplibre-v6-migration, .gemini/skills/maplibre-v6-migration, .github/skills/maplibre-v6-migration and .opencode/skills/maplibre-v6-migration in your project.

What does Maplibre V6 Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Maplibre V6 Migration is instructions for the agent only.

Does Maplibre V6 Migration access the network?

SKILL.md names 3 domains. In commands or code: unpkg.com; the agent is likely to contact it when it follows the instructions. As links in the text: maplibre.org and github.com. This is read from the text; nothing was executed.

Is Maplibre V6 Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Maplibre V6 Migration use?

Maplibre V6 Migration has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Maplibre V6 Migration use?

About 2.5k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Maplibre V6 Migration?

Skills that share tags, products or a category with Maplibre V6 Migration: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Maplibre V6 Migration?

maplibre (a GitHub organization) maintains it in maplibre/maplibre-agent-skills, which has 151 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 10, 2026.

Source: maplibre/maplibre-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.