add_location
Play demoTry asking
- Add Berlin, Germany to my weather locations
- track the weather in Lisbon
- add Paris, France to Breezy Weather
- save Springfield, Illinois as a weather location
ghost skill run ghost/weather add_location Breezy Weather (F-Droid, freenet build): add a city by search, list saved locations, read current weather and the daily forecast. No account, no GPS.
Task check: passed without the skill, passed with it.
One recorded run each way on add_location, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
49× fewer tokens, 3.5× faster with the skill. Task check: passed without the skill, passed with it.
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 52.6 s | 1,007,186 | 23 | passed |
With skill: find_skill, run_skill (add_location) | 14.9 s | 20,541 | 3 | passed |
Prompt: Add Berlin to my weather locations
Fixed skill 98e2b5bf, 3/3 clean-reset phone B replays before AFTER retake. Original BEFORE retained. Original AFTER (17.46s/80364 tokens, success=False) preserved in originals/weather.mp4. New AFTER 14.86s/20541 tokens/3 calls, actual run_skill success. Every-frame terminal OCR and source-cast gate passed. Country Germany verified; previous New Hampshire result remains in original clip.
One recorded pair on samsung-demo, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Demo shows: get_current_weather (location=Berlin)
Ghost in the Droid seed skill for Breezy Weather (
org.breezyweather), a FOSS weather app from F-Droid. No account, no GPS.
| Action | What it does | Params |
|---|---|---|
add_location | Search a city by name and save it | query, country, region, legacy match |
list_locations | Saved cities with their current condition | none |
get_current_weather | Condition, temperature, feels-like, day range | location |
get_daily_forecast | Daily day/night temperatures, conditions, rain chance | location |
Install the app from F-Droid (org.breezyweather), then:
pip install "ghost-in-the-droid>=1.6.0" # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/weather
ghost skill run ghost/weather add_location --param query=Berlin --param country=Germany --device emulator-5554
ghost skill run ghost/weather get_current_weather --param location=Berlin --device emulator-5554
From any MCP agent:
run_skill(name="ghost/weather", action="get_daily_forecast", params={"location": "Berlin"})
# {"daily": [{"day": "Tomorrow", "date": "October 6", "day_temp": "67 degrees Fahrenheit", "precip_probability": 2, ...}]}
Android 14 emulator (google_apis x86_64, 1080x2400, 420 dpi), Breezy Weather 6.2.2 (freenet), en-US. Signed self-runs live in runs/.
Never uses "Add current location"; no location permission is requested. License: MIT (the skill; the app is LGPL-3.0).
| App version | Android | Device | Skill version | Signed self-runs (pass/total) | Dates |
|---|---|---|---|---|---|
| 6.2.2_freenet | 14 | Google/sdk_gphone64_x86_64 (emulator, 1080x2400, 420 dpi, en-US) | 1.0.0 | 12/12 | 2026-10-05 |
Samsung SM-A156B regression target: Android 16 Samsung SM-A156B, Breezy Weather 6.2.2 freenet, English UI. Three consecutive clean-reset add_location(query=Berlin, country=Germany) replays passed on 2026-11-03 (8.77s, 7.45s, 7.53s). Earlier outcomes above are historical; only current digest-bound signed runs establish current coverage. Other OEM skins/locales remain untested.
The Samsung SM-A156B comparison exposed a wrong-city result: a fixed y>290 filter dropped Germany’s first row (y=280), and a missing region match silently fell back to the first remaining Berlin. Version 1.0.1 removes the pixel cutoff and refuses ambiguous or unmatched results. The validator checks selected country/region evidence and the saved city.
For common names, pass the displayed English country and optionally a state/region. country=United States, region=New Hampshire and country=Germany select different Berlins. No qualifier is accepted only when exactly one result remains. Ambiguous or unmatched searches return candidate names/regions and fail before saving; the caller must ask the user rather than guess. Legacy match remains supported, with no first-result fallback. The final city list does not display country, so validation retains the selected search-row country as evidence and checks it against the requested qualifiers and saved name.
Recorded setup failure: an accessibility-bridge port collision forced native UI Automator fallback. On the tested build, that fallback omits saved city rows even though the card is visible. The validator correctly refused success. Use a unique per-device alias/bridge port; do not accept pixels or weaken country/list readback. The failed diagnostic logs are preserved separately; stale-digest artifacts are pruned before the final replay.
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on, and how success is recognised, so an agent can adapt it to another weather app or version.
Package: org.breezyweather (Breezy Weather, LGPL-3.0 FOSS app, freenet build 6.2.2 from the official F-Droid repository, sha256-verified)
Verified: 2026-10-05 on a headless emulator pool, Android 14 google_apis x86_64, 1080x2400 @ 420 dpi, en-US (temperatures in °F). No account. No GPS: locations are added by name.
Skill class: HARD. No login, no checkpoints.
id/container with id/title1 (name) and id/title2 (current condition). "Add a new location" is button text when the list is empty and a FAB description otherwise. "Add current location" (GPS) is never used. A "Stay informed" notifications card may sit at the top; it is left alone.SearchActivity): field "Search for a location…", results are pairs of lines (name, then region such as "Germany, State of Berlin, ..."), footer "Location results by Open-Meteo (CC BY 4.0) • GeoNames".Save accepts them.id/container_main_header_weather_condition_description, id/container_main_header_temperature_value and _unit, id/container_main_header_feels_like, id/container_main_header_temperature_range, id/refreshTimeText (desc "Last updated ..."). Daily cards id/item_trend_daily carry the whole forecast in their content-desc: "Conditions, Tomorrow, October 6, Daytime: 67 degrees Fahrenheit, Partly cloudy, Precipitation probability: 2%, Nighttime: ...".The "Location list" button and the first search results sit where heads-up notifications appear; taps there go through guarded_tap (refuses while SystemUI's mHeadsUpPinnedMode is true).
add_location(query, country="", region="", match="")Locations > Add a new location > type the city > Enter. Read every visible name/region pair, including the first row above y=290 on Samsung. Filter by exact displayed country and optional state/region; legacy match is an additional filter. Save only when exactly one result remains. If ambiguous or unmatched, return candidates and ask for country/region; never select the first result as a fallback. Success requires matching selected-country evidence and the saved city. The Locations list itself omits country.
list_locations()Read the rows: {name, condition}. Empty list on a fresh install.
get_current_weather(location)Open the saved location (exact name, else substring) and read the header. Returns weather: {location, condition, temperature, unit, feels_like, range, updated}.
get_daily_forecast(location)Open the saved location and parse every visible daily card into {day, date, day_temp, day_condition, precip_probability, night_temp, night_condition} (precipitation: the higher of day and night).
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
add_locationTry asking
ghost skill run ghost/weather add_location list_locationsTry asking
ghost skill run ghost/weather list_locations get_current_weatherTry asking
ghost skill run ghost/weather get_current_weather get_daily_forecastTry asking
ghost skill run ghost/weather get_daily_forecast Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.2latest | never | >=6.2.2 | pending | 25.1 KB | untagged |