set_alarm
Play demoTry asking
- Set an alarm for 7:30 tomorrow morning called Gym
- wake me up at 6:45
- create an alarm at 22:00 labelled Meds
- set a 7am alarm
ghost skill run ghost/clock set_alarm Samsung Clock timer start/cancel/state and the Google Clock alarm/world-city/stopwatch toolkit. Timer app is auto-detected; Samsung actions never open alarms.
Before With skill · median tokens per task
6 more actions not benchmarked yet
maintainer-run, not independent · claude-haiku-5-5 · 2026-10-22. Every failure is counted (intention-to-treat).
4.1× fewer tokens, 1.5× slower with the skill. Task check: passed without the skill, passed with it.
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 23.3 s | 475,871 | 11 | passed |
With skill: find_skill, run_skill (start_timer) | 35.9 s | 116,079 | 6 | passed |
Prompt: Start a one-minute timer, then cancel it immediately. Stay on the Timer tab.
Original BEFORE and exact original prompt retained. AFTER refreshed on current 1.0.5 with Samsung Keyboard suggestions disabled and verified; defaults restored after filming. Source,readiness,terminal,phone and overlay audits passed.
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.
Start, cancel and inspect Samsung timers; use the existing Google Clock alarm, timer, stopwatch and world-city toolkit. Timer actions detect the installed app. No account is needed.
Try asking: Start a one-minute Samsung timer, then cancel it and check that it stopped.
| Action | App | What it does | Params |
|---|---|---|---|
| start_timer | Samsung or Google | Start and validate the requested duration | seconds, app=auto/google/samsung, label (Google only) |
| cancel_timer | Samsung | Cancel the active timer; no-op if none active | app=auto/samsung |
| get_timer_state | Samsung | Return active=true/false, including paused timers | app=auto/samsung |
| set_alarm | Google only | Create and validate an alarm | hour, minute, label |
| list_alarms | Google only | Read alarm time, label, repeat and enabled state | none |
| start_stopwatch | Google only | Start and validate the stopwatch | none |
| add_world_city | Google only | Add and validate a world-clock city | city |
Auto selection prefers installed Samsung Clock, then Google Clock; app=google forces Google when installed. A missing requested app fails explicitly. Samsung uses only Timer and never opens its Alarm tab. An existing active Samsung timer is preserved: start_timer refuses to replace it. Its duration is set through the identified number pickers, reread before Start, and validated with the active timer service plus Pause control. It does not create named timer presets. Custom Samsung labels are unsupported and fail before starting; omit label or use the default Timer.
Cancellation requires the currently visible Samsung cancellation control and verifies the timer notification service stopped. SHOW_TIMERS opens an add-timer picker while another timer is active, so cancellation does not navigate away from the countdown. get_timer_state reports whether a timer is active, including paused timers; it does not claim remaining time. No alarm definitions are deleted.
The bundled app-scoped snapshot reads visible Clock nodes without an idle wait. Normal uiautomator dump can stall during an animated countdown. Snapshot failure fails closed; no root, network or installed helper APK is required for Samsung timer actions.
ghost skill run ghost/clock start_timer --param seconds=60 --param app=samsung
ghost skill run ghost/clock cancel_timer --param app=samsung
ghost skill run ghost/clock get_timer_state --param app=samsung
Use a device returned by list_devices or configure GHOST_DEVICE. From MCP, call find_skill, then run_skill with the selected device. Google-only actions retain their existing Google Clock targets.
The current primary fingerprint targets Samsung Clock >=12, Android >=13, with Google Clock declared as a companion. Samsung SM-A156B verification uses the Timer page on Samsung SM-A156B, Android 16, Samsung Clock 12.5.60.29, English UI. Three clean-reset start/cancel/state cycles passed; paused-timer state was also checked. See current signed runs for measured outcomes. Existing Google evidence below belongs to its recorded skill versions; no new Google physical-device run is claimed. Demos must cancel their owned timer and restore the original picker afterward.
| App version | Android | Device | Skill version | Signed self-runs (pass/total) | Dates |
|---|---|---|---|---|---|
| 7.4 | 14 | Google/sdk_gphone64_x86_64 (emulator, 1080x2400, 420 dpi, en-US) | 1.0.0, 1.0.1 | 16/17 | 2026-10-05 |
Android 13 was additionally replayed on Samsung SM-A037F (720x1600, 300 dpi, en-GB) and an emulator (1080x2400, 420 dpi, en-US). See the cross-device report for measured outcomes and limitations; other profiles remain unverified.
Stale or noncanonical artifacts are pruned from runs/. Current Samsung timer self-runs cover start_timer, cancel_timer and get_timer_state. Google-only set_alarm, list_alarms, start_stopwatch and add_world_city are unverified on the current build; no Google Clock install or alarm interaction is performed on the Samsung test device.
set_alarm: ValidatorFailedError; validator ran before the new alarm card rendered, and freshly added cards report a content-desc without the time; fixed in 1.0.1 (validator scrolls and matches cards by containment).The manifest targets Android >=13 and Google Clock >=7.4, with en-US and en-GB flows. The authoring screen remains 1080x2400 at 420 dpi; alarm cards and scrolling now use measured bounds for narrower screens too. Alarm validation rereads time, label and the enabled switch. list_alarms rewinds and rereads rows, including count. Root-readable Clock preferences remain authoritative for timer state, label/original duration and sw_state=1. When preferences are unreadable, the app-scoped snapshot requires a matching timer card with a decreasing countdown near the requested duration, or an increasing stopwatch with Pause exposed. Off-screen pager nodes are excluded. World-city validation rereads the city list. See snapshot source and offline build and current signed runs for exercised devices.
nat2 before-arm failure set no alarm within the agent turn budget; it is not evidence of an independent skill validator check.Adding an already-visible city leaves it selected. After a new selection, the helper restores the city tab in case an expiring timer interrupted navigation, then independently checks the saved city list.
Version1.0.4 only taps Samsung timer_cancel_button when a timer_pause_button or timer_resume_button establishes the Timer screen. Generic alarm Cancel/Dismiss/Stop controls are never tapped. Samsung remains the evidence target; the Google-primary/multi-app fingerprint concern requires a separate Google-device replay and is not claimed fixed here. Picker replay coverage uses a one-minute timer; large durations remain unverified and can require many taps.
Cold phone-B launch takes with version 1.0.4 failed the one-minute duration check before any timer started. Version 1.0.5 waits for two equal native picker snapshots before input, then observes each exact wheel step with a bounded wait. Missing numeric input text requires the native Timer picker's hour/minute/second description; conflicting or unavailable values fail closed. It never repeats a tap blindly or presses Start without the requested duration. The Google-only actions remain unverified on phone B.
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 clock app or version.
Package: com.google.android.deskclock (Google Clock)
Historical device check: 2026-10-05 on a headless emulator pool, Android 14 google_apis x86_64, 1080x2400 @ 420 dpi, Clock 7.4, en-US, no Google account.
Skill class: HARD. No login, no checkpoints.
Bottom tabs, all keyed by resource id com.google.android.deskclock:id/tab_menu_<name>: alarm, clock, timer, stopwatch, bedtime. One floating action button (id/fab) changes its content-desc per tab: Add alarm, Add city, Add timer, Start or Pause.
The tab pager keeps neighbouring tabs in the accessibility tree with off-screen (negative) bounds. Readers must ignore nodes whose bounds are off screen, or they will see alarms while on the Clock tab. helpers.visible_nodes does this.
Times render with a hair space before AM/PM (7:30 AM). Helpers normalise to 24 h HH:MM.
set_alarm(hour, minute, label)android.intent.action.SET_ALARM with HOUR, MINUTES, MESSAGE and SKIP_UI=true. This is the public AlarmClock API; this skill then opens and verifies Google Clock specifically. label defaults to Alarm.hour:minute and whose label (id/label) equals label and whose enabled switch is checked.list_alarms()Open the Alarm tab and read each card: the card container's content-desc is "<time> <label>", inside it id/digital_clock (time), id/label (absent for the default label Alarm), id/days_of_week or id/upcoming_instance_label, and the id/onoff switch (checked state comes from the Portal tree). Read at most 6 screens, stopping if a nonempty collection stops growing. Returns alarms: [{time, label, repeat, enabled}]. The validator rewinds and independently rereads alarm rows, requiring exact equality and matching count.
start_timer(seconds, label)android.intent.action.SET_TIMER with LENGTH (seconds), MESSAGE, SKIP_UI=true; the timer starts immediately in the tested app. label defaults to Timer.timer_state_<id>=1, the requested timer_label_<id>, and timer_original_timet_<id> equal to the requested seconds × 1000.start_stopwatch()First read sw_state from Google Clock shared preferences. If already 1 (running), do nothing. Otherwise open the Stopwatch tab and tap Start. The validator rereads sw_state and requires 1; it performs no idle UI dump after Start.
add_world_city(city)On the Clock tab tap Add city, type into id/open_search_view_edit_text, tap the first id/city_name result. Success: back on the Clock tab, an on-screen id/city_name contains the query segment before the first comma (the list shows the short name, for example Tokyo for Tokyo, Japan).
Timer and stopwatch validators read /data/user_de/0/com.google.android.deskclock/shared_prefs/com.google.android.deskclock_preferences.xml. This requires a root-capable adb shell on the lab image. Missing, inaccessible or malformed preferences fail validation; output from the action is never enough. Alarm and city validators reread UI state.
uiautomator dump can fail while timer/stopwatch rings animate. Timer and stopwatch final checks avoid it using saved app state. Initial navigation for other actions can still require a readable UI tree; an already-running stopwatch is handled without navigation.
12 h vs 24 h display depends on the device setting; helpers accept both.
A city already on the list is not duplicated; the action still succeeds.
Intent creation still depends on Google Clock selectors during verification; slow rendering or a changed UI can fail. The nat2 before-arm failure set no alarm within the agent turn budget; it is not evidence of an independent skill validator check.
Alarm collection has a six-scan limit; a larger list may be incomplete.
start_timer(seconds, app=auto, label=Timer) detects installed Samsung/Google variants. Samsung supports the duration picker only: custom labels fail, and an existing active timer is preserved. Open SHOW_TIMERS, read the three identified numberpicker_input fields, adjust their adjacent increment/decrement buttons, then reread the requested duration before Start. Validate both foreground timer service and Pause. Use the scoped non-idling snapshot while the countdown runs; never ordinary uiautomator dump.
cancel_timer(app=auto) is Samsung-only: use the visible Cancel/Dismiss/Stop control and verify no active timer service remains. get_timer_state(app=auto) is Samsung-only and returns active, including paused timers; it does not promise remaining time. These actions never navigate to alarms. Google-only legacy actions remain separate.
cancel_timer(app=auto)Samsung only. Read the visible countdown with the scoped snapshot, tap its Cancel/Dismiss/Stop control, and verify the timer notification service is no longer active. Do not send SHOW_TIMERS while a timer is running: Samsung opens an add-timer picker instead of the active countdown. A current visible cancellation control takes precedence over a lagging service report.
get_timer_state(app=auto)Samsung only. Return active from the timer and timer-notification foreground services. A paused timer remains active; the state does not promise a remaining duration. No alarms or private app files are read.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
set_alarmTry asking
ghost skill run ghost/clock set_alarm list_alarmsTry asking
ghost skill run ghost/clock list_alarms start_timerTry asking
ghost skill run ghost/clock start_timer start_stopwatchTry asking
ghost skill run ghost/clock start_stopwatch add_world_cityTry asking
ghost skill run ghost/clock add_world_city cancel_timerTry asking
ghost skill run ghost/clock cancel_timer get_timer_stateTry asking
ghost skill run ghost/clock get_timer_state 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.5latest | never | >=12 | pending | 54.6 KB | untagged |
Wait for a settled Samsung Timer picker after a cold launch and for exact native readback after each wheel step. Read the native duration description when canvas-rendered input values omit numeric text; reject inconsistent or unavailable state. Preserve existing timers and require the requested duration before Start. Record the observed cold-launch failure in README.
maintainer-run, not independent
Model: claude-haiku-5-5 · Date: 2026-10-22
Same task across three arms. Skill replay runs without a model. Medians include every valid episode, including failures.
N=5 seeds · 2026-10-22
| Arm / provenance | Pass a/b · Wilson 95% CI | Tokens, median [q1–q3] | LLM calls, median | UI actions, median | Wall, median |
|---|---|---|---|---|---|
| Agent aloneclaude-haiku-5-5 · 2026-10-22 Skill 1.0.1 · SHA b37d4c36 | 4/5 · Wilson 95% CI 0.376–0.964 | 1,113,113[1,010,774–1,417,012] | 20 | 14 | 1.9 min |
| Skill replayno model · 2026-10-22 Skill 1.0.1 · SHA b37d4c36 | 5/5 · Wilson 95% CI 0.566–1.000 | 0[0–0] | 0 | 6 | 22 s |
| Agent + skillclaude-haiku-5-5 · 2026-10-22 Skill 1.0.1 · SHA b37d4c36 | 5/5 · Wilson 95% CI 0.566–1.000 | 84,163[84,027–84,954] | 4 | 1 | 45 s |
Agent + skill vs agent alone: 5 paired seeds; 1 fail → pass, 0 pass → fail; McNemar exact p = 1. Median tokens saved: 1,029,086.
Skill replay vs agent alone: 5 paired seeds; 1 fail → pass, 0 pass → fail; McNemar exact p = 1. Median tokens saved: 1,113,113.
| Task | Arm | Seed | Model | Pass | LLM calls | Tokens | UI actions | Wall | Trace |
|---|---|---|---|---|---|---|---|---|---|
| Clock: alarm 7:30 "Gym" | Agent + skill | 0 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 4 | 85k | 1 | 71 s | |
| Clock: alarm 7:30 "Gym" | Skill replay | 0 | replay2026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 0 | 0 | 6 | 22 s | |
| Clock: alarm 7:30 "Gym" | Agent alone | 0 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 20 | 1.01M | 14 | 2.0 min | |
| Clock: alarm 7:30 "Gym" | Agent + skill | 1 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 4 | 84k | 1 | 45 s | |
| Clock: alarm 7:30 "Gym" | Skill replay | 1 | replay2026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 0 | 0 | 6 | 21 s | |
| Clock: alarm 7:30 "Gym" | Agent alone | 1 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 13 | 535k | 11 | 74 s | |
| Clock: alarm 7:30 "Gym" | Agent + skill | 2 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 5 | 167k | 1 | 62 s | |
| Clock: alarm 7:30 "Gym" | Skill replay | 2 | replay2026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 0 | 0 | 6 | 22 s | |
| Clock: alarm 7:30 "Gym" | Agent alone | 2 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 25 | 2.00M | 14 | 1.9 min | |
| Clock: alarm 7:30 "Gym" | Agent + skill | 3 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 4 | 84k | 1 | 44 s | |
| Clock: alarm 7:30 "Gym" | Skill replay | 3 | replay2026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 0 | 0 | 6 | 21 s | |
| Clock: alarm 7:30 "Gym" | Agent alone | 3 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | fail | 25 | 1.42M | 32 | 2.0 min | |
| Clock: alarm 7:30 "Gym" | Agent + skill | 4 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 4 | 84k | 1 | 44 s | |
| Clock: alarm 7:30 "Gym" | Skill replay | 4 | replay2026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 0 | 0 | 6 | 23 s | |
| Clock: alarm 7:30 "Gym" | Agent alone | 4 | claude-haiku-5-52026-10-22 · Skill 1.0.1 · SHA b37d4c36 | pass | 17 | 1.11M | 14 | 1.9 min |
Display only: points come from signed run artifacts.