← 返回 Skills 市场
🔌

Mapbox Cartography

作者 Mapbox · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
105
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mapbox-cartography
功能描述
Expert guidance on map design principles, color theory, visual hierarchy, typography, and cartographic best practices for creating effective and beautiful ma...
使用说明 (SKILL.md)

Mapbox Cartography Skill

This skill provides expert cartographic knowledge to help you design effective, beautiful, and functional maps using Mapbox.

Core Cartographic Principles

Visual Hierarchy

Maps must guide the viewer's attention to what matters most:

  • Most important: POIs, user location, route highlights
  • Secondary: Major roads, city labels, landmarks
  • Tertiary: Minor streets, administrative boundaries
  • Background: Water, land use, terrain

Implementation:

  • Use size, color intensity, and contrast to establish hierarchy
  • Primary features: high contrast, larger symbols, bold colors
  • Background features: low contrast, muted colors, smaller text

Color Theory for Maps

Color Harmony:

  • Analogous colors: Use colors next to each other on color wheel (blue-green-teal) for cohesive designs
  • Complementary colors: Use opposite colors (blue/orange, red/green) for high contrast emphasis
  • Monochromatic: Single hue with varying saturation/brightness for elegant, minimal designs

Color Psychology:

  • Blue: Water, trust, calm, professional (default for water bodies)
  • Green: Parks, nature, growth, eco-friendly (vegetation, parks)
  • Red/Orange: Urgent, important, dining (alerts, restaurants)
  • Yellow: Caution, highlight, attention (warnings, selected items)
  • Gray: Neutral, background, roads (infrastructure)

Accessibility:

  • Ensure 4.5:1 contrast ratio for text (WCAG AA)
  • Don't rely solely on color to convey information
  • Test designs with colorblind simulators
  • Avoid red/green combinations for critical distinctions

Color Palette Templates:

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 (#1e1e1e on #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"
}

Typography at Map Scale

Font Selection:

  • Sans-serif (Roboto, Open Sans): Modern, clean, high legibility at small sizes - use for labels
  • Serif (Noto Serif): Traditional, formal - use sparingly for titles or historic maps
  • Monospace: Technical data, coordinates

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:

  • Point labels: Center or slightly offset (avoid overlap with symbol)
  • Line labels: Follow line curve, repeat for long features
  • Area labels: Center in polygon, sized appropriately
  • Prioritize: Major features get labels first, minor features labeled if space allows

Zoom Level Strategy

Zoom 0-4 (World to Continent):

  • Major country boundaries
  • Ocean and sea labels
  • Capital cities only

Zoom 5-8 (Country to State):

  • State/province boundaries
  • Major cities
  • Major highways
  • Large water bodies

Zoom 9-11 (Metro Area):

  • City boundaries
  • Neighborhoods
  • All highways and major roads
  • Parks and landmarks

Zoom 12-15 (Neighborhood):

  • All streets
  • Building footprints
  • POIs (restaurants, shops)
  • Street names

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):

  • All detail
  • House numbers
  • Parking lots
  • Fine-grained POIs

Mapbox-Specific Implementation Guidance

Style Layer Best Practices

Layer Ordering (bottom to top):

  1. Background (solid color or pattern)
  2. Landuse (parks, residential, commercial)
  3. Water bodies (oceans, lakes, rivers)
  4. Terrain/hillshade (if using elevation)
  5. Buildings (3D or 2D footprints)
  6. Roads (highways → local streets)
  7. Borders (country, state lines)
  8. Labels (place names, street names)
  9. POI symbols
  10. User-generated content (routes, markers)

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.

Map Context Considerations

Know Your Audience:

  • General public: Simplify, use familiar patterns (Google/Apple style)
  • Technical users: Include more detail, technical layers, data precision
  • Domain experts: Show specialized data, use domain-specific symbology

