← 返回 Skills 市场
157
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mapbox
功能描述
Build, debug, and integrate Mapbox apps and APIs, including Mapbox GL JS map setup, styles, sources/layers, markers/popups, geocoding, directions, static ima...
使用说明 (SKILL.md)
Mapbox
Use this skill for practical Mapbox platform work in web apps and API integrations.
Workflow
- Confirm the runtime first: plain HTML, Vite, React, Next.js, or another framework.
- Confirm which Mapbox surface is involved: GL JS map rendering, styles, tilesets, geocoding, directions, or static images.
- Start with the smallest working map before adding custom sources, layers, controls, or API calls.
- Keep access tokens out of source files and examples unless the user explicitly wants a local-only demo.
- For bugs, isolate whether the failure is in container sizing, token/scopes, style/source IDs, coordinate order, or layer order.
Implementation Guardrails
- Prefer
mapbox-glwith explicit imports and explicit CSS loading. - Always ensure the map container has a real height before debugging rendering.
- Use
lng, latorder consistently for Mapbox coordinate arrays. - Add sources before layers, and keep layer IDs stable so updates are easy.
- Prefer GeoJSON for lightweight overlays; move to vector tiles or tilesets for larger datasets.
- In React or other SPA frameworks, remove the map instance during teardown to avoid leaks.
- Treat the access token as configuration. Read it from environment or runtime config instead of hardcoding it.
Common Failure Checks
- Blank map: verify token, style URL, CSS import, and container height.
- Layer not visible: verify source exists, source-layer matches, zoom bounds, and paint/layout visibility.
- Wrong location: verify coordinate order and CRS assumptions; Mapbox expects WGS84
lng,lat. - Performance issues: reduce marker count, cluster point data, and prefer data-driven layers over many DOM markers.
- API failures: verify token scopes, endpoint type, rate limits, and request parameters.
Task Boundaries
- Use this skill for Mapbox-specific implementation, debugging, and integration patterns.
- For generic CRS/projection reasoning, use
projectorwgs84. - For deterministic desktop GIS batch processing, use
qgis. - For CesiumJS globe rendering, use
cesium.
OpenClaw + ClawHub Notes
- Keep examples generic, portable, and token-safe.
- Do not hardcode private datasets, private style URLs, or machine-specific paths.
- For clawhub.ai publication, keep content reproducible and semver-friendly; put detailed examples in references instead of bloating
SKILL.md.
Reference Docs In This Skill
- Read
{baseDir}/references/patterns.mdwhen generating or fixing Mapbox GL JS or API integration code.
安全使用建议
This skill appears coherent and Mapbox-focused. Before installing or using it: (1) don't paste real secret tokens into chat — provide scoped public tokens or use server-side tokens when possible; (2) verify any sample code uses environment/runtime configuration rather than hardcoding tokens; (3) if you plan to let the agent run autonomously, be aware the skill is allowed implicit invocation (default) but it doesn't request extra credentials or install code; (4) restrict Mapbox tokens by allowed URLs/scopes in the Mapbox dashboard and rotate tokens if you accidentally expose them.
功能分析
Type: OpenClaw Skill
Name: mapbox
Version: 1.0.0
The mapbox skill bundle provides legitimate instructions and code patterns for integrating Mapbox GL JS and APIs into web applications. It includes standard implementation guardrails, such as emphasizing token safety (using environment variables) and proper resource cleanup in React, with no evidence of malicious intent, data exfiltration, or prompt injection across SKILL.md or references/patterns.md.
能力评估
Purpose & Capability
Name/description (Mapbox integration, GL JS, styles, geocoding, directions) match the SKILL.md and the included reference patterns. There are no unexpected required binaries, install steps, or unrelated environment variables declared.
Instruction Scope
The SKILL.md and references are narrowly focused on Mapbox usage, debugging, and migration. It instructs the agent to read the included references/patterns.md and to use environment/runtime config for tokens. One small caution: examples show both process.env (server-side) and import.meta.env/VITE_MAPBOX_ACCESS_TOKEN (frontend build-time) — the latter can expose public tokens if used incorrectly. Overall the instructions do not ask the agent to read unrelated system files or exfiltrate data.
Install Mechanism
Instruction-only skill with no install spec and no code files that would be written to disk; lowest-risk install footprint.
Credentials
The skill does not declare any required env vars or credentials. The examples reference MAPBOX_ACCESS_TOKEN and VITE_MAPBOX_ACCESS_TOKEN, which is appropriate for Mapbox tasks, but users should ensure secret tokens stay server-side and public tokens are properly restricted (allowed URLs/scopes).
Persistence & Privilege
always is false and the skill does not request persistent system changes. agents/openai.yaml allows implicit invocation (normal default); combined with the lack of requested credentials or installs, this is not a meaningful risk here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mapbox - 安装完成后,直接呼叫该 Skill 的名称或使用
/mapbox触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Mapbox skill for building, debugging, and integrating Mapbox apps and APIs.
- Supports Mapbox GL JS setup, styles, sources/layers, geocoding, directions, static images, and token-safe frontend patterns.
- Provides troubleshooting guidance for common Mapbox issues and best practices for integration.
- Includes implementation guardrails and task boundaries for efficient and secure usage.
- 中文触发:支持中文环境下的Mapbox相关问题和指导。
元数据
常见问题
mapbox 是什么?
Build, debug, and integrate Mapbox apps and APIs, including Mapbox GL JS map setup, styles, sources/layers, markers/popups, geocoding, directions, static ima... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。
如何安装 mapbox?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mapbox」即可一键安装,无需额外配置。
mapbox 是免费的吗?
是的,mapbox 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
mapbox 支持哪些平台?
mapbox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 mapbox?
由 jvy(@jvy)开发并维护,当前版本 v1.0.0。
推荐 Skills