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 veelenga/preview-skills --skill preview-leafletgit clone --depth 1 https://github.com/veelenga/preview-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/veelenga/preview-skills/preview-leaflet)<a href="https://agentmods.dev/skills/veelenga/preview-skills/preview-leaflet"><img src="https://agentmods.dev/badge/skills/veelenga/preview-skills/preview-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/veelenga/preview-skills/preview-leaflet"><img src="https://agentmods.dev/badge/skills/veelenga/preview-skills/preview-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.00019 | $0.02790 |
| Opus 5.5 | $0.00008 | $0.01116 |
| Sonnet 5.5 | $0.00004 | $0.00558 |
| Haiku 4.5 | $0.00002 | $0.00279 |
Grade A, and why
preview-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 1mo 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 — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Preview Leaflet Skill
Interactive map visualization viewer using Leaflet library for geographic data, markers, routes, and custom overlays.
Agent Usage
When the user asks to create a map visualization, write the Leaflet code and pipe it to the script. Use the Bash tool to execute this skill's run.sh script:
# Pipe Leaflet code
cat route.js | ./run.sh
# Or from a file
./run.sh city-map.leaflet
The script handles all HTML generation and automatically opens the result in the browser. Do NOT open the file manually to avoid duplicate tabs.
Usage
# Preview a Leaflet map file
/preview-leaflet city-map.leaflet
# Or use .map extension
/preview-leaflet route.map
# Pipe Leaflet code (preferred for temporary content)
cat route.js | /preview-leaflet
echo "const map = L.map('map').setView([51.505, -0.09], 13);" | /preview-leaflet
Best Practice: For temporary or generated maps, prefer piping over creating temporary files. This avoids cluttering your filesystem and the content is automatically cleaned up.
Options
The script works with sensible defaults but supports these flags for flexibility:
-o, --output PATH- Custom output path--no-browser- Skip browser, output file path only
Features
- Interactive maps with pan and zoom
- Markers and popups for locations
- Routes and paths with polylines
- Shapes and areas with polygons and circles
- Multiple tile layers (OpenStreetMap, CartoDB, etc.)
- Tooltips on hover
- Fit bounds to show all points
- Reset view button
- Code viewer toggle
- Responsive design adapts to window size
When to Use This Skill
Use this skill when the user wants to:
- Visualize geographic data on maps
- Plot locations with markers
- Draw routes between points
- Show service areas or regions
- Create interactive location-based visualizations
Leaflet Code Requirements
Your code should:
- Initialize the map with
L.map('map').setView([lat, lng], zoom) - Add a tile layer (provides map imagery)
- Add markers, paths, or other features
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- config.sh 1.3 KB runs code
- lib/browser-utils.sh 9.5 KB runs code
- lib/content-utils.sh 6.7 KB runs code
- lib/html-generator.sh 14 KB runs code
- run.sh 7.5 KB runs code
- templates/scripts/common-ui.js 5.1 KB runs code
- templates/scripts/leaflet-renderer.js 3.9 KB runs code
- templates/scripts/utils.js 1.8 KB runs code
- templates/styles/common.css 1.6 KB
- templates/styles/layout.css 14 KB
- templates/styles/leaflet.css 5.4 KB
- templates/user-code-template.html 236 B
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.
- 1mo ago First seen · 423 lines · 19 tokens per session scan A f8e391fc7307
preview-leaflet is a skill published in the GitHub repository veelenga/preview-skills (9 stars, last pushed 5d ago), licensed MIT. It adds 19 tokens to every session and 2,790 once invoked, about $0.0001 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-08-31.
Other skills, from other repositories
experts
Assemble a panel of experts to assess a problem from multiple professional perspectives, surface agreement and disagreement, and deliver a chaired recommendation with clear tradeoffs. Use when the user wants multi-expert judgment, a second opinion, design critique, option comparison, or a recommendation backed by…
programmer-motivator
Give calm, technically grounded encouragement to programmers when the user is stuck on a bug, frustrated by debugging, tired, discouraged, blaming themselves after a mistake, asking for motivation or emotional support while coding, wanting someone to stay with them through a hard problem, celebrating a breakthrough…
subagent-orchestrator
Orchestrate subagent workflows for complex tasks that benefit from decomposition, role-based delegation, and parallel execution. Use when Codex should assemble a temporary team of subagents, choose roles from a reusable role library, create a controlled fallback role when no preset role fits, coordinate read-heavy…
async
Launch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference.
create-plan
A guide for creating repository-aware technical plans: written proposals for implementation, refactoring, migration, or design work based on the actual codebase.
github-create-pr
Create GitHub pull requests from a local branch using a reviewable workflow for branch checks, diff analysis, PR title/body writing, and gh CLI creation. Use when opening a PR, drafting or improving a PR description, preparing a branch for review, or adding reviewers on GitHub.