Platform Considerations:

  • Mobile: Larger touch targets (44x44px minimum), simpler designs, readable at arm's length
  • Desktop: Can include more detail, hover interactions, complex overlays
  • Print: Higher contrast, larger text, consider CMYK color space
  • Outdoor/Bright: Higher contrast, avoid subtle grays

Use Case Optimization:

  • Navigation: Emphasize roads, clear hierarchy, route visibility
  • Data visualization: Muted base map, let data stand out
  • Storytelling: Guide viewer attention, establish mood with colors
  • Location selection: Show POIs clearly, provide context
  • Analysis: Include relevant layers, maintain clarity at different zooms

Reference Files

For detailed guidance on specific topics, load these references as needed:

  • references/scenarios.md — Common scenario guidance (Restaurant Finder, Real Estate, Data Visualization, Navigation)
  • references/performance-testing.md — Performance optimization, testing checklist, and common mistakes to avoid

When to Use This Skill

Invoke this skill when:

  • Designing a new map style
  • Choosing colors for map elements
  • Making decisions about visual hierarchy
  • Optimizing for specific use cases
  • Troubleshooting visibility issues
  • Ensuring accessibility
  • Creating themed maps (dark mode, vintage, etc.)
安全使用建议
This skill is documentation-only and appears internally consistent with its map-design purpose. It does not request credentials or install code, so it cannot exfiltrate secrets or modify your system. Before relying on it in production: verify the author/source (no homepage is listed), confirm Mapbox license/branding requirements for any derived styles, and test the suggested palettes and layer orders with your real data and accessibility tools. If you need stronger assurance, ask the publisher for contact info or a changelog/history to confirm maintenance and provenance.
功能分析
Type: OpenClaw Skill Name: mapbox-cartography Version: 1.0.0 The skill bundle provides legitimate and high-quality cartographic guidance for Mapbox design, covering visual hierarchy, color theory, and zoom-level strategies. The instructions in SKILL.md and AGENTS.md are strictly aligned with the stated purpose of expert map design, and there is no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name and description match the included files and SKILL.md: cartographic guidance, color palettes, typography, layer ordering, and zoom strategies. The skill declares no binaries, env vars, or config paths — which is appropriate for a documentation-style cartography skill. (Registry metadata lacks a homepage, but that does not create a capability mismatch.)
Instruction Scope
SKILL.md and other files contain only map-design recommendations, code snippets for style JSON/expressions, testing checklists, and scenario advice. There are no instructions to read system files, access environment variables, call external endpoints, or transmit user data.
Install Mechanism
No install spec and no code files are present beyond static documentation — lowest-risk model (instruction-only). Nothing will be written to disk or downloaded by an installer.
Credentials
The skill requires no environment variables, credentials, or config paths. That is proportionate for static cartographic guidance and avoids unnecessary access to secrets or external services.
Persistence & Privilege
always:false and default autonomous invocation are set (normal). The skill does not request persistent system privileges, modify other skills, or access other skills' credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mapbox-cartography
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mapbox-cartography 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of mapbox-cartography skill: - Provides expert guidance on map design principles, color theory, visual hierarchy, typography, and cartographic best practices for Mapbox. - Includes practical advice for color palettes, layer ordering, and zoom-level strategies. - Offers accessibility recommendations and sample themes (light, dark, high-contrast, vintage). - Outlines best practices for map context (mobile, desktop, print) and various map use cases. - Reference files available for scenario-based guidance and performance tips.
元数据
Slug mapbox-cartography
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Mapbox Cartography 是什么?

Expert guidance on map design principles, color theory, visual hierarchy, typography, and cartographic best practices for creating effective and beautiful ma... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 105 次。

如何安装 Mapbox Cartography?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mapbox-cartography」即可一键安装,无需额外配置。

Mapbox Cartography 是免费的吗?

是的,Mapbox Cartography 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Mapbox Cartography 支持哪些平台?

Mapbox Cartography 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Mapbox Cartography?

由 Mapbox(@mapbox)开发并维护,当前版本 v1.0.0。

💬 留言讨论