·mapbox-web-integration-patterns
</>

mapbox-web-integration-patterns

mapbox/mapbox-agent-skills

Official integration patterns for Mapbox GL JS across popular web frameworks. Covers setup, lifecycle management, token handling, search integration, and common pitfalls. Based on Mapbox's create-web-app scaffolding tool.

91Installs·10Trend·@mapbox

Installation

$npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-web-integration-patterns

SKILL.md

This skill provides official patterns for integrating Mapbox GL JS into web applications across different frameworks. These patterns are based on Mapbox's create-web-app scaffolding tool and represent production-ready best practices.

⚠️ Production apps should use npm, not CDN - ensures consistent versions and offline builds.

Note: These examples use Vite (the bundler used in create-web-app). If using Create React App, replace import.meta.env.VITEMAPBOXACCESSTOKEN with process.env.REACTAPPMAPBOXTOKEN. See the Token Management Patterns section for other bundlers.

Official integration patterns for Mapbox GL JS across popular web frameworks. Covers setup, lifecycle management, token handling, search integration, and common pitfalls. Based on Mapbox's create-web-app scaffolding tool. Source: mapbox/mapbox-agent-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-web-integration-patterns
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is mapbox-web-integration-patterns?

Official integration patterns for Mapbox GL JS across popular web frameworks. Covers setup, lifecycle management, token handling, search integration, and common pitfalls. Based on Mapbox's create-web-app scaffolding tool. Source: mapbox/mapbox-agent-skills.

How do I install mapbox-web-integration-patterns?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-web-integration-patterns Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/mapbox/mapbox-agent-skills