Token导航 LogoToken导航

Agent Skill · 研究检索

mapbox-geospatial-operations(Mapbox 地理空间操作)

mapbox-geospatial-operations 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

mapbox-geospatial-operations 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 7,976。

总安装 17,522周安装 702GitHub Stars 47下载 5,672核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mapbox-geospatial-operations(Mapbox 地理空间操作)
来源仓库:https://github.com/mapbox/mapbox-agent-skills
仓库路径:skills/mapbox-geospatial-operations
安装命令:
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-geospatial-operations
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-geospatial-operations

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。支持基于关键词、任务场景或来源线索进行信息检索与筛选。通过 npx skills add 命令从 GitHub 仓库安装使用。建议确认权限范围和维护状态,避免触发联网或文件读写操作。

mapbox-geospatial-operations 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/mapbox-geospatial-operations

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-geos…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mapbox-geospatial-operations 怎么安装?

在终端执行 npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-geospatial-ope…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mapbox-geospatial-operations 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

mapbox-geospatial-operations 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

mapbox-geospatial-operations 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

mapbox-geospatial-operations 用的人多吗?

公开数据是累计安装 17,522 次,近一周安装 702 次,下载 5,672 次,GitHub 47 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

mapbox-geospatial-operations 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
mapbox-geospatial-operations

Mapbox 地理空间操作 · 本页

17,52247调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Mapbox Geospatial Operations Skill

Expert guidance for AI assistants on choosing the right geospatial tools from the Mapbox MCP Server. Focuses on selecting tools based on what the problem requires - geometric calculations vs routing, straight-line vs road network, and accuracy needs.

Core Principle: Problem Type Determines Tool Choice

The Mapbox MCP Server provides two categories of geospatial tools:

  1. Offline Geometric Tools - Use Turf.js for pure geometric/spatial calculations
  2. Routing & Navigation APIs - Use Mapbox APIs when you need real-world routing, traffic, or travel times

The key question: What does the problem actually require?

Decision Framework

Problem CharacteristicTool CategoryWhy
Straight-line distance (as the crow flies)Offline geometricAccurate for geometric distance
Road/path distance (as the crow drives)Routing APIOnly routing APIs know road networks
Travel timeRouting APIRequires routing with speed/traffic data
Point containment (is X inside Y?)Offline geometricPure geometric operation
Geographic shapes (buffers, centroids, areas)Offline geometricMathematical/geometric operations
Traffic-aware routingRouting APIRequires real-time traffic data
Route optimization (best order to visit)Routing APIComplex routing algorithm
High-frequency checks (e.g., real-time geofencing)Offline geometricInstant response, no latency

Decision Matrices by Use Case

Distance Calculations

User asks: "How far is X from Y?"

What They Actually MeanTool ChoiceWhy
Straight-line distance (as the crow flies)distance_toolAccurate for geometric distance, instant
Driving distance (as the crow drives)directions_toolOnly routing knows actual road distance
Walking/cycling distance (as the crow walks/bikes)directions_toolNeed specific path network
Travel timedirections_tool or matrix_toolRequires routing with speed data
Distance with current trafficdirections_tool (driving-traffic)Need real-time traffic consideration

Example: "What's the distance between these 5 warehouses?"

  • As the crow flies → distance_tool (10 calculations, instant)
  • As the crow drives → matrix_tool (5×5 matrix, one API call, returns actual route distances)

Key insight: Use the tool that matches what "distance" means in context. Always clarify: crow flies or crow drives?

Proximity and Containment

User asks: "Which points are near/inside this area?"

Query TypeTool ChoiceWhy
"Within X meters radius"distance_tool + filterSimple geometric radius
"Within X minutes drive"isochrone_tool → point_in_polygon_toolNeed routing for travel-time zone, then geometric containment
"Inside this polygon"point_in_polygon_toolPure geometric containment test
"Reachable by car in 30 min"isochrone_toolRequires routing + traffic
"Nearest to this point"distance_tool (geometric) or matrix_tool (routed)Depends on definition of "nearest"

