mapsgl-android

mapsgl-android is a skill for Claude Code from vaisala-xweather/xweather-agent-skills. It costs 233 tokens per session (6,107 once invoked), scanned A, original, MIT.

A guide for using the Xweather MapsGL Android SDK to display weather and custom map data in Android apps. It covers Mapbox-based maps, weather layers, styling, legends, and data inspection.

In plain words
What is it for?
Use it when adding weather maps, custom map layers, styling, legends, or data inspection to an Android application.
Why use it?
It helps developers use the SDK's real APIs and avoid relying on outdated or incorrect documentation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xweather plugin — 6 skills shipped together

Good fit Use it when adding weather maps, custom map layers, styling, legends, or data inspection to an Android application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaisala-xweather/xweather-agent-skills/mapsgl-android
Install

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.

Any agent
npx skills add vaisala-xweather/xweather-agent-skills --skill mapsgl-android
Clone the repo
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills

Made for: Claude Code.

Or install xweather, the plugin that ships this one along with the rest of its 6 skills.

Wrote 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.

agentmods badge for mapsgl-android

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android/github.svg)](https://agentmods.dev/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android)
Your own site
<a href="https://agentmods.dev/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android"><img src="https://agentmods.dev/badge/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android/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.

agentmods 80×15 button for mapsgl-android

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android"><img src="https://agentmods.dev/badge/skills/vaisala-xweather/xweather-agent-skills/mapsgl-android.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00233 $0.06107
Opus 5 $0.00117 $0.03053
Sonnet 5 $0.00047 $0.01221
Haiku 4.5 $0.00023 $0.00611

Measured 8d ago against content hash 880e578f70a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mapsgl-android 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 8d 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 https://www.xweather.com/docs/api/releases/versions \
plugins/xweather/skills/mapsgl-android/SKILL.md · 609 lines

How it starts

The opening of the file, as written. The whole thing — 609 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MapsGL Android

MapsGL Android renders weather and custom map data on top of the Mapbox Maps SDK for Android (encoded grids via OpenGL ES custom layers; many vector weather layers via Mapbox style layers). Requires an Xweather account (Weather API + Maps) and Mapbox access / downloads tokens.

Source of truth (read this first)

When answering or writing code, resolve conflicts in this order:

  1. The MapsGL Android SDK - public Kotlin APIs in mapsglmaps / published AAR, in-repo demos under app/, and generated KDoc
  2. This skill (kept to match the SDK)
  3. https://www.xweather.com/docs/mapsgl-android-sdk/ - useful for tutorials and recipes, but often lagging (deprecated ctors, wrong removeWeatherLayer args, missing Mapbox peer dep, "coming soon" for shipped features, invented overload shapes)

Prefer the SDK to the docs. If a docs snippet disagrees with a real method signature, package, or demo in the SDK, follow the SDK and say so. Never invent an API - if it isn't in the SDK source, KDoc or a demo, it doesn't exist.

Docs hub (optional context only): https://www.xweather.com/docs/mapsgl-android-sdk/

API scope: public MapsGL Android APIs only - no internals.

This skill documents the 1.6.1 release. Every API described here exists in the published 1.6.1 artifact - there is no unreleased or development-branch surface to filter out, and nothing is marked (unreleased).

That also bounds what the skill can offer. Features added after 1.6.1 - the ["map-time"] filter expression, MapsGL's own GLES vector rendering pipeline, and the *-text data-query layers - are deliberately absent. If a task needs one of those, say it is not available in 1.6.1 rather than writing code against it.

Never hardcode a version number. Resolve the current release when you need one:

curl -s https://www.xweather.com/docs/api/releases/versions \
  | python3 -c 'import json,sys; print(json.load(sys.stdin)["products"]["mapsgl-android-sdk"]["version"])'

Read the full file on GitHub · 609 lines

Changes

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.

  1. 8d ago First seen · 609 lines · 233 tokens per session scan A 880e578f70a7

Subscribe to this mod's changes

mapsgl-android is a skill published in the GitHub repository vaisala-xweather/xweather-agent-skills (3 stars, last pushed 11d ago), licensed MIT. It adds 233 tokens to every session and 6,107 once invoked, about $0.0012 per session on Opus 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-09-04.

Related

Other skills, from other repositories