new_game
Play demoTry asking
- Deal a new FreeCell game
- play FreeCell
- new solitaire game
- deal a hard freecell with 2 cells
ghost skill run ghost/freecell new_game Open Patience (F-Droid) FreeCell: deal a game (classic, 2 or 6 cells), tap cards to move them, undo/redo and read the full board (cells, foundations, columns, moves, time). 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.
27× 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 | 94.0 s | 1,588,646 | 34 | stopped early |
| With skill: find_skill, run_skill | 47.3 s | 59,382 | 6 | finished |
Prompt: Deal a new FreeCell game, then play the bottom card of columns 3, 5 and 7.
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 Open Patience on Android with an AI agent. Play FreeCell solitaire on your phone: an agent deals a game, moves cards, undoes and reads the whole board.
Target search phrase: AI agent plays FreeCell solitaire on Android
Demo shows: new_game (variant=Classic)
Ghost in the Droid seed skill for Open Patience (
io.github.d_rk.openpatience), a free offline solitaire collection from F-Droid (this skill plays its FreeCell). Offline, no account.
| Action | What it does | Params |
|---|---|---|
new_game | Deal a new game (Classic, 2 cells, 6 cells) and return the board | variant |
tap_card | Tap a card by name; the app plays it to its best place | card |
tap_column | Tap the bottom card of column 1-8 | column |
undo_move | Undo (or redo) the last move | redo |
get_board | Read cells, foundations, 8 columns, moves and time | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | new_game |
| Primitives | tap_card, tap_column, undo_move |
| Read state | get_board |
The app: F-Droid, or https://f-droid.org/packages/io.github.d_rk.openpatience/. 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/freecell
ghost skill run ghost/freecell new_game --device <serial>
ghost skill run ghost/freecell tap_column --param column=3 --device <serial>
run_skill(name="ghost/freecell", action="get_board")
# {"board": {"free_cells": [], "foundations": ["ace of hearts"], "columns": [["five of hearts", ...], ...], "moves": 1}}
Try asking: "Deal a new FreeCell game, then play the bottom card of columns 3, 5 and 7."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Open Patience 1.1.2. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 1.1.2 | 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: io.github.d_rk.openpatience (Open Patience, GPL-3.0, version 1.1.2 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.
Klondike and FreeCell buttons. FreeCell variants screen: cards Classic · 4 cells, 2 cells · hard, 6 cells · relaxed, each with Play and Records.Menu, Undo, Redo; footer: elapsed time and N moves.new_game(variant)Back to the FreeCell variants screen, tap Play of the chosen card. Success: 52 cards on the board and 0 moves.
tap_card(card)Find the node whose desc starts with the card name (lowest one of the pile) and tap it. Returns the board before and after.
tap_column(column)Reads the board, takes the last card of the column and taps it.
undo_move(redo)Tap the Undo/Redo toolbar button. Returns the board.
get_board()Parses every card node by position. Returns board with free_cells, foundations, columns, moves, time.
The Klondike mode uses the same accessible cards; reuse get_board with the stock/waste piles added. Other solitaire apps that expose card descriptions can reuse the parser.
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/freecell new_game tap_cardTry asking
ghost skill run ghost/freecell tap_card tap_columnTry asking
ghost skill run ghost/freecell tap_column undo_moveTry asking
ghost skill run ghost/freecell undo_move get_boardTry asking
ghost skill run ghost/freecell 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.1.2 | pending | 18.1 KB | untagged |