[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFEWXJBWZTSD6GHP0CDQEH":3,"skill-same:01M6EFEWXJBWZTSD6GHP0CDQEH":77},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFEWXJBWZTSD6GHP0CDQEH","mapbox",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmapbox\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Mapbox — Custom Interactive Maps\n\n## Overview\n\nYou are an expert in Mapbox, the platform for custom interactive maps, geocoding, navigation, and geospatial data visualization. You help developers build location-aware applications with custom map styles, markers, layers, 3D terrain, route planning, and real-time location tracking using Mapbox GL JS and the Mapbox APIs.\n\n## Instructions\n\n### Basic Map\n\n```typescript\n\u002F\u002F React integration with react-map-gl\nimport Map, { Marker, Popup, NavigationControl, Source, Layer } from \"react-map-gl\";\nimport \"mapbox-gl\u002Fdist\u002Fmapbox-gl.css\";\n\nfunction StoreLocator() {\n  const [selectedStore, setSelectedStore] = useState(null);\n\n  return (\n    \u003CMap\n      mapboxAccessToken={process.env.NEXT_PUBLIC_MAPBOX_TOKEN}\n      initialViewState={{ longitude: -73.98, latitude: 40.75, zoom: 12 }}\n      style={{ width: \"100%\", height: \"100vh\" }}\n      mapStyle=\"mapbox:\u002F\u002Fstyles\u002Fmapbox\u002Flight-v11\"\n    >\n      \u003CNavigationControl position=\"top-right\" \u002F>\n\n      {stores.map((store) => (\n        \u003CMarker\n          key={store.id}\n          longitude={store.lng}\n          latitude={store.lat}\n          onClick={() => setSelectedStore(store)}\n        >\n          \u003Cdiv className=\"store-pin\">?\u003C\u002Fdiv>\n        \u003C\u002FMarker>\n      ))}\n\n      {selectedStore && (\n        \u003CPopup\n          longitude={selectedStore.lng}\n          latitude={selectedStore.lat}\n          onClose={() => setSelectedStore(null)}\n        >\n          \u003Ch3>{selectedStore.name}\u003C\u002Fh3>\n          \u003Cp>{selectedStore.address}\u003C\u002Fp>\n          \u003Cp>Open: {selectedStore.hours}\u003C\u002Fp>\n        \u003C\u002FPopup>\n      )}\n    \u003C\u002FMap>\n  );\n}\n```\n\n### Data Layers\n\n```typescript\n\u002F\u002F Heatmap layer for density visualization\nfunction DeliveryHeatmap({ deliveries }) {\n  const geojson = {\n    type: \"FeatureCollection\",\n    features: deliveries.map((d) => ({\n      type: \"Feature\",\n      geometry: { type: \"Point\", coordinates: [d.lng, d.lat] },\n      properties: { weight: d.orderCount },\n    })),\n  };\n\n  return (\n    \u003CMap mapboxAccessToken={TOKEN} mapStyle=\"mapbox:\u002F\u002Fstyles\u002Fmapbox\u002Fdark-v11\"\n         initialViewState={{ longitude: -73.98, latitude: 40.75, zoom: 11 }}>\n      \u003CSource type=\"geojson\" data={geojson}>\n        \u003CLayer\n          type=\"heatmap\"\n          paint={{\n            \"heatmap-weight\": [\"get\", \"weight\"],\n            \"heatmap-intensity\": [\"interpolate\", [\"linear\"], [\"zoom\"], 0, 1, 15, 3],\n            \"heatmap-radius\": [\"interpolate\", [\"linear\"], [\"zoom\"], 0, 5, 15, 30],\n            \"heatmap-color\": [\n              \"interpolate\", [\"linear\"], [\"heatmap-density\"],\n              0, \"rgba(0,0,255,0)\", 0.2, \"blue\", 0.4, \"cyan\",\n              0.6, \"lime\", 0.8, \"yellow\", 1, \"red\",\n            ],\n          }}\n        \u002F>\n      \u003C\u002FSource>\n    \u003C\u002FMap>\n  );\n}\n```\n\n### Geocoding and Directions\n\n```typescript\n\u002F\u002F Geocoding API — address to coordinates\nconst geocode = async (address: string) => {\n  const res = await fetch(\n    `https:\u002F\u002Fapi.mapbox.com\u002Fgeocoding\u002Fv5\u002Fmapbox.places\u002F${encodeURIComponent(address)}.json?access_token=${TOKEN}`\n  );\n  const data = await res.json();\n  const [lng, lat] = data.features[0].center;\n  return { lng, lat, place_name: data.features[0].place_name };\n};\n\n\u002F\u002F Directions API — route between two points\nconst getRoute = async (start: [number, number], end: [number, number]) => {\n  const res = await fetch(\n    `https:\u002F\u002Fapi.mapbox.com\u002Fdirections\u002Fv5\u002Fmapbox\u002Fdriving\u002F${start.join(\",\")};${end.join(\",\")}?geometries=geojson&access_token=${TOKEN}`\n  );\n  const data = await res.json();\n  return {\n    route: data.routes[0].geometry,       \u002F\u002F GeoJSON LineString\n    duration: data.routes[0].duration,     \u002F\u002F seconds\n    distance: data.routes[0].distance,     \u002F\u002F meters\n  };\n};\n```\n\n## Installation\n\n```bash\nnpm install mapbox-gl react-map-gl\n# Get access token at https:\u002F\u002Faccount.mapbox.com\u002F\n```\n\n## Examples\n\n**Example 1: User asks to set up mapbox**\n\nUser: \"Help me set up mapbox for my project\"\n\nThe agent should:\n1. Check system requirements and prerequisites\n2. Install or configure mapbox\n3. Set up initial project structure\n4. Verify the setup works correctly\n\n**Example 2: User asks to build a feature with mapbox**\n\nUser: \"Create a dashboard using mapbox\"\n\nThe agent should:\n1. Scaffold the component or configuration\n2. Connect to the appropriate data source\n3. Implement the requested feature\n4. Test and validate the output\n\n## Guidelines\n\n1. **Custom map styles** — Use Mapbox Studio to create branded map styles; match your app's design language\n2. **Clustering for markers** — Use `cluster` property on GeoJSON sources when displaying 100+ points; prevents visual clutter\n3. **react-map-gl for React** — Use the official React wrapper; it handles lifecycle, state sync, and TypeScript types\n4. **Lazy load maps** — Maps are heavy (~200KB); lazy load the map component; show a placeholder during load\n5. **Tile-based layers** — For large datasets (10K+ points), use vector tiles instead of GeoJSON; much better performance\n6. **Geocoding with autocomplete** — Use the Geocoding API with the `autocomplete=true` parameter for search-as-you-type address input\n7. **3D terrain** — Enable terrain with `map.setTerrain({ source: \"mapbox-dem\" })` for topographic visualizations\n8. **Rate limits** — Mapbox has generous free tiers (50K loads\u002Fmonth for GL JS); monitor usage to avoid surprise bills\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fmapbox",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill mapbox",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill mapbox",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill mapbox","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmapbox\u002FSKILL.md",true,[45,51,55,59,63,67,73],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fframe-template.html","SCRIPT","脚本",8094,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fframe-template.html",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fhelper.js",5615,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fhelper.js",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fserver.cjs",25693,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fserver.cjs",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fstart-server.sh",6908,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fstart-server.sh",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fstop-server.sh",3263,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fstop-server.sh",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"spec-document-reviewer-prompt.md","REFERENCE","参考文档",1747,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fspec-document-reviewer-prompt.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"visual-companion.md",13298,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fbrainstorming\u002Fvisual-companion.md",[78,87,96,105,111,117],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[84,85,86],"model","model hierarchy","model hierarchy skill",{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[93,94,95],"MCP","zoom","zoom mcp",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[102,103,104,94],"sdk","zoom apps sdk","apps",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[107],{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[119]]