Commit e4c77d9
committed
[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 Code1 parent 1c28536 commit e4c77d9
3 files changed
+892
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
86 | 114 | | |
87 | 115 | | |
88 | 116 | | |
| |||
0 commit comments