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 leafletgit 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/leaflet)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/leaflet"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/leaflet/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/leaflet"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/leaflet.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.00046 | $0.03591 |
| Opus 5.5 | $0.00018 | $0.01436 |
| Sonnet 5.5 | $0.00009 | $0.00718 |
| Haiku 4.5 | $0.00005 | $0.00359 |
Grade A, and why
leaflet scanned grade A with 0 findings 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 4d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 351 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/Leaflet/Leaflet
官方文档: https://leafletjs.com/
API 参考: https://leafletjs.com/reference.html
示例: https://leafletjs.com/examples.html
最新版本: 1.9.4(截至2026-10,npm
leaflet)许可证: BSD-2-Clause
概述
Leaflet 是面向移动端与桌面端的开源 2D 地图库,核心构建体积约 42 KB,提供命令式的类 jQuery API。特性:
- 瓦片图层:支持 OSM、XYZ、WMS、WMTS、ArcGIS 等栅格底图
- 矢量叠加:Marker、Popup、Tooltip、Circle、Polygon、Polyline、GeoJSON
- 图层管理:LayerGroup、FeatureGroup、
L.control.layers切换底图与叠加层 - 事件系统:Map / Layer / Marker 均继承
Evented,统一on/off/once - 插件生态:绘制、聚合、热力图、矢量瓦片等均有成熟第三方插件
- 框架无关:可在原生 JS、Vue、React、Svelte 中直接使用
环境准备
方式一:CDN
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<style>
/* 容器必须显式设置高度,否则地图不可见 */
#map { height: 400px; }
</style>
</head>
<body>
<div id="map"></div>
</body>
</html>
方式二:npm
npm install leaflet
import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
验证
打开页面应看到可拖拽、可缩放的 OSM 底图;控制台执行 L.version 返回 "1.9.4"。
console.log(L.version); // "1.9.4"
核心 API
L.map
const map = L.map('map', {
center: [39.9087, 116.3975], // [纬度, 经度]
zoom: 12,
zoomControl: true,
attributionControl: true
});
| 选项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
center |
LatLng | 无 | 初始中心点 [lat, lng] |
zoom |
Number | 无 | 初始缩放级别 |
zoomControl |
Boolean | true |
是否添加缩放控件 |
attributionControl |
Boolean | true |
是否添加版权控件 |
minZoom / maxZoom |
Number | 无 | 缩放范围限制 |
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.
- 4d ago First seen · 351 lines · 46 tokens per session scan A 44238568e068
leaflet is a skill published in the GitHub repository znlgis/opengis-skills (68 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 3,591 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
Other skills, from other repositories
compiler-orchestrator
Orchestrate the Rust compiler port end-to-end. Discovers the current frontier, fixes failing passes, ports new passes, reviews, and commits in a loop.
angular-developer
Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), queries and content projection, forms, dependency injection, routing, server and hybrid rendering…
compiler-port
Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.
migrate-oxlint
Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.
notion-to-blog
Transfer a blog post from Notion to the Wasp blog. Fetches content, downloads and optimizes images, and creates a properly formatted MDX file.
geo-fundamentals
Generative Engine Optimization for AI search engines (ChatGPT, Claude, Perplexity).