Index of every page on this site: llms.txt
All skills
xenodium avatar

/mappu

@a158238
by xenodiumxenodium/emacs-skills151 stars
19
Run it yourself

Use when the user asks about a specific place — restaurant, cafe, shop, business, landmark — or when context implies a location-based lookup ("where is X", "find Y", "X in Z", "X near A"). Calls the mappu CLI to search Apple Maps and returns local results with addresses, websites, preview images, and a map snapshot.

Use this Skill: https://skilld.dev/gh/xenodium/emacs-skills/mappu

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈82 tokens for metadata: the name and description. ≈836 when used: this file.

Description uses 4.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈325 characters, or 4.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Search places with mappu

When the user asks about a specific place or implies a location-based query, use the mappu CLI to search Apple Maps and present the results.

Examples of triggering contexts:

  • "where can I get good ramen?"
  • "is Roti King open?"
  • "find sushi places in Soho"
  • "what cafes are near St James's Park?"
  • "any good Malaysian food around Chinatown?"

Locating context (always set --near)

mappu requires a --near value. Determine it like this:

  1. If the user mentioned a location ("in Soho", "near Charing Cross", "around Tokyo"), use that.
  2. If recent conversation context establishes a location (e.g., they have been talking about restaurants in London), use that.
  3. Otherwise, ask the user "Near where?" before running mappu. Do not guess silently and do not fall back to a default city.

How to invoke

Run via the Bash tool. Always include --preview --map for richer output:

mappu --preview --map --near "Soho London" "roti king"

Flags:

  • --near "<location>" — required, set every call.
  • --limit <N> — max results; mappu's default is 10.
  • --radius <KM> — search radius in kilometers.
  • --preview — include website preview images per result (use by default).
  • --map — include a map snapshot with numbered pins (use by default).

Output schema

mappu prints JSON to stdout:

{
  "map": "/path/to/map.png",
  "results": [
    {
      "name": "Roti King",
      "address": "6 Artillery Lane, London, England, E1 7LS, United Kingdom",
      "neighborhood": "City of London",
      "category": "Restaurant",
      "url": "https://rotiking.com/location/spitalfields",
      "mapsUrl": "https://maps.apple.com/?ll=51.5183405,-0.0790983&q=Roti%20King",
      "image": "/path/to/preview.png",
      "phone": "+44 20 1234 5678",
      "countryCode": "GB",
      "timeZone": "Europe/London",
      "coordinate": { "lat": 51.5183405, "lng": -0.0790983 }
    }
  ]
}

On failure, mappu prints {"error": "..."} and exits non-zero.

Render as markdown

For successful responses, output in this order: top-level map (if present), then each result as image + name link + category + address. Pin numbers on the map match the order of results[] (1-based).

![map of results](path/to/map.png)

![Roti King](path/to/preview1.png)
[Roti King](https://rotiking.com/location/spitalfields)
Restaurant
6 Artillery Lane, London, England, E1 7LS, United Kingdom

![Roti King](path/to/preview2.png)
[Roti King](https://rotiking.com/location/waterloo)
Restaurant
97 Lower Marsh, London, England, SE1 7AB, United Kingdom

Rules

  • Always set --near; ask the user "Near where?" if it is not obvious from the request or recent context.
  • Always include --preview --map unless the user explicitly asks for fast / text-only results.
  • Use the result's url as the link target. Fall back to mapsUrl if url is missing.
  • Omit the image line for results without an image field rather than fabricating one.
  • Do not invent ratings, opening hours, prices, or any fields not present in the JSON.
  • If mappu returns {"error": "..."}, surface that error to the user and stop.
  • Requires the mappu binary on $PATH. If invocation fails with "command not found", tell the user to install it (e.g. copy the release binary to /usr/local/bin/).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning5mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub5mo

    This skill uses a custom command-line tool to search Apple Maps. It constructs shell commands using user-provided input, which creates a potential risk of command injection if the input is not properly handled. Additionally, it requires a specific binary to be installed on the system.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at a158238. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago
tools
Bash

README badge

README badge for xenodium/emacs-skills/mappu