Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill maplibre-gl-jsgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-gl-js)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-gl-js"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/maplibre-gl-js/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-gl-js"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/maplibre-gl-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00114 | $0.06577 |
| Opus 5.5 | $0.00046 | $0.02631 |
| Sonnet 5.5 | $0.00023 | $0.01315 |
| Haiku 4.5 | $0.00011 | $0.00658 |
Grade A, and why
maplibre-gl-js scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -o /dev/null -w '%{http_code}\n' https://cdn.jsdelivr.net/npm/[email protected]/dist/maplibre-gl.mjs How it starts
The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/maplibre/maplibre-gl-js
官方文档: https://maplibre.org/maplibre-gl-js/docs/
API 参考: https://maplibre.org/maplibre-gl-js/docs/API/
样式规范: https://maplibre.org/maplibre-style-spec/
最新版本: 6.17.0(截至 2026-11,npm
maplibre-gldist-taglatest;GitHub Releases 同步)许可证: BSD-3-Clause(v6 起的发行物为 ESM-only,UMD 构建已移除)
概述
MapLibre GL JS 是基于 WebGL2 的矢量瓦片地图渲染库,源自 Mapbox GL JS v1 的 BSD 分支,现由 MapLibre 社区独立维护。样式由 Style Spec JSON 驱动,客户端按需请求矢量瓦片、字体与精灵图,再用 GPU 逐帧绘制,因此缩放平滑、样式可运行时改动,且不需要任何商业 token。
- 矢量瓦片渲染:MVT 瓦片 + 客户端样式,任意缩放级别清晰;同时支持栅格瓦片与 GeoJSON 源
- Style Spec 样式规范:sources / layers / expressions 全部 JSON 化,可版本化、可服务端下发
- 数据驱动样式:表达式按要素属性、
zoom、feature-state动态计算颜色、宽度、透明度 - 三维能力:
raster-dem地形源 +setTerrain,配setSky做天空与大气;globe 投影可直接切换 - 可扩展协议:
addProtocol注册自定义加载器,PMTiles、COG 等单文件瓦片方案由此接入 - 开源免 token:底图可用公共 demotiles、自建 tile server 或 PMTiles,不受 Mapbox 配额与 TOS 约束
与相邻技术的差异:Mapbox GL JS 是同一血统的闭源商业版本(v2 起专有许可、必须 token);OpenLayers 偏全能型二维 GIS(投影、WMS/WMTS 更强);deck.gl 负责大规模数据图层,通常叠在 MapLibre 底图之上。
环境准备
npm 安装
v6 是 ESM-only 发行方式,包内只有 dist/maplibre-gl.mjs,不再提供 maplibre-gl.js 这类 UMD 文件:
npm install maplibre-gl
npm ls maplibre-gl # 验证:应显示 [email protected]
// v6:用命名空间导入或具名导入,没有 default export
import * as maplibregl from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';
const map = new maplibregl.Map({
container: 'map',
style: 'https://demotiles.maplibre.org/style.json',
center: [116.39, 39.91],
zoom: 4
});
<!-- 容器必须有显式高度,否则地图不可见 -->
<style>#map { height: 500px; }</style>
<div id="map"></div>
CDN(无构建步骤)
由于 UMD 已移除,CDN 场景也必须走 ES module:
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/maplibre-gl.css" rel="stylesheet">
<script type="module">
import * as maplibregl from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/maplibre-gl.mjs';
const map = new maplibregl.Map({
container: 'map',
style: 'https://demotiles.maplibre.org/style.json',
center: [0, 20],
zoom: 1
});
window.__map = map; // 便于控制台调试
</script>
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago First seen · 479 lines · 114 tokens per session scan A cda802134376
maplibre-gl-js is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 114 tokens to every session and 6,577 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
maplibre-gl-js compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| maplibre-gl-jsznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | A | 114 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |