new_game
Play demoTry asking
- Start a new tic-tac-toe game
- new noughts and crosses game
- play tic tac toe
- restart the board
ghost skill run ghost/tic-tac-toe new_game Dooz (F-Droid) tic-tac-toe against the computer: new game, play a cell, play several, read the board and result. Offline, no account.
Agent run: finished 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.
11.8× fewer tokens, 1.2× slower with the skill. Agent run: finished without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 55.0 s | 671,757 | 13 | finished |
| With skill: find_skill, run_skill | 68.2 s | 56,878 | 4 | finished |
Prompt: Play tic-tac-toe: take the top left, then the centre, then the bottom right.
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 Dooz on Android with an AI agent. Play noughts and crosses against the computer on your phone: an agent starts a game, marks cells and reads the board.
Target search phrase: AI agent plays tic-tac-toe on Android
Demo shows: new_game (cells=1,5,9)
Ghost in the Droid seed skill for Dooz (
io.github.yamin8000.dooz), a simple offline tic-tac-toe game against the computer from F-Droid. Offline, no account.
| Action | What it does | Params |
|---|---|---|
new_game | Start a new game against the computer | none |
play_cell | Mark one cell 1-9 and read the computer's answer | cell |
play_cells | New game, then mark several cells in order | cells |
get_board | Read free/occupied cells, result and difficulty | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | new_game |
| Primitives | play_cell, play_cells |
| Read state | get_board |
The app: F-Droid, or https://f-droid.org/packages/io.github.yamin8000.dooz/. 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/tic-tac-toe
ghost skill run ghost/tic-tac-toe new_game --device <serial>
ghost skill run ghost/tic-tac-toe play_cell --param cell=5 --device <serial>
run_skill(name="ghost/tic-tac-toe", action="get_board")
# {"board": {"free": [2, 4, 6, 7, 8, 9], "occupied": [1, 3, 5], "result": "Unknown", "game_over": false}}
Try asking: "Play tic-tac-toe: take the top left, then the centre, then the bottom right."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Dooz 1.0.24. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 1.0.24 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
taken: true instead of failing.enabled attribute, so the helpers read the plain uiautomator dump.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: io.github.yamin8000.dooz (Dooz, GPL-3.0, version 1.0.24 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.
Game info, Player v Computer, Difficulty range: Easy, Game's result: Unknown | Player is the winner | Computer is the winner | draw.enabled=false), so occupancy is readable. The Portal tree drops enabled, so the helpers read the plain uiautomator dump.desc="Undo"; it did not take a move back against the computer in version 1.0.24, so it is not part of the toolkit) and the New game button (its label is not a text node).new_game()Tap the New game button (by position, its label is not exposed). Success: the Game info panel and a board with 8-9 free cells (the computer may have opened).
play_cell(cell)Tap the cell (1 top left, 5 centre, 9 bottom right), wait until the board is enabled again, diff the free cells. Returns the board and computer_cell; taken: true when the cell was not free.
play_cells(cells)New game, then each cell in turn (taken cells are reported and skipped, the loop stops when the game is over). Returns the computer's answer after every move.
get_board()Reads the nine cells' enabled state and the Game's result text.
Other tic-tac-toe apps usually draw marks on a canvas or in Views; re-find the cell bounds with dump_xml and read the result text. The enabled-flag trick only works when the app disables played cells.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
new_gameTry asking
ghost skill run ghost/tic-tac-toe new_game play_cellTry asking
ghost skill run ghost/tic-tac-toe play_cell play_cellsTry asking
ghost skill run ghost/tic-tac-toe play_cells get_boardTry asking
ghost skill run ghost/tic-tac-toe get_board 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 | >=1.0.24 | pending | 19.1 KB | untagged |