mapbox-cartography by mapbox/mapbox-agent-skills
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-cartography此技能提供专业的制图知识,帮助您使用 Mapbox 设计有效、美观且功能强大的地图。
地图必须引导观众的注意力到最重要的内容上:
实现方法:
色彩和谐:
色彩心理学:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
字体选择:
文字大小:
Place labels (cities, POIs): 11-14px
Street labels: 9-11px
Feature labels (parks): 10-12px
Map title: 16-20px
Attribution: 8-9px
标签放置:
了解您的受众:
用例优化:
平台考量:
图层顺序(从下到上):
常见错误: 开发者经常将他们应用的路线线或活动标记放在兴趣点符号下方,理由是“兴趣点必须保持可见”。这是本末倒置的——用户生成内容(您的路线、选定位置、用户位置)是最重要的图层,必须渲染在所有内容之上,包括兴趣点。路线线覆盖兴趣点图标是可以接受的;路线被兴趣点图标遮挡则不行。
缩放级别 0-4(世界到大陆):
缩放级别 5-8(国家到州):
缩放级别 9-11(都市区):
缩放级别 12-15(街区):
注意: Mapbox 托管的 Streets 样式默认在缩放级别 14 左右显示大多数兴趣点。对于自定义样式,建议从缩放级别 12 开始显示兴趣点——这是密度可控且用户正在浏览的街区尺度。缩放级别 14 太晚;缩放级别 10(都市区尺度)则太早,会造成严重的图标混乱。
缩放级别 16-22(街道级别):
浅色主题(日间/专业):
{
"background": "#f5f5f5",
"water": "#a0c8f0",
"parks": "#d4e7c5",
"roads": "#ffffff",
"buildings": "#e0e0e0",
"text": "#333333"
}
深色主题(夜间模式):
{
"background": "#1a1a1a",
"water": "#0d47a1",
"parks": "#2e7d32",
"roads": "#3a3a3a",
"buildings": "#2d2d2d",
"text": "#ffffff"
}
深色主题的道路颜色规则: 道路必须使用中性深灰色 (
#3a3a3a),与背景有明显区别但不着色。切勿使用琥珀色、蓝色或其他色调来设计道路样式——将颜色保留给应用数据层(路线、标记)。着色的基础道路和着色的数据层会在视觉上产生冲突。与背景融为一体的地方道路(#1e1e1e在#1a1a1a上)会造成“浮动标签”问题,即街道名称显示时下面没有可见的道路。
高对比度(可访问性):
{
"background": "#000000",
"water": "#0066ff",
"parks": "#00ff00",
"roads": "#ffffff",
"buildings": "#808080",
"text": "#ffffff"
}
复古风格:
{
"background": "#f4e8d0",
"water": "#b8d4d4",
"parks": "#c8d4a4",
"roads": "#d4c4a8",
"buildings": "#e4d4c4",
"text": "#4a3828"
}
需求:
建议:
需求:
建议:
需求:
建议:
需求:
建议:
样式性能:
加载速度:
检查清单:
在以下情况下调用此技能:
每周安装数
332
代码仓库
GitHub 星标数
35
首次出现
2026年2月2日
安全审计
安装于
opencode301
codex299
gemini-cli297
github-copilot290
amp279
kimi-cli279
This skill provides expert cartographic knowledge to help you design effective, beautiful, and functional maps using Mapbox.
Maps must guide the viewer's attention to what matters most:
Implementation:
Color Harmony:
Color Psychology:
Accessibility:
Font Selection:
Text Sizing:
Place labels (cities, POIs): 11-14px
Street labels: 9-11px
Feature labels (parks): 10-12px
Map title: 16-20px
Attribution: 8-9px
Label Placement:
Know Your Audience:
Use Case Optimization:
Platform Considerations:
Layer Ordering (bottom to top):
Common mistake: Developers often put their app's route line or active markers below POI symbols, reasoning that "POIs must stay visible." This is backwards — user-generated content (your route, selected location, user position) is the most important layer and must render above everything, including POIs. A route line that covers a POI icon is acceptable; a route obscured by POI icons is not.
Zoom 0-4 (World to Continent):
Zoom 5-8 (Country to State):
Zoom 9-11 (Metro Area):
Zoom 12-15 (Neighborhood):
Note: Mapbox's hosted Streets style defaults to showing most POIs around zoom 14. For custom styles, start POIs at zoom 12 — this is the neighborhood scale where density is manageable and users are browsing. Zoom 14 is late; zoom 10 (metro-area scale) is far too early and creates severe icon clutter.
Zoom 16-22 (Street Level):
Light Theme (Day/Professional):
{
"background": "#f5f5f5",
"water": "#a0c8f0",
"parks": "#d4e7c5",
"roads": "#ffffff",
"buildings": "#e0e0e0",
"text": "#333333"
}
Dark Theme (Night Mode):
{
"background": "#1a1a1a",
"water": "#0d47a1",
"parks": "#2e7d32",
"roads": "#3a3a3a",
"buildings": "#2d2d2d",
"text": "#ffffff"
}
Road color rule for dark themes: Roads must use neutral dark gray (
#3a3a3a), visibly distinct from the background but not colored. Never style roads with amber, blue, or other hues — reserve color for app data layers (routes, markers). Colored base roads and colored data layers will compete visually. Local roads that blend into the background (#1e1e1eon#1a1a1a) create a "floating labels" problem where street names appear with no visible road beneath them.
High Contrast (Accessibility):
{
"background": "#000000",
"water": "#0066ff",
"parks": "#00ff00",
"roads": "#ffffff",
"buildings": "#808080",
"text": "#ffffff"
}
Vintage/Retro:
{
"background": "#f4e8d0",
"water": "#b8d4d4",
"parks": "#c8d4a4",
"roads": "#d4c4a8",
"buildings": "#e4d4c4",
"text": "#4a3828"
}
Requirements:
Recommendations:
Requirements:
Recommendations:
Requirements:
Recommendations:
Requirements:
Recommendations:
Style Performance:
Loading Speed:
Checklist:
Invoke this skill when:
Weekly Installs
332
Repository
GitHub Stars
35
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode301
codex299
gemini-cli297
github-copilot290
amp279
kimi-cli279
前端设计技能指南:避免AI垃圾美学,打造独特生产级界面
36,100 周安装