Skip to content
Agentmart
Submit a tool

location

Get the user's current GPS location.

Skill by LocalKinAI

IndexedApache-2.0★ 9
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/localkinai-location

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Get the user's current GPS location. Auto-detects the best backend for the host OS: macOS → corelocationcli (CoreLocation — cell / WiFi / GPS) Linux → gdbus + geoclue2 (kernel-driver / WiFi / Mozilla MLS) fallback → IP geolocation (ipapi.co — city-level only) Returns coordinates / address / city / full details — request what you need with the `format` arg. When to use this vs the {{location}} system prompt context: - {{location}} is set from $KINCLAW_LOCATION env var — "where the user generally is" (home / office). Static, free, always available. - This skill reads the OS location service in real time — "where the user is right NOW". Use when user might be traveling / driving / out, or when meter-level precision matters. First invocation prompts for permission (macOS Location Services / Linux Geoclue per-app authorization through xdg-desktop-portal). Grant it for whichever process kinclaw runs in. First-time setup: macOS: brew install corelocationcli Linux: apt install geoclue-2.0 jq curl # or pacman -S / dnf install (gdbus ships with glib2 — already present on every desktop Linux)

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/location

What's inside

Skill name
location
Description
Get the user's current GPS location. Auto-detects the best backend for the host OS: macOS → corelocationcli (CoreLocation — cell / WiFi / GPS) Linux → gdbus + geoclue2 (kernel-driver / WiFi / Mozilla MLS) fallback → IP geolocation (ipapi.co — city-level only) Returns coordinates / address / city / full details — request what you need with the `format` arg. When to use this vs the {{location}} system prompt context: - {{location}} is set from $KINCLAW_LOCATION env var — "where the user generally is" (home / office). Static, free, always available. - This skill reads the OS location service in real time — "where the user is right NOW". Use when user might be traveling / driving / out, or when meter-level precision matters. First invocation prompts for permission (macOS Location Services / Linux Geoclue per-app authorization through xdg-desktop-portal). Grant it for whichever process kinclaw runs in. First-time setup: macOS: brew install corelocationcli Linux: apt install geoclue-2.0 jq curl # or pacman -S / dnf install (gdbus ships with glib2 — already present on every desktop Linux)
License
Apache-2.0
Instructions
65 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Agent Skills spec issues

  • description: longer than 1024 characters

Files (1)

  • SKILL.md

SKILL.md (first lines)

# location — real-time GPS, cross-platform

Auto-detected backend per OS:

| OS | Backend | Accuracy | Permission |
|---|---|---|---|
| macOS | `corelocationcli` (CoreLocation) | cell / WiFi / GPS (meter-level) | System Settings → Privacy & Security → Location |
| Linux | `gdbus` + Geoclue2 | WiFi / Mozilla MLS / kernel-DRM | xdg-desktop-portal dialog (per-app) |
| any | `curl ipapi.co` fallback | city-level only | none (uses your IP) |

Two-tier location story for KinClaw:

| Layer | Where | When to use |
|---|---|---|
| `{{location}}` substitution | Soul prompt, from `$KINCLAW_LOCATION` env | Persistent context — "user lives in Beijing" |
| `location` skill (this) | Tool call to OS location service | Real-time GPS — "user is at $current_lat,$lon" |

The skill is opt-in: not installed → clear error message + install hint.
Already installed → uses the OS's actual location services.

## Privacy

- **macOS**: triggers Apple's standard Location Services permission flow.
  macOS asks ONCE per process; subsequent calls reuse the grant. Revoke
  via System Settings → Privacy & Security → Location Services.
- **Linux**: Geoclue2 uses `xdg-desktop-portal` for permission. On GNOME /
  KDE it prompts via the portal dialog; on Sway/i3 the dialog may not
  appear (in which case grant via `gnome-control-center privacy` once).
- **IP fallback**: no permission needed because no GPS hardware is queried —
  ipapi.co geolocates your public IP. City-level only.

## Usage

```
location                       → "37.7749,-122.4194"
location format=address        → "1 Apple Park Way, Cupertino, CA"
location format=city           → "Cupertino"
location format=full           → multi-line: lat/lon/alt/accuracy/...
```

The backend is auto-selected at invocation time; the agent doesn't need
to know whether it's running on macOS or Linux.

## Linux setup (one-time)

```bash
# Debian / Ubuntu
sudo apt install geoclue-2.0 curl

# Fedora
sudo dnf install geoclue2 curl

# Arch
sudo pacman -S geoclue curl

# Verify geoclue is running
systemctl --user status geoclue.service  # may be system-wide, try without --user too
```

If Geoclue2 doesn't return a fix within 10 seconds (often the case on
servers / Pi without WiFi positioning), the skill auto-falls-back to IP
geolocation. Forge a derivative skill if you want different fallback
behavior (e.g. cache last good fix, exponential retry).

From LocalKinAI/kinclaw, Apache-2.0.

More from LocalKinAI/kinclaw

Signals

Stars
9
Forks
3
Open issues
2
Last commit (this folder)
Oct 5, 2026 (24 days ago)
Last release
Sep 6, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from LocalKinAI

Cite this page

location skill. Agent Mart. https://agentmart.dev/skills/localkinai-location (last updated 2026-10-24)