Example: "Are these 200 addresses in our 30-minute delivery zone?"

  1. Create zone → isochrone_tool (routing API - need travel time)
  2. Check addresses → point_in_polygon_tool (geometric - 200 instant checks)

Key insight: Routing for creating travel-time zones, geometric for containment checks

Routing and Navigation

User asks: "What's the best route?"

ScenarioTool ChoiceWhy
A to B directionsdirections_toolTurn-by-turn routing
Optimal order for multiple stopsoptimization_toolSolves traveling salesman problem
Clean GPS tracemap_matching_toolSnaps to road network
Just need bearing/compass directionbearing_toolSimple geometric calculation
Route with trafficdirections_tool (driving-traffic)Real-time traffic awareness
Fixed-order waypointsdirections_tool with waypointsRouting through specific points

Example: "Navigate from hotel to airport"

  • Need turn-by-turn → directions_tool
  • Just need to know "it's northeast" → bearing_tool

Key insight: Routing tools for actual navigation, geometric tools for directional info

Area and Shape Operations

User asks: "Create a zone around this location"

RequirementTool ChoiceWhy
Simple circular bufferbuffer_toolGeometric circle/radius
Travel-time zoneisochrone_toolBased on routing network
Calculate area sizearea_toolGeometric calculation
Simplify complex boundarysimplify_toolGeometric simplification
Find center of shapecentroid_toolGeometric centroid

Example: "Show 5km coverage around each store"

  • 5km radius → buffer_tool (geometric circles)
  • "What customers can reach in 15 min?" → isochrone_tool (routing-based)

Key insight: Geometric tools for distance-based zones, routing tools for time-based zones

Performance and Scale Considerations

When Volume Affects Tool Choice

Small operations (< 100 calculations):

  • Geometric tools: Instant, iterate freely
  • Routing APIs: Fast enough for most uses

Medium operations (100-1,000 calculations):

  • Geometric tools: Still fast, no concerns
  • Routing APIs: Consider batch operations (matrix_tool)

Large operations (> 1,000 calculations):

  • Geometric tools: May need optimization but still fast
  • Routing APIs: Definitely use batch tools (matrix_tool handles up to 25×25)

Key insight: Volume rarely affects geometric tool choice, but routing APIs have batch tools for efficiency

Real-Time vs Batch

Use CaseApproachTool Choice
Real-time geofencing (every second)Geometric checkspoint_in_polygon_tool (instant)
Route planning (one-time)Full routingdirections_tool or optimization_tool
Periodic proximity checksGeometric distancedistance_tool
Live traffic routingRouting with trafficdirections_tool (driving-traffic)

Architecture note for high-frequency geofencing: If the application calls containment checks at very high rates (e.g., 50 vehicles every 2 seconds = 25 checks/second), calling MCP tools over the network adds agent-reasoning overhead that makes it impractical. In those cases, recommend using Turf.js directly in-process (turf.booleanPointInPolygon) for the hot path, and reserve MCP tools for peripheral tasks like zone definition (isochrone_tool), rerouting (directions_tool), or visualization (static_map_image_tool).

Common Scenarios and Optimal Approaches

Scenario 1: Store Locator

User: "Find the closest store and show 5km coverage"

Optimal approach:

  1. Search stores → category_search_tool (returns distances automatically)
  2. Create coverage zone → buffer_tool (5km geometric circle)
  3. Visualize → static_map_image_tool

Why: Search already gives distances; geometric buffer for simple radius

Scenario 2: Delivery Route Optimization

User: "Optimize delivery to 8 addresses / stops"

Optimal approach:

  1. Geocode addresses (if needed) → Use search_and_geocode_tool to convert any street addresses to coordinates. Even when coordinates are already provided, mention this as an optional pre-step — real-world delivery lists often contain a mix of addresses and coordinates.
  2. Optimize route → optimization_tool (TSP solver — reorders stops to minimize total drive time)

