← Back to Skills Marketplace
jvy

mapbox

by jvy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
157
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install mapbox
Description
Build, debug, and integrate Mapbox apps and APIs, including Mapbox GL JS map setup, styles, sources/layers, markers/popups, geocoding, directions, static ima...
README (SKILL.md)

Mapbox

Use this skill for practical Mapbox platform work in web apps and API integrations.

Workflow

  1. Confirm the runtime first: plain HTML, Vite, React, Next.js, or another framework.
  2. Confirm which Mapbox surface is involved: GL JS map rendering, styles, tilesets, geocoding, directions, or static images.
  3. Start with the smallest working map before adding custom sources, layers, controls, or API calls.
  4. Keep access tokens out of source files and examples unless the user explicitly wants a local-only demo.
  5. For bugs, isolate whether the failure is in container sizing, token/scopes, style/source IDs, coordinate order, or layer order.

Implementation Guardrails

  • Prefer mapbox-gl with explicit imports and explicit CSS loading.
  • Always ensure the map container has a real height before debugging rendering.
  • Use lng, lat order 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 project or wgs84.
  • 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.md when generating or fixing Mapbox GL JS or API integration code.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mapbox
  3. After installation, invoke the skill by name or use /mapbox
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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相关问题和指导。
Metadata
Slug mapbox
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is mapbox?

Build, debug, and integrate Mapbox apps and APIs, including Mapbox GL JS map setup, styles, sources/layers, markers/popups, geocoding, directions, static ima... It is an AI Agent Skill for Claude Code / OpenClaw, with 157 downloads so far.

How do I install mapbox?

Run "/install mapbox" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is mapbox free?

Yes, mapbox is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does mapbox support?

mapbox is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created mapbox?

It is built and maintained by jvy (@jvy); the current version is v1.0.0.

💬 Comments