open_menu
Play demoTry asking
- Open the Navy Fleet Battle menu
- open Navy Fleet Battle
ghost skill run ghost/navy-fleet-battle open_menu Navy Fleet Battle (F-Droid): classic sea battle against the computer. Start a game, fire at cells A1 to J10 and read the turn and the ships left. 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.
55× fewer tokens, 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 | 99.0 s | 1,640,414 | 27 | stopped early |
| With skill: find_skill, run_skill | 50.3 s | 30,039 | 4 | finished |
Prompt: Start a Navy Fleet Battle game against the computer and fire at B5, C3 and E5. Do not use the Play Store, no installs, no sign-in.
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 Navy Fleet Battle on Android with an AI agent. Let your agent play Battleship against the computer on your phone: it starts a game, calls its shots and reports what happened.
Target search phrase: AI agent plays Battleship on Android
Demo shows: fire (cell=B5)
Ghost in the Droid seed skill for Navy Fleet Battle (
net.tigr.navyfleetbattle), the classic sea battle game against the computer. The fields are drawn on a canvas, but the turn, hit messages and ship counters are text, so an agent can aim and track the game. Offline, no account.
| Action | What it does | Params |
|---|---|---|
open_menu | Restart the app and read the start menu. | none |
new_game | Start a new game against the computer with random ship placement. | none |
fire | Fire at one cell (letter A-J and number 1-10) and return hit, sunk, miss or game over. | cell |
fire_many | Fire at several cells in a row (comma separated, up to 20) and return the result of each. | cells |
get_state | Read the turn, the hint line and how many enemy and own ships of each size are left (battleship, cruiser, destroyer, boat). | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | open_menu, new_game |
| Primitives | fire, fire_many |
| Read state | get_state |
The app: F-Droid, or https://f-droid.org/packages/net.tigr.navyfleetbattle/. 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/navy-fleet-battle
ghost skill run ghost/navy-fleet-battle fire --param cell=B5 --device <serial>
run_skill(name="ghost/navy-fleet-battle", action="fire", params={"cell": "B5"})
Try asking: "Start a Navy Fleet Battle game against the computer and fire at B5, C3 and E5."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Navy Fleet Battle 8. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 8 | 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: net.tigr.navyfleetbattle (Navy Fleet Battle, GPL-3.0-only, version 8 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.
open_menu()Force-stops and relaunches.
new_game()Restarts the app, taps Play the computer, Random and Ready. Placement is random, so the fleet differs every game.
fire(cell)Taps the cell and Fire!, then waits. After a hit you shoot again; after a miss the computer shoots and the call returns when it is your turn. Refuses a cell that was already fired at.
fire_many(cells)Repeats fire and stops when the game is over.
get_state()Reads the status text and the ship counters.
Cells are tapped by pinned coordinates for a 720x1600 screen. Hit and miss on a cell are not readable as text: a hit is announced in the hint line (hit, shoot again), a miss is recognised because the computer answers. Keep your own list of cells already fired at; the skill refuses a repeated cell. The computer's own shot result is not readable.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
open_menuTry asking
ghost skill run ghost/navy-fleet-battle open_menu new_gameTry asking
ghost skill run ghost/navy-fleet-battle new_game fireTry asking
ghost skill run ghost/navy-fleet-battle fire fire_manyTry asking
ghost skill run ghost/navy-fleet-battle fire_many get_stateTry asking
ghost skill run ghost/navy-fleet-battle get_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.0latest | never | * | pending | 16.8 KB | untagged |