Why optimization_tool and NOT these alternatives:

  • directions_tool only routes A → B (or through fixed-order waypoints). It does NOT reorder stops — if you pass 8 stops, it routes them in the order given, which is almost never optimal.
  • matrix_tool gives travel times between all pairs of stops (8×8 = 64 values), but it does NOT compute the optimal ordering. You'd need to solve TSP yourself on top of the matrix — optimization_tool does this for you in one call.

Always mention search_and_geocode_tool as a useful companion for geocoding delivery addresses before optimization.

Scenario 3: Service Area Validation

User: "Which of these 200 addresses can we deliver to in 30 minutes?"

Optimal approach:

  1. Create delivery zone → isochrone_tool (30-minute driving)
  2. Check each address → point_in_polygon_tool (200 geometric checks)

Why: Routing for accurate travel-time zone, geometric for fast containment checks

Scenario 4: GPS Trace Analysis

User: "How long was this bike ride?"

Optimal approach:

  1. Clean GPS trace → map_matching_tool (snap to bike paths)
  2. Get distance → Use API response or calculate with distance_tool

Why: Need road/path matching; distance calculation either way works

Scenario 5: Coverage Analysis

User: "What's our total service area?"

Optimal approach:

  1. Create buffers around each location → buffer_tool
  2. Calculate total area → area_tool
  3. Or, if time-based → isochrone_tool for each location

Why: Geometric for distance-based coverage, routing for time-based

Anti-Patterns: Using the Wrong Tool Type

❌ Don't: Use geometric tools for routing questions

// WRONG: User asks "how long to drive there?"
distance_tool({ from: A, to: B });
// Returns 10km as the crow flies, but actual drive is 15km

// CORRECT: Need routing for driving distance
directions_tool({
  coordinates: [
    { longitude: A[0], latitude: A[1] },
    { longitude: B[0], latitude: B[1] }
  ],
  routing_profile: 'mapbox/driving'
});
// Returns actual road distance and drive time as the crow drives

Why wrong: As the crow flies ≠ as the crow drives

❌ Don't: Use routing APIs for geometric operations

// WRONG: Check if point is in polygon
// (Can't do this with routing APIs)

// CORRECT: Pure geometric operation
point_in_polygon_tool({ point: location, polygon: boundary });

Why wrong: Routing APIs don't do geometric containment

❌ Don't: Confuse "near" with "reachable"

// User asks: "What's reachable in 20 minutes?"

// WRONG: 20-minute distance at average speed
distance_tool + calculate 20min * avg_speed

// CORRECT: Actual routing with road network
isochrone_tool({
  coordinates: {longitude: startLng, latitude: startLat},
  contours_minutes: [20],
  profile: "mapbox/driving"
})

Why wrong: Roads aren't straight lines; traffic varies

❌ Don't: Use routing when bearing is sufficient

// User asks: "Which direction is the airport?"

// OVERCOMPLICATED: Full routing
directions_tool({
  coordinates: [
    { longitude: hotel[0], latitude: hotel[1] },
    { longitude: airport[0], latitude: airport[1] }
  ]
});

// BETTER: Just need bearing
bearing_tool({ from: hotel, to: airport });
// Returns: "Northeast (45°)"

Why better: Simpler, instant, answers the actual question

Hybrid Approaches: Combining Tool Types

Some problems benefit from using both geometric and routing tools:

Pattern 1: Routing + Geometric Filter

1. directions_tool → Get route geometry
2. buffer_tool → Create corridor around route
3. category_search_tool → Find POIs in corridor
4. point_in_polygon_tool → Filter to those actually along route

Use case: "Find gas stations along my route"

Pattern 2: Routing + Distance Calculation

1. category_search_tool → Find 10 nearby locations
2. distance_tool → Calculate straight-line distances (geometric)
3. For top 3, use directions_tool → Get actual driving time

Use case: Quickly narrow down, then get precise routing for finalists

Pattern 3: Isochrone + Containment

