start_floor
Play demoTry asking
- Start the first floor in Block Night
- start a Block Night game
- begin floor 1 of Block Night
- play the falling blocks game
ghost skill run ghost/block-night start_floor Block Night (F-Droid) falling-blocks puzzle: start the first floor, drop pieces by drag/rotate/swipe, read pieces left and lines cleared. Offline, no account.
Agent run: stopped early without the skill, finished with it (not independently checked).
One recorded run each way, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
43× fewer tokens, 2.2× faster with the skill. Agent run: stopped early without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 68.7 s | 1,656,598 | 27 | stopped early |
| With skill: find_skill, run_skill | 31.6 s | 38,214 | 5 | finished |
Prompt: Start the first floor in Block Night and drop three pieces: one to the left, one to the right and one in the middle.
Same prompt, same phone, clean app state per side. Left: no skill, the agent drives the UI by hand. Right: find_skill + run_skill. 'ok' means the agent finished its turn; the result was not independently checked.
One recorded pair on samsung-a03s, 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.
Control Block Night on Android with an AI agent. Play a polished falling-blocks puzzle: an agent starts a floor, moves, rotates and drops pieces and reads progress.
Target search phrase: AI agent plays Tetris-style game on Android
Demo shows: start_floor (shifts=-3,3,0)
Ghost in the Droid seed skill for Block Night (
pt.tiago.blocknight), a polished offline falling-blocks puzzle from F-Droid (every floor is a fixed set of pieces and a goal). Offline, no account.
| Action | What it does | Params |
|---|---|---|
start_floor | Start (or restart) floor 1 and return the starting progress | none |
play_pieces | Fresh floor, then drop several pieces by cell shift (2, -1, 2r1 = shift 2 and rotate once) | shifts |
drop_piece | Move/rotate and drop the current piece on the running floor | shift, rotate |
hold_piece | Swap the falling piece with the held one | none |
get_progress | Read floor, pieces left, lines done and goal, points | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | start_floor |
| Primitives | drop_piece, hold_piece, play_pieces |
| Read state | get_progress |
The app: F-Droid, or https://f-droid.org/packages/pt.tiago.blocknight/. The skill:
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/block-night
ghost skill run ghost/block-night start_floor --device <serial>
ghost skill run ghost/block-night drop_piece --param shift=2 --device <serial>
run_skill(name="ghost/block-night", action="get_progress")
# {"progress": {"floor": "Floor 1", "pieces_left": 6, "lines": 0, "lines_goal": 2, "points": 82}}
Try asking: "Start the first floor in Block Night and drop three pieces: one to the left, one to the right and one in the middle."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Block Night 0.3.10. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 0.3.10 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
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 app of this kind or another version.
Package: pt.tiago.blocknight (Block Night, MIT, version 0.3.10 from the official F-Droid repository, sha256-verified)
Verified: 2026-11-02 on a real Samsung phone, Android 13, 720x1600 @ 300 dpi, en-GB. Offline, no account.
Skill class: HARD. No login, no checkpoints.
Climb to floor 1, Daily challenge, Free play, Settings, Statistics. Tapping Climb opens a bottom sheet with Play.Floor 1, pieces left (a number above left), the goal 0 / 2 and N points. The board is a canvas.start_floor()From any state: pause sheet > Restart > confirm, running floor > BACK > Restart > confirm, or menu > Climb > Play. Success: header shows Floor 1, pieces left and the goal.
play_pieces(shifts)start_floor, then per move: rotate taps, a slow drag of shift cells, a fast swipe down. Waits until the pieces-left counter drops (repeats the swipe if the drop was swallowed).
drop_piece(shift, rotate)Resume the floor if paused, then the same drag/rotate/drop for one piece.
hold_piece()Tap the HOLD box (top right).
get_progress()Resume the pause sheet if shown, then read the header texts. Returns floor, pieces_left, lines, lines_goal, points.
Other falling-block games use the same gestures; recompute the cell size from the screen width and re-find the header texts with dump_xml.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
start_floorTry asking
ghost skill run ghost/block-night start_floor play_piecesTry asking
ghost skill run ghost/block-night play_pieces drop_pieceTry asking
ghost skill run ghost/block-night drop_piece hold_pieceTry asking
ghost skill run ghost/block-night hold_piece get_progressTry asking
ghost skill run ghost/block-night get_progress 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.0latest | never | >=0.3.10 | pending | 18.6 KB | untagged |