Skip to content

Commit e4c77d9

Browse files
[skills] Add mapbox-integration-patterns skill
Adds comprehensive framework integration patterns based on create-web-app: New Skill: mapbox-integration-patterns - React pattern (useRef + useEffect + cleanup) - Vue pattern (mounted + unmounted) - Svelte pattern (onMount + onDestroy) - Angular pattern (ngOnInit + ngOnDestroy + SSR handling) - Vanilla JS patterns (with and without bundler) - Next.js patterns (App Router and Pages Router) Key Topics: - Framework-specific lifecycle management - Proper cleanup to prevent memory leaks - Token management across different bundlers - Mapbox Search JS integration - Common mistakes and how to avoid them - SSR handling for Angular and Next.js - Testing patterns for maps Based on official patterns from: https://github.com/mapbox/create-web-app This complements existing skills: - mapbox-cartography: Design principles - mapbox-token-security: Security best practices - mapbox-style-patterns: Common style configurations 🤖 Generated with Claude Code
1 parent 1c28536 commit e4c77d9

File tree

3 files changed

+892
-0
lines changed

3 files changed

+892
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ This repository includes [Agent Skills](https://agentskills.io) that provide dom
462462
- **🎨 mapbox-cartography**: Map design principles, color theory, visual hierarchy, typography
463463
- **🔐 mapbox-token-security**: Token management, scope control, URL restrictions, rotation strategies
464464
- **📐 mapbox-style-patterns**: Common style patterns and layer configurations for typical scenarios
465+
- **🔧 mapbox-integration-patterns**: Framework-specific integration patterns for React, Vue, Svelte, Angular, and vanilla JS
465466

466467
Skills complement the MCP server by providing expertise (how to think about design) while tools provide capabilities (how to execute actions).
467468

skills/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,34 @@ Use this skill when:
8383

8484
[View skill →](./mapbox-style-patterns/SKILL.md)
8585

86+
### 🔧 mapbox-integration-patterns
87+
88+
**Official integration patterns for Mapbox GL JS across popular web frameworks including React, Vue, Svelte, Angular, and vanilla JavaScript.**
89+
90+
Use this skill when:
91+
92+
- Setting up Mapbox GL JS in a new project
93+
- Integrating Mapbox into a specific framework
94+
- Adding Mapbox Search functionality
95+
- Implementing proper cleanup and lifecycle management
96+
- Debugging map initialization issues
97+
- Converting between frameworks
98+
- Reviewing code for integration best practices
99+
100+
**Key topics:**
101+
102+
- Framework-specific patterns (React, Vue, Svelte, Angular, Next.js)
103+
- Token management (environment variables across frameworks)
104+
- Lifecycle management and cleanup (preventing memory leaks)
105+
- Mapbox Search JS integration
106+
- Common mistakes and how to avoid them
107+
- SSR handling (Angular Universal, Next.js)
108+
- Testing patterns for maps
109+
110+
**Based on:** Mapbox's official `create-web-app` scaffolding tool
111+
112+
[View skill →](./mapbox-integration-patterns/SKILL.md)
113+
86114
## How Skills Work with the MCP Server
87115

88116
The Mapbox MCP DevKit Server and Agent Skills work together:

0 commit comments

Comments
 (0)