Agent skill

Android Maps Ktx

by googlemaps in googlemaps/android-maps-ktx

Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

Apache-2.0Auto-check passedMobile

Install Android Maps Ktx

skills CLI
$ npx skills add googlemaps/android-maps-ktx --skill android-maps-ktx -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install googlemaps/android-maps-ktx android-maps-ktx --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/googlemaps/android-maps-ktx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.gemini/skills/android-maps-ktx .claude/skills/android-maps-ktx && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
android-maps-ktx
GitHub stars
360
Token cost
~897 tokens
SKILL.md length
358 words
Files
7 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

  • Works in 4 steps: Critical Gotchas & Stability Workarounds → Reactive Location Streaming → Marker Clustering Click Streams → …
  • Refactoring Android map features with coroutines/flows
  • SKILL.md covers 📋 Triggers & Scenarios and 🎯 Idiomatic KTX Core…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Android Maps Ktx is an agent skill from googlemaps/android-maps-ktx. Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library. Use when writing or refactoring Android map features with coroutines/flows, streaming GPS location updates, handling marker cluster clicks, managing styled overlay collections, or simulating adb coordinates. Don't use for vanilla Java Google Maps development or web/iOS maps APIs.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/clustering-flows.md`, `references/collection-flows.md` and `references/gotchas.md`).

It sits in Mobile, covering Android development, Mobile testing and debugging and Refactoring. It works with Android, Google Maps Platform, Kotlin and Java. The repository describes itself as: Kotlin extensions (KTX) for the Maps SDK and Utility Library for Android. The licence is Apache-2.0.

When your agent uses it

  • Refactoring Android map features with coroutines/flows
  • Streaming GPS location updates
  • Handling marker cluster clicks
  • Managing styled overlay collections

Example prompts

  • “Use the android-maps-ktx skill to provide idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules…”
  • “/android-maps-ktx”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Critical Gotchas & Stability Workarounds
  2. Reactive Location Streaming
  3. Marker Clustering Click Streams
  4. Shape & Overlay Click Collections

What it can do on your machine

Read from SKILL.md and the folder at commit dfc3aaa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Android Maps Ktx loads about 897 tokens when it runs, and up to ~5.4k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 358 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~897
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from googlemaps/android-maps-ktx at commit dfc3aaa, republished under its Apache-2.0 licence (© googlemaps). 358 words, ~897 tokens.

Download SKILL.mdSave it as .claude/skills/android-maps-ktx/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
android-maps-ktx
description
Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library. Use when writing or refactoring Android map features with coroutines/flows, streaming GPS location updates, handling marker cluster clicks, managing styled overlay collections, or simulating adb coordinates. Don't use for vanilla Java Google Maps development or web/iOS maps APIs.

Android Maps KTX Agent Skill

This skill provides verified patterns, gotchas, and reference implementations for developing with the Android Maps KTX and Android Maps Utility KTX libraries (maps-ktx and maps-utils-ktx).

It guides you in writing concise, idiomatic Kotlin using coroutines and Flows to manage map lifecycles, viewport transitions, satellite location streams, marker cluster events, and custom styled overlay click collections.


📋 Triggers & Scenarios

Use when:
  • Implementing or refactoring Android map interfaces using Kotlin coroutines or Kotlin Flows.
  • Consuming reactive satellite location updates (LocationManager) with automatic subscriber lifecycles.
  • Listening to marker group click events or individual pin clicks using ClusterManager event streams.
  • Managing click callbacks across distinct, styled sub-collections using MarkerManager or CircleManager.
  • Creating pixel-perfect visual previews or automated .gif animations of map interactions using adb shell inputs.
Don't use for:
  • Standard Java-based Google Maps SDK for Android development.
  • Web Map developments (Maps JavaScript API) or iOS Maps integrations.
  • General Android location services unrelated to Google Maps rendering or KTX.

🎯 Idiomatic KTX Core Capabilities

The Android Maps KTX libraries replace legacy callback-heavy interfaces with clean Kotlin-first abstractions. Refer to the following deep guides for implementations:

Show full SKILL.md (175 more words)Show less
1. Critical Gotchas & Stability Workarounds
  • The Single-Subscriber Invariant: Learn why multiple direct subscribers to a KTX cold flow will hijack the listener slot or break on cancellation, and how to safely multicast using .shareIn().
  • SystemUI Tuner Stability: Learn how to set clean status bars in Android 15+ (SDK 37) without triggering fatal tuner repository crashes.
  • Mock Location Lifecycle: Understand why mock providers must be created before activity subscription.
  • 📂 Gotchas & Stability Reference
2. Reactive Location Streaming
  • Cold flows for fine GPS location tracking and coarse cell/wifi tower tracking.
  • Auto-cleanup of test location providers and lifecycle-safe subscriptions.
  • adb coordinates injection for London (Fine GPS) and Paris (Coarse network) trajectories.
  • 📂 Location Streams Reference
3. Marker Clustering Click Streams
  • Subscribing to group cluster click viewport glides via clusterClickEvents().
  • Multicasting individual marker clicks safely across dual observers via clusterItemClickEvents() and SharedFlow.
  • adb touch badges simulations.
  • 📂 Clustering click flows Reference
4. Shape & Overlay Click Collections
  • Propagating click events in clean, isolated sub-collections via KTX collection click extensions.
  • Visual click confirmation rules (Persistent InfoWindows, interactive circle color-swapping on-device).
  • 📂 Collection Click Flows Reference

© googlemaps, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in .gemini/skills/android-maps-ktx of googlemaps/android-maps-ktx.

  • SKILL.md
  • BUILD
  • OWNERS
  • references/clustering-flows.md
  • references/collection-flows.md
  • references/gotchas.md
  • references/location-flows.md

Open the folder on GitHubat commit dfc3aaa

Compare with similar skills

Android Maps Ktx next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Android Maps Ktx compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Android Maps Ktx this skillgooglemaps/android-maps-ktx360—~897Automated safety check: PassApache-2.0
Simulator Audio E2Ehyochan/react-native-nitro-sound961—~1.1kAutomated safety check: PassMIT
Android DevOpenMinis/MinisSkills440—~1.9kAutomated safety check: PassMIT
Architecture Overclocknekomangaorg/Neko2.8k—~1.4kAutomated safety check: PassApache-2.0
Frb Android Emulator Preparefzyzcjy/flutter_rust_bridge5.4k—~2.1kAutomated safety check: NotesMIT
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence

Similar skills

  • Simulator Audio E2E

    hyochan/react-native-nitro-sound

    Build and run repeatable react-native-nitro-sound recorder/player regression tests on an iOS Simulator or Android emulator, with explicit virtual-device selection, microphone permission, Maestro…

    961 GitHub stars~1.1k tokensUpdated 8 days ago
    MobileAuto-check passed
  • Android Dev

    OpenMinis/MinisSkills

    在 Minis 的 ARM64 Alpine PRoot 中从零诊断、安装并验证 Android 构建环境,以及创建、构建、签名验证、安装和启动原生 Android App;覆盖 Java/Kotlin/Gradle/SDK/AAPT2、APK、ADB/无线调试/Shizuku,以及条件式 JNI/NDK。用户提到 Android…

    440 GitHub stars~1.9k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Architecture Overclock

    nekomangaorg/Neko

    Resolves deep, structural performance bottlenecks in the Kotlin Android codebase.

    2.8k GitHub stars~1.4k tokensUpdated yesterday
    MobileAuto-check passed
  • Frb Android Emulator Prepare

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when preparing, installing, diagnosing, or explaining the host Android Emulator environment for flutterrustbridge local runtime validation, including Android SDK command-line…

    5.4k GitHub stars~2.1k tokensUpdated yesterday
    MobileAuto-check: notes
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Architecture Renovator

    nekomangaorg/Neko

    Resolves deep architectural debt in the Kotlin Android codebase through macro-level refactoring.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    MobileAuto-check passed

Categories

Questions about Android Maps Ktx

What does Android Maps Ktx do?

Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library. Android Maps Ktx is an agent skill from googlemaps/android-maps-ktx. Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

When should I use Android Maps Ktx?

Android Maps Ktx fits situations like: refactoring Android map features with coroutines/flows; streaming GPS location updates; handling marker cluster clicks; managing styled overlay collections.

How do I install Android Maps Ktx in Claude Code?

Run `npx skills add googlemaps/android-maps-ktx --skill android-maps-ktx -a claude-code`. Or copy the skill folder (.gemini/skills/android-maps-ktx in googlemaps/android-maps-ktx) into .claude/skills/android-maps-ktx in your project. Claude Code loads it when a task matches its description.

How do I install Android Maps Ktx in Codex?

Run `npx skills add googlemaps/android-maps-ktx --skill android-maps-ktx -a codex`. Or copy the skill folder (.gemini/skills/android-maps-ktx in googlemaps/android-maps-ktx) into .agents/skills/android-maps-ktx in your project. Codex loads it when a task matches its description.

Can I use Android Maps Ktx in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add googlemaps/android-maps-ktx --skill android-maps-ktx -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-maps-ktx, .gemini/skills/android-maps-ktx, .github/skills/android-maps-ktx and .opencode/skills/android-maps-ktx in your project.

What does Android Maps Ktx need to run?

SKILL.md names no scripts, command-line tools or credentials: Android Maps Ktx is instructions for the agent only.

Does Android Maps Ktx access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Android Maps Ktx safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Android Maps Ktx use?

Android Maps Ktx is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Android Maps Ktx use?

About 897 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.5k tokens, read only when the agent opens those files.

What are the alternatives to Android Maps Ktx?

Skills that share tags, products or a category with Android Maps Ktx: Simulator Audio E2E (hyochan/react-native-nitro-sound, 961 stars), Android Dev (OpenMinis/MinisSkills, 440 stars), Architecture Overclock (nekomangaorg/Neko, 2.8k stars) and Frb Android Emulator Prepare (fzyzcjy/flutter_rust_bridge, 5.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Android Maps Ktx?

googlemaps (a GitHub organization) maintains it in googlemaps/android-maps-ktx, which has 360 GitHub stars. The repository was last updated on October 5, 2026.

Source: googlemaps/android-maps-ktx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.