1. isochrone_tool → Create travel-time zone (routing)
2. point_in_polygon_tool → Check hundreds of addresses (geometric)

Use case: "Which customers are in our delivery zone?"

Decision Algorithm

When user asks a geospatial question:

1. Does it require routing, roads, or travel times?
   YES → Use routing API (directions, matrix, isochrone, optimization)
   NO → Continue

2. Does it require traffic awareness?
   YES → Use directions_tool or isochrone_tool with traffic profile
   NO → Continue

3. Is it a geometric/spatial operation?
   - Distance between points (straight-line) → distance_tool
   - Point containment → point_in_polygon_tool
   - Area calculation → area_tool
   - Buffer/zone → buffer_tool
   - Direction/bearing → bearing_tool
   - Geometric center → centroid_tool
   - Bounding box → bounding_box_tool
   - Simplification → simplify_tool

4. Is it a search/discovery operation?
   YES → Use search tools (search_and_geocode, category_search)

Key Decision Questions

Before choosing a tool, ask:

  1. Does "distance" mean as the crow flies or as the crow drives?

- As the crow flies (straight-line) → geometric tools - As the crow drives (road distance) → routing APIs

  1. Does the user need travel time?

- Yes → routing APIs (only they know speeds/traffic) - No → geometric tools may suffice

  1. Is this about roads/paths or pure spatial relationships?

- Roads/paths → routing APIs - Spatial relationships → geometric tools

  1. Does this need to happen in real-time with low latency?

- Yes + geometric problem → offline tools (instant) - Yes + routing problem → use routing APIs (still fast)

  1. Is accuracy critical, or is approximation OK?

- Critical + routing → routing APIs - Approximation OK → geometric tools may work

Terminology Guide

Understanding what users mean:

User SaysUsually MeansTool Type
"Distance"Context-dependent! Ask: crow flies or crow drives?Varies
"How far"Often as the crow drives (road distance)Routing API
"Nearby"Usually as the crow flies (straight-line radius)Geometric
"Close"Could be either - clarify!Ask
"Reachable"Travel-time based (crow drives with traffic)Routing API
"Inside/contains"Geometric containmentGeometric
"Navigate/directions"Turn-by-turn routingRouting API
"Bearing/direction"Compass direction (crow flies)Geometric

Quick Reference

Geometric Operations (Offline Tools)

  • distance_tool - Straight-line distance between two points
  • bearing_tool - Compass direction from A to B
  • midpoint_tool - Midpoint between two points
  • point_in_polygon_tool - Is point inside polygon?
  • area_tool - Calculate polygon area
  • buffer_tool - Create circular buffer/zone
  • centroid_tool - Geometric center of polygon
  • bbox_tool - Min/max coordinates of geometry
  • simplify_tool - Reduce geometry complexity

Routing & Navigation (APIs)

  • directions_tool - Turn-by-turn routing
  • matrix_tool - Many-to-many travel times
  • optimization_tool - Route optimization (TSP)
  • isochrone_tool - Travel-time zones
  • map_matching_tool - Snap GPS to roads

When to Use Each Category

Use Geometric Tools When:

  • Problem is spatial/mathematical (containment, area, bearing)
  • Straight-line distance is appropriate
  • Need instant results for real-time checks
  • Pure geometry (no roads/traffic involved)

Use Routing APIs When:

  • Need actual driving/walking/cycling distances
  • Need travel times
  • Need to consider road networks
  • Need traffic awareness
  • Need route optimization
  • Need turn-by-turn directions

Integration with Other Skills

Works with:

  • mapbox-search-patterns: Search for locations, then use geospatial operations
  • mapbox-web-performance-patterns: Optimize rendering of geometric calculations
  • mapbox-token-security: Ensure requests use properly scoped tokens

Resources

平台分布

Codex

33.44%
按下载量换算1,897

Claude

31.5%
按下载量换算1,787

Cursor

17.55%
按下载量换算995

Gemini CLI

8.24%
按下载量换算467

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills