map-location
Use when the user asks about maps in a mobile app, MapKit, Google Maps SDK, Mapbox, GPS location tracking, background location, geofencing, geocoding or…
от j4flmao★ 47 звёзд на GitHub
Установить map-location в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Map and Location
Purpose
Map integration provides interactive maps, geocoding, routing and location tracking. This skill picks the right SDK (MapKit, Google Maps, Mapbox, MapLibre), requests location permissions at the minimum level needed, and implements tracking that respects battery and privacy rules on iOS and Android.
Agent Protocol
Trigger
"maps", "map SDK", "MapKit", "Google Maps", "Mapbox", "location tracking", "GPS", "geofencing", "background location", "geocoding", "marker clustering".
Input Context
- Platforms and framework (native iOS/Android, Flutter, React Native)
- Features needed (display, search, routing, offline, geofences, background tracking)
- Accuracy/battery needs and privacy constraints (store review, GDPR)
Output Artifact
SDK choice, permission strings/manifest entries, and location/map code. No file unless requested.
Response Format
SDK: {MapKit | Google Maps | Mapbox | MapLibre}
Permissions: {iOS keys / Android permissions, when requested}
Tracking: {foreground | background | significant-change | geofence}
Code: {snippet}
Battery/privacy notes: {accuracy level, update interval, data retention}
Rules
- Request "when in use" first; ask for background ("Always" /
ACCESS_BACKGROUND_LOCATION) only for a feature that needs it, after explaining why. Android 11+ makes the user grant background location from Settings, separately from foreground. - iOS 14+ users can grant approximate location only; check
CLLocationManager.accuracyAuthorizationand request temporary full accuracy (requestTemporaryFullAccuracyAuthorization(withPurposeKey:)) when needed. - Android 12+: requesting
ACCESS_FINE_LOCATIONrequires also requestingACCESS_COARSE_LOCATION; the user may grant only approximate. - Background tracking on Android needs a foreground service with
foregroundServiceType="location"(and theFOREGROUND_SERVICE_LOCATIONpermission on Android 14+). - Use the lowest accuracy and longest interval that satisfies the feature; prefer geofences or significant-change monitoring over continuous GPS.
Decision Tree: Map Platform Selection
Which Map SDK to Use?
Target platforms:
├── iOS-only → Apple MapKit (free, integrated, no API key)
├── Android-only → Google Maps (rich features, needs API key)
├── Cross-platform (iOS + Android) → Google Maps for both, or Mapbox
├── React Native → react-native-maps (uses native SDKs)
├── Flutter → flutter_map (OpenStreetMap) or google_maps_flutter
├── Web → Leaflet (free, OpenStreetMap), Mapbox GL JS, or Google Maps JS
└── Cross-platform + Web → Mapbox GL (unified API across all platforms)
Feature Requirements Decision
What map features do I need?
├── Show a static location → Simple annotation/marker (any SDK)
├── User location tracking → Core Location (iOS) / Fused Location (Android)
├── Search/geocoding → MKLocalSearch (iOS) / Places API (Android/Web)
├── Turn-by-turn navigation → Mapbox Navigation SDK or Google Navigation
├── Custom map styles → Mapbox Studio (most flexible) or Google Maps styling
├── Offline maps → Mapbox offline or Google Maps offline tiles
├── Indoor maps → Google Maps Indoor or custom solution
├── Heatmaps / data visualization → Google Maps Heatmap or Deck.gl + Mapbox
├── Route optimization → Google OR-Tools or Mapbox Optimization API
└── Real-time location sharing → WebSocket + location SDK
Platform Integration Patterns
MapKit (iOS) Pattern
import MapKit
class MapManager: NSObject {
private let mapView: MKMapView
private let locationManager = CLLocationManager()
init(mapView: MKMapView) {
self.mapView = mapView
super.init()
setupMap()
}
private func setupMap() {
mapView.delegate = self
mapView.showsUserLocation = true
mapView.showsCompass = true
mapView.showsScale = true
locationManager.delegate = self
requestLocationPermission()
}
func addAnnotation(at coordinate: CLLocationCoordinate2D, title: String, subtitle: String? = nil) {
let annotation = MKPointAnnotation()
annotation.coordinate = coordinate
annotation.title = title
annotation.subtitle = subtitle
mapView.addAnnotation(annotation)
}
func searchNearby(query: String, radius: CLLocationDistance = 1000) {
let request = MKLocalSearch.Request()
request.naturalLanguageQuery = query
request.region = MKCoordinateRegion(
center: mapView.userLocation.coordinate,
latitudinalMeters: radius,
longitudinalMeters: radius
)
MKLocalSearch(request: request).start { response, error in
guard let items = response?.mapItems else { return }
items.forEach { self.addAnnotation(
at: $0.placemark.coordinate,
title: $0.name ?? "",
subtitle: $0.placemark.title
)}
}
}
private func requestLocati
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/geofencing-patterns.md
- references/location-privacy.md
- references/location-services.md
- references/map-customization.md
- references/map-integration.md
- references/map-sdks.md
FAQ
Что делает скилл map-location?
Use when the user asks about maps in a mobile app, MapKit, Google Maps SDK, Mapbox, GPS location tracking, background location, geofencing, geocoding or marker clustering. Produces map SDK choice, location permission flow and battery-aware tracking. Not for backend geospatial queries (use data-relational-database).
Как установить скилл map-location?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл map-location запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…